summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-02-23 13:45:26 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2012-02-24 13:36:04 -0600
commit53370b78ecfe3fdff89a8dd7db73a0a95aefc14f (patch)
tree57cfb4774c9903c47b9c3b0a3a129b63ce6dbaa3 /monitor.c
parent6595abc04486ef9694b8717b8eea43ccb990bff9 (diff)
downloadqemu-53370b78ecfe3fdff89a8dd7db73a0a95aefc14f.tar.gz
qemu-53370b78ecfe3fdff89a8dd7db73a0a95aefc14f.tar.bz2
qemu-53370b78ecfe3fdff89a8dd7db73a0a95aefc14f.zip
suspend: add qmp events
Send qmp events on suspend and wakeup so libvirt has a chance to track the vm state. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 03beab3cdd..953e7482b7 100644
--- a/monitor.c
+++ b/monitor.c
@@ -488,6 +488,12 @@ void monitor_protocol_event(MonitorEvent event, QObject *data)
case QEVENT_DEVICE_TRAY_MOVED:
event_name = "DEVICE_TRAY_MOVED";
break;
+ case QEVENT_SUSPEND:
+ event_name = "SUSPEND";
+ break;
+ case QEVENT_WAKEUP:
+ event_name = "WAKEUP";
+ break;
default:
abort();
break;