mirror of https://github.com/xemu-project/xemu.git
Revert "hw/versatile: realize the PCI root bus as part of the versatile init"
This reverts commit b1af7959a6
.
Realizing a device automatically realizes its buses, in
device_set_realized(). Realizing them in realize methods is
redundant, unless the methods themselves require them to be realized
early. pci_vpb_realize() doesn't. Drop the redundant bus
realization.
Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200610053247.1583243-4-armbru@redhat.com>
This commit is contained in:
parent
9e1b990c2e
commit
da9630c57e
|
@ -459,7 +459,6 @@ 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue