aboutsummaryrefslogtreecommitdiff
path: root/monitor.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2012-08-08 17:03:01 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2012-08-13 16:10:18 -0300
commit25df49f6eb113081f48fdb3a3dd17bf1c0b25600 (patch)
treed4b3a5ab8407736f05b46607b495bb82320b83e4 /monitor.h
parent67e3cf2664b3fc858a895d1e0e4b8d81c3400823 (diff)
downloadqemu-25df49f6eb113081f48fdb3a3dd17bf1c0b25600.zip
qemu-25df49f6eb113081f48fdb3a3dd17bf1c0b25600.tar.gz
qemu-25df49f6eb113081f48fdb3a3dd17bf1c0b25600.tar.bz2
qmp: add SUSPEND_DISK event
Emitted when the guest makes a request to enter S4 state. There are three possible ways of having this event, as described here: http://lists.gnu.org/archive/html/qemu-devel/2012-07/msg02307.html I've decided to add a new event and make it indepedent of SHUTDOWN. This means that the SHUTDOWN event will eventually follow the SUSPEND_DISK event. I've choosen this way because of two reasons: 1. Having an indepedent event makes it possible to query for its existence by using query-events 2. In the future, we may allow the user to change what QEMU should do as a result of the guest entering S4. So it's a good idea to keep both events separated Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'monitor.h')
-rw-r--r--monitor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor.h b/monitor.h
index 5f4de1b..4ef9a04 100644
--- a/monitor.h
+++ b/monitor.h
@@ -40,6 +40,7 @@ typedef enum MonitorEvent {
QEVENT_BLOCK_JOB_CANCELLED,
QEVENT_DEVICE_TRAY_MOVED,
QEVENT_SUSPEND,
+ QEVENT_SUSPEND_DISK,
QEVENT_WAKEUP,
QEVENT_BALLOON_CHANGE,