diff options
| author | Igor Mammedov <imammedo@redhat.com> | 2014-09-26 09:28:23 +0000 |
|---|---|---|
| committer | Andreas Färber <afaerber@suse.de> | 2014-10-15 05:03:13 +0200 |
| commit | e378acb4047fbec4f89031dbba7fb7851042f6ee (patch) | |
| tree | 4088db3e3ed10b5d2e63a95362198c3c20fa3c5b /hw/core/qdev.c | |
| parent | 431bbb26cbd0e9862c48320deaaf83aa9aacd6ce (diff) | |
| download | focaccia-qemu-e378acb4047fbec4f89031dbba7fb7851042f6ee.tar.gz focaccia-qemu-e378acb4047fbec4f89031dbba7fb7851042f6ee.zip | |
qdev: Drop hotplug check from bus_add_child()
Check is too restrictive and does not allow to add children to just created bus during hotplug when the bus is part of composite device. Removing check from bus_add_child() doesn't affect devices creatable with device_add/del commands since they have a similar builtin check and patch will allow to create complex composite devices during hotplug. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/core/qdev.c')
| -rw-r--r-- | hw/core/qdev.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/core/qdev.c b/hw/core/qdev.c index b1da409eeb..6439a23273 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -85,10 +85,6 @@ static void bus_add_child(BusState *bus, DeviceState *child) char name[32]; BusChild *kid = g_malloc0(sizeof(*kid)); - if (qdev_hotplug) { - assert(qbus_is_hotpluggable(bus)); - } - kid->index = bus->max_index++; kid->child = child; object_ref(OBJECT(kid->child)); |