qdev: Drop hotplug check from bus_add_child()
commite378acb4047fbec4f89031dbba7fb7851042f6ee
authorIgor Mammedov <imammedo@redhat.com>
Fri, 26 Sep 2014 09:28:23 +0000 (26 09:28 +0000)
committerAndreas Färber <afaerber@suse.de>
Wed, 15 Oct 2014 03:03:13 +0000 (15 05:03 +0200)
tree4088db3e3ed10b5d2e63a95362198c3c20fa3c5b
parent431bbb26cbd0e9862c48320deaaf83aa9aacd6ce
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>
hw/core/qdev.c