diff options
author | Greg Kurz <groug@kaod.org> | 2019-07-26 16:44:38 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-08-21 17:17:39 +1000 |
commit | 078eb6b05b7f962e43d8bc376e0b96cdd550c17a (patch) | |
tree | c02351efced0a2c3c32dc0a7a38b2872c79f6411 /hw/9pfs | |
parent | 1e8f51e856621d3615a21cfea6f0baf055cbcce8 (diff) | |
download | 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 'hw/9pfs')
0 files changed, 0 insertions, 0 deletions