spapr/pci: Free MSIs during reset
commitea52074d3a1c5fbe70f3014dc1b1f2e7d5ced5de
authorGreg Kurz <groug@kaod.org>
Fri, 26 Jul 2019 14:44:44 +0000 (26 16:44 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 21 Aug 2019 07:17:39 +0000 (21 17:17 +1000)
treefd96234fde82c0a7dc754397b9f8401bdd0df075
parent078eb6b05b7f962e43d8bc376e0b96cdd550c17a
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>
hw/ppc/spapr_pci.c