summaryrefslogtreecommitdiff
path: root/QMP/qmp-events.txt
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2012-02-14 13:41:13 -0200
committerLuiz Capitulino <lcapitulino@redhat.com>2012-02-22 17:23:50 -0200
commit6f382ed226f3a408825d882e6c4b47499baaa15b (patch)
tree842957696f2497c86b3fd04170762969756c7a8c /QMP/qmp-events.txt
parentbde25388d1cee6576ff12dd40f9abf489f0031ed (diff)
downloadqemu-6f382ed226f3a408825d882e6c4b47499baaa15b.tar.gz
qemu-6f382ed226f3a408825d882e6c4b47499baaa15b.tar.bz2
qemu-6f382ed226f3a408825d882e6c4b47499baaa15b.zip
qmp: add DEVICE_TRAY_MOVED event
It's emitted whenever the tray is moved by the guest or by HMP/QMP commands. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Acked-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'QMP/qmp-events.txt')
-rw-r--r--QMP/qmp-events.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt
index 06cb404837..9286af569d 100644
--- a/QMP/qmp-events.txt
+++ b/QMP/qmp-events.txt
@@ -26,6 +26,24 @@ Example:
Note: If action is "stop", a STOP event will eventually follow the
BLOCK_IO_ERROR event.
+DEVICE_TRAY_MOVED
+-----------------
+
+It's emitted whenever the tray of a removable device is moved by the guest
+or by HMP/QMP commands.
+
+Data:
+
+- "device": device name (json-string)
+- "tray-open": true if the tray has been opened or false if it has been closed
+ (json-bool)
+
+{ "event": "DEVICE_TRAY_MOVED",
+ "data": { "device": "ide1-cd0",
+ "tray-open": true
+ },
+ "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
+
RESET
-----