Cc'ing qemu-stable@ On 7/26/19 4:44 PM, Greg Kurz wrote: > 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 <gr...@kaod.org> > --- > hw/ppc/spapr_pci.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c > index bc22568bfa71..e45507bf2b53 100644 > --- a/hw/ppc/spapr_pci.c > +++ b/hw/ppc/spapr_pci.c > @@ -2078,6 +2078,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);
It is not clear to my why spapr_phb_unrealize() doesn't require the same call, but this is not related to this patch. Reviewed-by: Philippe Mathieu-Daudé <phi...@redhat.com> > } > > static Property spapr_phb_properties[] = { > >