diff options
author | Greg Kurz <groug@kaod.org> | 2017-07-25 19:59:18 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-09-08 09:30:54 +1000 |
commit | dba95ebbf88a8b8f10f4691946b4406e4acc4f0f (patch) | |
tree | b80360920b959909f70a72d4fd0458be6d14e664 /hw | |
parent | a931ad137aabd4e798d9bd411d81fcf800e50529 (diff) | |
download | qemu-dba95ebbf88a8b8f10f4691946b4406e4acc4f0f.zip qemu-dba95ebbf88a8b8f10f4691946b4406e4acc4f0f.tar.gz qemu-dba95ebbf88a8b8f10f4691946b4406e4acc4f0f.tar.bz2 |
spapr_pci: parent the MSI memory region to the PHB
This memory region should be owned by the PHB. This ensures the PHB
cannot be finalized as long as the the region is guest visible, or
used by a CPU or a device.
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ppc/spapr_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c index d258bc0..d7880f2 100644 --- a/hw/ppc/spapr_pci.c +++ b/hw/ppc/spapr_pci.c @@ -1703,7 +1703,7 @@ static void spapr_phb_realize(DeviceState *dev, Error **errp) } #endif - memory_region_init_io(&sphb->msiwindow, NULL, &spapr_msi_ops, spapr, + memory_region_init_io(&sphb->msiwindow, OBJECT(sphb), &spapr_msi_ops, spapr, "msi", msi_window_size); memory_region_add_subregion(&sphb->iommu_root, SPAPR_PCI_MSI_WINDOW, &sphb->msiwindow); |