qdev: HotplugHandler: Provide unplug callback
commit181a2c63236966b3c80eef131bac33a355a492da
authorIgor Mammedov <imammedo@redhat.com>
Fri, 26 Sep 2014 09:28:20 +0000 (26 09:28 +0000)
committerAndreas Färber <afaerber@suse.de>
Wed, 15 Oct 2014 03:03:13 +0000 (15 05:03 +0200)
treed56e099a5191945d0185d1f8f1df3db4779b1b54
parent14d5a28fb6bb8ac6505ad1faca2690df56fef326
qdev: HotplugHandler: Provide unplug callback

It is to be called for actual device removal and
will allow to separate request and removal handling
phases of x86-CPU devices and also it's a handler
to be called for synchronously removable devices.

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