From 53370b78ecfe3fdff89a8dd7db73a0a95aefc14f Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 23 Feb 2012 13:45:26 +0100 Subject: 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 Signed-off-by: Anthony Liguori --- monitor.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 03beab3..953e748 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; -- cgit v1.1