mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
spapr/pci: Free MSIs during reset
When the machine is reset, the MSI bitmap is cleared but the allocated MSIs are not freed. Some operating systems, such as AIX, can detect the previous configuration and assert. Empty the MSI cache, this performs the needed cleanup. Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <156415228410.1064338.4486161194061636096.stgit@bahia.lan> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
078eb6b05b
commit
ea52074d3a
1 changed files with 2 additions and 0 deletions
|
@ -2080,6 +2080,8 @@ static void spapr_phb_reset(DeviceState *qdev)
|
|||
if (spapr_phb_eeh_available(SPAPR_PCI_HOST_BRIDGE(qdev))) {
|
||||
spapr_phb_vfio_reset(qdev);
|
||||
}
|
||||
|
||||
g_hash_table_remove_all(sphb->msi);
|
||||
}
|
||||
|
||||
static Property spapr_phb_properties[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue