]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qdev: Export qdev_hot_removed
authorJuan Quintela <quintela@redhat.com>
Tue, 28 Mar 2017 09:22:10 +0000 (11:22 +0200)
committerJuan Quintela <quintela@redhat.com>
Fri, 21 Apr 2017 10:25:40 +0000 (12:25 +0200)
I need to move qdev_unplug to qdev-monitor in the following patch, and
it needs access to this variable.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
hw/core/qdev.c
include/hw/qdev-core.h

index 6fa46b5245d3f3bc5429ced3dff6ebc6296a2a83..c26cf84cd3f81bd3352d324e0b7f1276079d1cab 100644 (file)
@@ -41,7 +41,7 @@
 
 bool qdev_hotplug = false;
 static bool qdev_hot_added = false;
-static bool qdev_hot_removed = false;
+bool qdev_hot_removed = false;
 
 const VMStateDescription *qdev_get_vmsd(DeviceState *dev)
 {
index a96a91379fd3eb2ae347ef80c1393ab43749b091..f09b6b78f6c4c618086233b89990b11663c11a0f 100644 (file)
@@ -387,6 +387,7 @@ Object *qdev_get_machine(void);
 void qdev_set_parent_bus(DeviceState *dev, BusState *bus);
 
 extern bool qdev_hotplug;
+extern bool qdev_hot_removed;
 
 char *qdev_get_dev_path(DeviceState *dev);