From: Marcel Apfelbaum Date: Thu, 14 Jul 2016 13:43:46 +0000 (+0300) Subject: hw/versatile: realize the PCI root bus as part of the versatile init X-Git-Tag: v2.7.0-rc0~3^2~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1af7959a66610669e1a019b9a84f6ed3a7936c6;p=thirdparty%2Fqemu.git 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 Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Tested-by: Mark Cave-Ayland --- diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c index 0792c4501c1..467cbb9cb81 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); }