From 25df49f6eb113081f48fdb3a3dd17bf1c0b25600 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Wed, 8 Aug 2012 17:03:01 -0300 Subject: 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 --- QMP/qmp-events.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'QMP') diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt index df190ace7b..287805825f 100644 --- a/QMP/qmp-events.txt +++ b/QMP/qmp-events.txt @@ -252,6 +252,20 @@ Example: { "event": "SUSPEND", "timestamp": { "seconds": 1344456160, "microseconds": 309119 } } +SUSPEND_DISK +------------ + +Emitted when the guest makes a request to enter S4 state. + +Data: None. + +Example: + +{ "event": "SUSPEND_DISK", + "timestamp": { "seconds": 1344456160, "microseconds": 309119 } } + +Note: QEMU shuts down when entering S4 state. + VNC_CONNECTED ------------- -- cgit v1.2.1