aboutsummaryrefslogtreecommitdiff
path: root/hw/pci-host
diff options
context:
space:
mode:
authorMarcel Apfelbaum <marcel@redhat.com>2016-07-14 16:43:46 +0300
committerMichael S. Tsirkin <mst@redhat.com>2016-07-20 19:30:27 +0300
commitb1af7959a66610669e1a019b9a84f6ed3a7936c6 (patch)
tree4a150c48fe6a13d2ae4e6f62c363c2cf3eea6eb6 /hw/pci-host
parent685f9a3428f625f580af0123aa95f4838d86cac3 (diff)
downloadqemu-b1af7959a66610669e1a019b9a84f6ed3a7936c6.zip
qemu-b1af7959a66610669e1a019b9a84f6ed3a7936c6.tar.gz
qemu-b1af7959a66610669e1a019b9a84f6ed3a7936c6.tar.bz2
hw/versatile: realize the PCI root bus as part of the versatile init
'Realize' the PCI root bus manually since the 'realize' mechanism does not propagate to child devices yet. Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/pci-host')
-rw-r--r--hw/pci-host/versatile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c
index 0792c45..467cbb9 100644
--- a/hw/pci-host/versatile.c
+++ b/hw/pci-host/versatile.c
@@ -455,6 +455,7 @@ static void pci_vpb_realize(DeviceState *dev, Error **errp)
}
/* TODO Remove once realize propagates to child devices. */
+ object_property_set_bool(OBJECT(&s->pci_bus), true, "realized", errp);
object_property_set_bool(OBJECT(&s->pci_dev), true, "realized", errp);
}