qdev: hotplug: Introduce HotplugHandler.pre_plug() callback
authorIgor Mammedov <imammedo@redhat.com>
Thu, 12 May 2016 03:48:15 +0000 (09:18 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 17 Jun 2016 06:33:48 +0000 (16:33 +1000)
commit41346263c4039fd2edca61c031c9396577693036
treee20fa96388bb62c967490408973ccb7e58e51b21
parent2e11b15dff0bed8f29e844940f127e6e89cd766c
qdev: hotplug: Introduce HotplugHandler.pre_plug() callback

pre_plug callback is to be called before device.realize() is executed.
This would allow to check/set device's properties from HotplugHandler.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/core/hotplug.c
hw/core/qdev.c
include/hw/hotplug.h