qdev: hotplug for bus-less devices
commitb74545481187945965cf9f4df70b71d2f6cded4a
authorIgor Mammedov <imammedo@redhat.com>
Mon, 2 Jun 2014 13:25:03 +0000 (2 15:25 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 13:41:46 +0000 (19 16:41 +0300)
tree66b02a99a870635ec2cbd673887b2981eef194fe
parentc270fb9eff1290e8a4a49040eba1305fec2ce0ec
qdev: hotplug for bus-less devices

Add get_hotplug_handler() method to machine, and
make bus-less device use it during hotplug
as a means to discover a hotplug handler controller.
The returned controller is used to perform hotplug
actions.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/core/qdev.c
include/hw/boards.h