]> Git Repo - qemu.git/blame_incremental - QMP/qmp-events.txt
qom: call class destructor before unparent
[qemu.git] / QMP / qmp-events.txt
... / ...
CommitLineData
1 QEMU Monitor Protocol Events
2 ============================
3
4BALLOON_CHANGE
5--------------
6
7Emitted when the guest changes the actual BALLOON level. This
8value is equivalent to the 'actual' field return by the
9'query-balloon' command
10
11Data:
12
13- "actual": actual level of the guest memory balloon in bytes (json-number)
14
15Example:
16
17{ "event": "BALLOON_CHANGE",
18 "data": { "actual": 944766976 },
19 "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
20
21BLOCK_IO_ERROR
22--------------
23
24Emitted when a disk I/O error occurs.
25
26Data:
27
28- "device": device name (json-string)
29- "operation": I/O operation (json-string, "read" or "write")
30- "action": action that has been taken, it's one of the following (json-string):
31 "ignore": error has been ignored
32 "report": error has been reported to the device
33 "stop": error caused VM to be stopped
34
35Example:
36
37{ "event": "BLOCK_IO_ERROR",
38 "data": { "device": "ide0-hd1",
39 "operation": "write",
40 "action": "stop" },
41 "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
42
43Note: If action is "stop", a STOP event will eventually follow the
44BLOCK_IO_ERROR event.
45
46BLOCK_JOB_CANCELLED
47-------------------
48
49Emitted when a block job has been cancelled.
50
51Data:
52
53- "type": Job type (json-string; "stream" for image streaming
54 "commit" for block commit)
55- "device": Device name (json-string)
56- "len": Maximum progress value (json-int)
57- "offset": Current progress value (json-int)
58 On success this is equal to len.
59 On failure this is less than len.
60- "speed": Rate limit, bytes per second (json-int)
61
62Example:
63
64{ "event": "BLOCK_JOB_CANCELLED",
65 "data": { "type": "stream", "device": "virtio-disk0",
66 "len": 10737418240, "offset": 134217728,
67 "speed": 0 },
68 "timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
69
70BLOCK_JOB_COMPLETED
71-------------------
72
73Emitted when a block job has completed.
74
75Data:
76
77- "type": Job type (json-string; "stream" for image streaming
78 "commit" for block commit)
79- "device": Device name (json-string)
80- "len": Maximum progress value (json-int)
81- "offset": Current progress value (json-int)
82 On success this is equal to len.
83 On failure this is less than len.
84- "speed": Rate limit, bytes per second (json-int)
85- "error": Error message (json-string, optional)
86 Only present on failure. This field contains a human-readable
87 error message. There are no semantics other than that streaming
88 has failed and clients should not try to interpret the error
89 string.
90
91Example:
92
93{ "event": "BLOCK_JOB_COMPLETED",
94 "data": { "type": "stream", "device": "virtio-disk0",
95 "len": 10737418240, "offset": 10737418240,
96 "speed": 0 },
97 "timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
98
99BLOCK_JOB_ERROR
100---------------
101
102Emitted when a block job encounters an error.
103
104Data:
105
106- "device": device name (json-string)
107- "operation": I/O operation (json-string, "read" or "write")
108- "action": action that has been taken, it's one of the following (json-string):
109 "ignore": error has been ignored, the job may fail later
110 "report": error will be reported and the job canceled
111 "stop": error caused job to be paused
112
113Example:
114
115{ "event": "BLOCK_JOB_ERROR",
116 "data": { "device": "ide0-hd1",
117 "operation": "write",
118 "action": "stop" },
119 "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
120
121BLOCK_JOB_READY
122---------------
123
124Emitted when a block job is ready to complete.
125
126Data:
127
128- "device": device name (json-string)
129
130Example:
131
132{ "event": "BLOCK_JOB_READY",
133 "data": { "device": "ide0-hd1" },
134 "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
135
136Note: The "ready to complete" status is always reset by a BLOCK_JOB_ERROR
137event.
138
139DEVICE_DELETED
140-----------------
141
142Emitted whenever the device removal completion is acknowledged
143by the guest.
144At this point, it's safe to reuse the specified device ID.
145Device removal can be initiated by the guest or by HMP/QMP commands.
146
147Data:
148
149- "device": device name (json-string, optional)
150
151{ "event": "DEVICE_DELETED",
152 "data": { "device": "virtio-net-pci-0" },
153 "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
154
155DEVICE_TRAY_MOVED
156-----------------
157
158It's emitted whenever the tray of a removable device is moved by the guest
159or by HMP/QMP commands.
160
161Data:
162
163- "device": device name (json-string)
164- "tray-open": true if the tray has been opened or false if it has been closed
165 (json-bool)
166
167{ "event": "DEVICE_TRAY_MOVED",
168 "data": { "device": "ide1-cd0",
169 "tray-open": true
170 },
171 "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
172
173RESET
174-----
175
176Emitted when the Virtual Machine is reseted.
177
178Data: None.
179
180Example:
181
182{ "event": "RESET",
183 "timestamp": { "seconds": 1267041653, "microseconds": 9518 } }
184
185RESUME
186------
187
188Emitted when the Virtual Machine resumes execution.
189
190Data: None.
191
192Example:
193
194{ "event": "RESUME",
195 "timestamp": { "seconds": 1271770767, "microseconds": 582542 } }
196
197RTC_CHANGE
198----------
199
200Emitted when the guest changes the RTC time.
201
202Data:
203
204- "offset": delta against the host UTC in seconds (json-number)
205
206Example:
207
208{ "event": "RTC_CHANGE",
209 "data": { "offset": 78 },
210 "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
211
212SHUTDOWN
213--------
214
215Emitted when the Virtual Machine is powered down.
216
217Data: None.
218
219Example:
220
221{ "event": "SHUTDOWN",
222 "timestamp": { "seconds": 1267040730, "microseconds": 682951 } }
223
224Note: If the command-line option "-no-shutdown" has been specified, a STOP
225event will eventually follow the SHUTDOWN event.
226
227SPICE_CONNECTED, SPICE_DISCONNECTED
228-----------------------------------
229
230Emitted when a SPICE client connects or disconnects.
231
232Data:
233
234- "server": Server information (json-object)
235 - "host": IP address (json-string)
236 - "port": port number (json-string)
237 - "family": address family (json-string, "ipv4" or "ipv6")
238- "client": Client information (json-object)
239 - "host": IP address (json-string)
240 - "port": port number (json-string)
241 - "family": address family (json-string, "ipv4" or "ipv6")
242
243Example:
244
245{ "timestamp": {"seconds": 1290688046, "microseconds": 388707},
246 "event": "SPICE_CONNECTED",
247 "data": {
248 "server": { "port": "5920", "family": "ipv4", "host": "127.0.0.1"},
249 "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"}
250}}
251
252SPICE_INITIALIZED
253-----------------
254
255Emitted after initial handshake and authentication takes place (if any)
256and the SPICE channel is up'n'running
257
258Data:
259
260- "server": Server information (json-object)
261 - "host": IP address (json-string)
262 - "port": port number (json-string)
263 - "family": address family (json-string, "ipv4" or "ipv6")
264 - "auth": authentication method (json-string, optional)
265- "client": Client information (json-object)
266 - "host": IP address (json-string)
267 - "port": port number (json-string)
268 - "family": address family (json-string, "ipv4" or "ipv6")
269 - "connection-id": spice connection id. All channels with the same id
270 belong to the same spice session (json-int)
271 - "channel-type": channel type. "1" is the main control channel, filter for
272 this one if you want track spice sessions only (json-int)
273 - "channel-id": channel id. Usually "0", might be different needed when
274 multiple channels of the same type exist, such as multiple
275 display channels in a multihead setup (json-int)
276 - "tls": whevener the channel is encrypted (json-bool)
277
278Example:
279
280{ "timestamp": {"seconds": 1290688046, "microseconds": 417172},
281 "event": "SPICE_INITIALIZED",
282 "data": {"server": {"auth": "spice", "port": "5921",
283 "family": "ipv4", "host": "127.0.0.1"},
284 "client": {"port": "49004", "family": "ipv4", "channel-type": 3,
285 "connection-id": 1804289383, "host": "127.0.0.1",
286 "channel-id": 0, "tls": true}
287}}
288
289STOP
290----
291
292Emitted when the Virtual Machine is stopped.
293
294Data: None.
295
296Example:
297
298{ "event": "STOP",
299 "timestamp": { "seconds": 1267041730, "microseconds": 281295 } }
300
301SUSPEND
302-------
303
304Emitted when guest enters S3 state.
305
306Data: None.
307
308Example:
309
310{ "event": "SUSPEND",
311 "timestamp": { "seconds": 1344456160, "microseconds": 309119 } }
312
313SUSPEND_DISK
314------------
315
316Emitted when the guest makes a request to enter S4 state.
317
318Data: None.
319
320Example:
321
322{ "event": "SUSPEND_DISK",
323 "timestamp": { "seconds": 1344456160, "microseconds": 309119 } }
324
325Note: QEMU shuts down when entering S4 state.
326
327VNC_CONNECTED
328-------------
329
330Emitted when a VNC client establishes a connection.
331
332Data:
333
334- "server": Server information (json-object)
335 - "host": IP address (json-string)
336 - "service": port number (json-string)
337 - "family": address family (json-string, "ipv4" or "ipv6")
338 - "auth": authentication method (json-string, optional)
339- "client": Client information (json-object)
340 - "host": IP address (json-string)
341 - "service": port number (json-string)
342 - "family": address family (json-string, "ipv4" or "ipv6")
343
344Example:
345
346{ "event": "VNC_CONNECTED",
347 "data": {
348 "server": { "auth": "sasl", "family": "ipv4",
349 "service": "5901", "host": "0.0.0.0" },
350 "client": { "family": "ipv4", "service": "58425",
351 "host": "127.0.0.1" } },
352 "timestamp": { "seconds": 1262976601, "microseconds": 975795 } }
353
354
355Note: This event is emitted before any authentication takes place, thus
356the authentication ID is not provided.
357
358VNC_DISCONNECTED
359----------------
360
361Emitted when the connection is closed.
362
363Data:
364
365- "server": Server information (json-object)
366 - "host": IP address (json-string)
367 - "service": port number (json-string)
368 - "family": address family (json-string, "ipv4" or "ipv6")
369 - "auth": authentication method (json-string, optional)
370- "client": Client information (json-object)
371 - "host": IP address (json-string)
372 - "service": port number (json-string)
373 - "family": address family (json-string, "ipv4" or "ipv6")
374 - "x509_dname": TLS dname (json-string, optional)
375 - "sasl_username": SASL username (json-string, optional)
376
377Example:
378
379{ "event": "VNC_DISCONNECTED",
380 "data": {
381 "server": { "auth": "sasl", "family": "ipv4",
382 "service": "5901", "host": "0.0.0.0" },
383 "client": { "family": "ipv4", "service": "58425",
384 "host": "127.0.0.1", "sasl_username": "luiz" } },
385 "timestamp": { "seconds": 1262976601, "microseconds": 975795 } }
386
387VNC_INITIALIZED
388---------------
389
390Emitted after authentication takes place (if any) and the VNC session is
391made active.
392
393Data:
394
395- "server": Server information (json-object)
396 - "host": IP address (json-string)
397 - "service": port number (json-string)
398 - "family": address family (json-string, "ipv4" or "ipv6")
399 - "auth": authentication method (json-string, optional)
400- "client": Client information (json-object)
401 - "host": IP address (json-string)
402 - "service": port number (json-string)
403 - "family": address family (json-string, "ipv4" or "ipv6")
404 - "x509_dname": TLS dname (json-string, optional)
405 - "sasl_username": SASL username (json-string, optional)
406
407Example:
408
409{ "event": "VNC_INITIALIZED",
410 "data": {
411 "server": { "auth": "sasl", "family": "ipv4",
412 "service": "5901", "host": "0.0.0.0"},
413 "client": { "family": "ipv4", "service": "46089",
414 "host": "127.0.0.1", "sasl_username": "luiz" } },
415 "timestamp": { "seconds": 1263475302, "microseconds": 150772 } }
416
417WAKEUP
418------
419
420Emitted when the guest has woken up from S3 and is running.
421
422Data: None.
423
424Example:
425
426{ "event": "WATCHDOG",
427 "timestamp": { "seconds": 1344522075, "microseconds": 745528 } }
428
429WATCHDOG
430--------
431
432Emitted when the watchdog device's timer is expired.
433
434Data:
435
436- "action": Action that has been taken, it's one of the following (json-string):
437 "reset", "shutdown", "poweroff", "pause", "debug", or "none"
438
439Example:
440
441{ "event": "WATCHDOG",
442 "data": { "action": "reset" },
443 "timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
444
445Note: If action is "reset", "shutdown", or "pause" the WATCHDOG event is
446followed respectively by the RESET, SHUTDOWN, or STOP events.
This page took 0.023872 seconds and 4 git commands to generate.