summaryrefslogtreecommitdiffstats
path: root/include/monitor
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-03-06 14:58:59 +0200
committerMichael S. Tsirkin <mst@redhat.com>2013-03-17 13:27:27 +0200
commit0402a5d65ec004df5345d1f736e2ddaa7aee6665 (patch)
tree585662c4509f2033a15c317a576d2473b4dbb8dc /include/monitor
parentb1999e87b4d42305419329cae459e1b43f706d96 (diff)
downloadhqemu-0402a5d65ec004df5345d1f736e2ddaa7aee6665.zip
hqemu-0402a5d65ec004df5345d1f736e2ddaa7aee6665.tar.gz
qdev: DEVICE_DELETED event
libvirt has a long-standing bug: when removing the device, it can request removal but does not know when the removal completes. Add an event so we can fix this in a robust way. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/monitor')
-rw-r--r--include/monitor/monitor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h
index 87fb49c..b868760 100644
--- a/include/monitor/monitor.h
+++ b/include/monitor/monitor.h
@@ -39,6 +39,7 @@ typedef enum MonitorEvent {
QEVENT_BLOCK_JOB_CANCELLED,
QEVENT_BLOCK_JOB_ERROR,
QEVENT_BLOCK_JOB_READY,
+ QEVENT_DEVICE_DELETED,
QEVENT_DEVICE_TRAY_MOVED,
QEVENT_SUSPEND,
QEVENT_SUSPEND_DISK,
OpenPOWER on IntegriCloud