qdev: Add wrapper to set BUS as HotplugHandler
commit431bbb26cbd0e9862c48320deaaf83aa9aacd6ce
authorIgor Mammedov <imammedo@redhat.com>
Fri, 26 Sep 2014 09:28:22 +0000 (26 09:28 +0000)
committerAndreas Färber <afaerber@suse.de>
Wed, 15 Oct 2014 03:03:13 +0000 (15 05:03 +0200)
tree8e8aa8f8daa023deb8b85fbf70010cd709640a0d
parent014176f914ab8e41a88225e8f26569ef0e0bf223
qdev: Add wrapper to set BUS as HotplugHandler

To be used for conversion of SCSI and USB devices,
and would allow to make every HBA/USB host switch
to HotplugHandler API without touching each controller
explicitly.

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
include/hw/qdev-core.h