diff options
| author | Greg Kurz | 2019-07-26 16:44:38 +0200 |
|---|---|---|
| committer | David Gibson | 2019-08-21 09:17:39 +0200 |
| commit | 078eb6b05b7f962e43d8bc376e0b96cdd550c17a (patch) | |
| tree | c02351efced0a2c3c32dc0a7a38b2872c79f6411 /include | |
| parent | ppc: remove idle_timer logic (diff) | |
| download | qemu-078eb6b05b7f962e43d8bc376e0b96cdd550c17a.tar.gz qemu-078eb6b05b7f962e43d8bc376e0b96cdd550c17a.tar.xz qemu-078eb6b05b7f962e43d8bc376e0b96cdd550c17a.zip | |
spapr/pci: Consolidate de-allocation of MSIs
When freeing MSIs, we need to:
- remove them from the machine's MSI bitmap
- remove them from the IC backend
- remove them from the PHB's MSI cache
This is currently open coded in two places in rtas_ibm_change_msi(),
and we're about to need this in spapr_phb_reset() as well. Instead of
duplicating this code again, make it a destroy function for the PHB's
MSI cache. Removing an MSI device from the cache will call the destroy
function internally.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <156415227855.1064338.5657793835271464648.stgit@bahia.lan>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
