]> git.proxmox.com Git - mirror_qemu.git/blobdiff - QMP/qmp-events.txt
qmp: add DEVICE_TRAY_MOVED event
[mirror_qemu.git] / QMP / qmp-events.txt
index 06cb40483745a7956a8649845e38bdac8f5363b9..9286af569dbec82a54b34f0976b2dada349a668a 100644 (file)
@@ -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
 -----