diff options
| author | Marcel Apfelbaum | 2016-07-14 15:43:45 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2016-07-20 18:30:26 +0200 |
| commit | 685f9a3428f625f580af0123aa95f4838d86cac3 (patch) | |
| tree | 4b90edd6484ca8d66728cef61b81a08072c715cc /hw | |
| parent | hw/grackle: fix PCI bus initialization (diff) | |
| download | qemu-685f9a3428f625f580af0123aa95f4838d86cac3.tar.gz qemu-685f9a3428f625f580af0123aa95f4838d86cac3.tar.xz qemu-685f9a3428f625f580af0123aa95f4838d86cac3.zip | |
hw/prep: realize the PCI root bus as part of the prep 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')
| -rw-r--r-- | hw/pci-host/prep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c index 487e32ecbf..5580293f93 100644 --- a/hw/pci-host/prep.c +++ b/hw/pci-host/prep.c @@ -247,6 +247,7 @@ static void raven_pcihost_realizefn(DeviceState *d, Error **errp) memory_region_add_subregion(address_space_mem, 0xbffffff0, &s->pci_intack); /* 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); } |
