diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2012-05-02 10:39:01 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-06-18 15:14:38 +0200 |
commit | f968fc6892daf02865cce8af277cc755be690eda (patch) | |
tree | 13d6cd12332f91ad9d935e3e0f160528888c334b /hw/sysbus.c | |
parent | 0d936928ef87ca1bb7b41b5b89c400c699a7691c (diff) | |
download | qemu-f968fc6892daf02865cce8af277cc755be690eda.zip qemu-f968fc6892daf02865cce8af277cc755be690eda.tar.gz qemu-f968fc6892daf02865cce8af277cc755be690eda.tar.bz2 |
qdev: Connect busses with their parent devices
This makes SysBus part of the root hierarchy and all busses children of
their respective parent DeviceState.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/sysbus.c')
-rw-r--r-- | hw/sysbus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/sysbus.c b/hw/sysbus.c index 2347f51..9d8b1ea 100644 --- a/hw/sysbus.c +++ b/hw/sysbus.c @@ -275,6 +275,9 @@ static void main_system_bus_create(void) qbus_create_inplace(main_system_bus, TYPE_SYSTEM_BUS, NULL, "main-system-bus"); main_system_bus->glib_allocated = true; + object_property_add_child(container_get(qdev_get_machine(), + "/unattached"), + "sysbus", OBJECT(main_system_bus), NULL); } BusState *sysbus_get_default(void) |