1 QEMU Machine Protocol Events
2 ============================
7 Emitted when guest executes ACPI _OST method.
9 - data: ACPIOSTInfo type as described in qapi-schema.json
11 { "event": "ACPI_DEVICE_OST",
12 "data": { "device": "d1", "slot": "0", "slot-type": "DIMM", "source": 1, "status": 0 } }
17 Emitted when the guest changes the actual BALLOON level. This
18 value is equivalent to the 'actual' field return by the
19 'query-balloon' command
23 - "actual": actual level of the guest memory balloon in bytes (json-number)
27 { "event": "BALLOON_CHANGE",
28 "data": { "actual": 944766976 },
29 "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
31 Note: this event is rate-limited.
36 Emitted whenever the device removal completion is acknowledged
38 At this point, it's safe to reuse the specified device ID.
39 Device removal can be initiated by the guest or by HMP/QMP commands.
43 - "device": device name (json-string, optional)
44 - "path": device path (json-string)
46 { "event": "DEVICE_DELETED",
47 "data": { "device": "virtio-net-pci-0",
48 "path": "/machine/peripheral/virtio-net-pci-0" },
49 "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
54 It's emitted whenever the tray of a removable device is moved by the guest
55 or by HMP/QMP commands.
59 - "device": Block device name. This is always present for compatibility
60 reasons, but it can be empty ("") if the image does not have a
61 device name associated. (json-string)
62 - "id": The name or QOM path of the guest device (json-string)
63 - "tray-open": true if the tray has been opened or false if it has been closed
66 { "event": "DEVICE_TRAY_MOVED",
67 "data": { "device": "ide1-cd0",
68 "id": "/machine/unattached/device[22]",
71 "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
76 Emitted when the guest has finished one memory dump.
80 - "result": DumpQueryResult type described in qapi-schema.json
81 - "error": Error message when dump failed. This is only a
82 human-readable string provided when dump failed. It should not be
83 parsed in any way (json-string, optional)
87 { "event": "DUMP_COMPLETED",
88 "data": {"result": {"total": 1090650112, "status": "completed",
89 "completed": 1090650112} } }
94 Emitted when guest OS panic is detected.
98 - "action": Action that has been taken (json-string, currently always "pause").
102 { "event": "GUEST_PANICKED",
103 "data": { "action": "pause" } }
107 Emitted when memory hot unplug error occurs.
111 - "device": device name (json-string)
112 - "msg": Informative message (e.g., reason for the error) (json-string)
116 { "event": "MEM_UNPLUG_ERROR"
117 "data": { "device": "dimm1",
118 "msg": "acpi: device unplug for unsupported device"
120 "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
122 NIC_RX_FILTER_CHANGED
123 ---------------------
125 The event is emitted once until the query command is executed,
126 the first event will always be emitted.
130 - "name": net client name (json-string)
131 - "path": device path (json-string)
133 { "event": "NIC_RX_FILTER_CHANGED",
134 "data": { "name": "vnet0",
135 "path": "/machine/peripheral/vnet0/virtio-backend" },
136 "timestamp": { "seconds": 1368697518, "microseconds": 326866 } }
142 Emitted when the Virtual Machine is powered down through the power
143 control system, such as via ACPI.
149 { "event": "POWERDOWN",
150 "timestamp": { "seconds": 1267040730, "microseconds": 682951 } }
155 Emitted by the Quorum block driver if it fails to establish a quorum.
159 - "reference": device name if defined else node name.
160 - "sector-num": Number of the first sector of the failed read operation.
161 - "sectors-count": Failed read operation sector count.
165 { "event": "QUORUM_FAILURE",
166 "data": { "reference": "usr1", "sector-num": 345435, "sectors-count": 5 },
167 "timestamp": { "seconds": 1344522075, "microseconds": 745528 } }
169 Note: this event is rate-limited.
174 Emitted to report a corruption of a Quorum file.
178 - "type": Quorum operation type
179 - "error": Error message (json-string, optional)
180 Only present on failure. This field contains a human-readable
181 error message. There are no semantics other than that the
182 block layer reported an error and clients should not try to
183 interpret the error string.
184 - "node-name": The graph node name of the block driver state.
185 - "sector-num": Number of the first sector of the failed read operation.
186 - "sectors-count": Failed read operation sector count.
191 { "event": "QUORUM_REPORT_BAD",
192 "data": { "node-name": "node0", "sector-num": 345435, "sectors-count": 5,
194 "timestamp": { "seconds": 1344522075, "microseconds": 745528 } }
197 { "event": "QUORUM_REPORT_BAD",
198 "data": { "node-name": "node0", "sector-num": 0, "sectors-count": 2097120,
199 "type": "flush", "error": "Broken pipe" },
200 "timestamp": { "seconds": 1456406829, "microseconds": 291763 } }
202 Note: this event is rate-limited.
207 Emitted when the Virtual Machine is reset.
214 "timestamp": { "seconds": 1267041653, "microseconds": 9518 } }
219 Emitted when the Virtual Machine resumes execution.
226 "timestamp": { "seconds": 1271770767, "microseconds": 582542 } }
231 Emitted when the guest changes the RTC time.
235 - "offset": Offset between base RTC clock (as specified by -rtc base), and
236 new RTC clock value (json-number)
240 { "event": "RTC_CHANGE",
241 "data": { "offset": 78 },
242 "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
244 Note: this event is rate-limited.
249 Emitted when the Virtual Machine has shut down, indicating that qemu
256 { "event": "SHUTDOWN",
257 "timestamp": { "seconds": 1267040730, "microseconds": 682951 } }
259 Note: If the command-line option "-no-shutdown" has been specified, a STOP
260 event will eventually follow the SHUTDOWN event.
265 Emitted when a SPICE client connects.
269 - "server": Server information (json-object)
270 - "host": IP address (json-string)
271 - "port": port number (json-string)
272 - "family": address family (json-string, "ipv4" or "ipv6")
273 - "client": Client information (json-object)
274 - "host": IP address (json-string)
275 - "port": port number (json-string)
276 - "family": address family (json-string, "ipv4" or "ipv6")
280 { "timestamp": {"seconds": 1290688046, "microseconds": 388707},
281 "event": "SPICE_CONNECTED",
283 "server": { "port": "5920", "family": "ipv4", "host": "127.0.0.1"},
284 "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"}
290 Emitted when a SPICE client disconnects.
294 - "server": Server information (json-object)
295 - "host": IP address (json-string)
296 - "port": port number (json-string)
297 - "family": address family (json-string, "ipv4" or "ipv6")
298 - "client": Client information (json-object)
299 - "host": IP address (json-string)
300 - "port": port number (json-string)
301 - "family": address family (json-string, "ipv4" or "ipv6")
305 { "timestamp": {"seconds": 1290688046, "microseconds": 388707},
306 "event": "SPICE_DISCONNECTED",
308 "server": { "port": "5920", "family": "ipv4", "host": "127.0.0.1"},
309 "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"}
315 Emitted after initial handshake and authentication takes place (if any)
316 and the SPICE channel is up and running
320 - "server": Server information (json-object)
321 - "host": IP address (json-string)
322 - "port": port number (json-string)
323 - "family": address family (json-string, "ipv4" or "ipv6")
324 - "auth": authentication method (json-string, optional)
325 - "client": Client information (json-object)
326 - "host": IP address (json-string)
327 - "port": port number (json-string)
328 - "family": address family (json-string, "ipv4" or "ipv6")
329 - "connection-id": spice connection id. All channels with the same id
330 belong to the same spice session (json-int)
331 - "channel-type": channel type. "1" is the main control channel, filter for
332 this one if you want track spice sessions only (json-int)
333 - "channel-id": channel id. Usually "0", might be different needed when
334 multiple channels of the same type exist, such as multiple
335 display channels in a multihead setup (json-int)
336 - "tls": whevener the channel is encrypted (json-bool)
340 { "timestamp": {"seconds": 1290688046, "microseconds": 417172},
341 "event": "SPICE_INITIALIZED",
342 "data": {"server": {"auth": "spice", "port": "5921",
343 "family": "ipv4", "host": "127.0.0.1"},
344 "client": {"port": "49004", "family": "ipv4", "channel-type": 3,
345 "connection-id": 1804289383, "host": "127.0.0.1",
346 "channel-id": 0, "tls": true}
349 SPICE_MIGRATE_COMPLETED
350 -----------------------
352 Emitted when SPICE migration has completed
358 { "timestamp": {"seconds": 1290688046, "microseconds": 417172},
359 "event": "SPICE_MIGRATE_COMPLETED" }
364 Emitted when a migration event happens
368 - "status": migration status
369 See MigrationStatus in ~/qapi-schema.json for possible values
373 {"timestamp": {"seconds": 1432121972, "microseconds": 744001},
374 "event": "MIGRATION", "data": {"status": "completed"}}
379 Emitted from the source side of a migration at the start of each pass
380 (when it syncs the dirty bitmap)
384 - "pass": An incrementing count (starting at 1 on the first pass)
387 {"timestamp": {"seconds": 1449669631, "microseconds": 239225},
388 "event": "MIGRATION_PASS", "data": {"pass": 2}}
393 Emitted when the Virtual Machine is stopped.
400 "timestamp": { "seconds": 1267041730, "microseconds": 281295 } }
405 Emitted when guest enters S3 state.
411 { "event": "SUSPEND",
412 "timestamp": { "seconds": 1344456160, "microseconds": 309119 } }
417 Emitted when the guest makes a request to enter S4 state.
423 { "event": "SUSPEND_DISK",
424 "timestamp": { "seconds": 1344456160, "microseconds": 309119 } }
426 Note: QEMU shuts down when entering S4 state.
431 Emitted when a VNC client establishes a connection.
435 - "server": Server information (json-object)
436 - "host": IP address (json-string)
437 - "service": port number (json-string)
438 - "family": address family (json-string, "ipv4" or "ipv6")
439 - "auth": authentication method (json-string, optional)
440 - "client": Client information (json-object)
441 - "host": IP address (json-string)
442 - "service": port number (json-string)
443 - "family": address family (json-string, "ipv4" or "ipv6")
447 { "event": "VNC_CONNECTED",
449 "server": { "auth": "sasl", "family": "ipv4",
450 "service": "5901", "host": "0.0.0.0" },
451 "client": { "family": "ipv4", "service": "58425",
452 "host": "127.0.0.1" } },
453 "timestamp": { "seconds": 1262976601, "microseconds": 975795 } }
456 Note: This event is emitted before any authentication takes place, thus
457 the authentication ID is not provided.
462 Emitted when the connection is closed.
466 - "server": Server information (json-object)
467 - "host": IP address (json-string)
468 - "service": port number (json-string)
469 - "family": address family (json-string, "ipv4" or "ipv6")
470 - "auth": authentication method (json-string, optional)
471 - "client": Client information (json-object)
472 - "host": IP address (json-string)
473 - "service": port number (json-string)
474 - "family": address family (json-string, "ipv4" or "ipv6")
475 - "x509_dname": TLS dname (json-string, optional)
476 - "sasl_username": SASL username (json-string, optional)
480 { "event": "VNC_DISCONNECTED",
482 "server": { "auth": "sasl", "family": "ipv4",
483 "service": "5901", "host": "0.0.0.0" },
484 "client": { "family": "ipv4", "service": "58425",
485 "host": "127.0.0.1", "sasl_username": "luiz" } },
486 "timestamp": { "seconds": 1262976601, "microseconds": 975795 } }
491 Emitted after authentication takes place (if any) and the VNC session is
496 - "server": Server information (json-object)
497 - "host": IP address (json-string)
498 - "service": port number (json-string)
499 - "family": address family (json-string, "ipv4" or "ipv6")
500 - "auth": authentication method (json-string, optional)
501 - "client": Client information (json-object)
502 - "host": IP address (json-string)
503 - "service": port number (json-string)
504 - "family": address family (json-string, "ipv4" or "ipv6")
505 - "x509_dname": TLS dname (json-string, optional)
506 - "sasl_username": SASL username (json-string, optional)
510 { "event": "VNC_INITIALIZED",
512 "server": { "auth": "sasl", "family": "ipv4",
513 "service": "5901", "host": "0.0.0.0"},
514 "client": { "family": "ipv4", "service": "46089",
515 "host": "127.0.0.1", "sasl_username": "luiz" } },
516 "timestamp": { "seconds": 1263475302, "microseconds": 150772 } }
521 Emitted when the guest opens or closes a virtio-serial port.
525 - "id": device identifier of the virtio-serial port (json-string)
526 - "open": true if the guest has opened the virtio-serial port (json-bool)
530 { "event": "VSERPORT_CHANGE",
531 "data": { "id": "channel0", "open": true },
532 "timestamp": { "seconds": 1401385907, "microseconds": 422329 } }
534 Note: this event is rate-limited separately for each "id".
539 Emitted when the guest has woken up from S3 and is running.
546 "timestamp": { "seconds": 1344522075, "microseconds": 745528 } }
551 Emitted when the watchdog device's timer is expired.
555 - "action": Action that has been taken, it's one of the following (json-string):
556 "reset", "shutdown", "poweroff", "pause", "debug", or "none"
560 { "event": "WATCHDOG",
561 "data": { "action": "reset" },
562 "timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
564 Note: If action is "reset", "shutdown", or "pause" the WATCHDOG event is
565 followed respectively by the RESET, SHUTDOWN, or STOP events.
567 Note: this event is rate-limited.