]>
Commit | Line | Data |
---|---|---|
d3a48372 MAL |
1 | # -*- Mode: Python -*- |
2 | ||
3 | ## | |
4 | # = Other events | |
5 | ## | |
6 | ||
84321831 | 7 | ## |
5072f7b3 | 8 | # @SHUTDOWN: |
84321831 | 9 | # |
2f44a08b WX |
10 | # Emitted when the virtual machine has shut down, indicating that qemu is |
11 | # about to exit. | |
84321831 WX |
12 | # |
13 | # Note: If the command-line option "-no-shutdown" has been specified, qemu will | |
14 | # not exit, and a STOP event will eventually follow the SHUTDOWN event | |
15 | # | |
16 | # Since: 0.12.0 | |
12defe50 MAL |
17 | # |
18 | # Example: | |
19 | # | |
20 | # <- { "event": "SHUTDOWN", | |
21 | # "timestamp": { "seconds": 1267040730, "microseconds": 682951 } } | |
22 | # | |
84321831 WX |
23 | ## |
24 | { 'event': 'SHUTDOWN' } | |
0aab9ec3 WX |
25 | |
26 | ## | |
5072f7b3 | 27 | # @POWERDOWN: |
0aab9ec3 WX |
28 | # |
29 | # Emitted when the virtual machine is powered down through the power control | |
30 | # system, such as via ACPI. | |
31 | # | |
32 | # Since: 0.12.0 | |
189d43be MAL |
33 | # |
34 | # Example: | |
35 | # | |
36 | # <- { "event": "POWERDOWN", | |
37 | # "timestamp": { "seconds": 1267040730, "microseconds": 682951 } } | |
38 | # | |
0aab9ec3 WX |
39 | ## |
40 | { 'event': 'POWERDOWN' } | |
a6330785 WX |
41 | |
42 | ## | |
5072f7b3 | 43 | # @RESET: |
a6330785 WX |
44 | # |
45 | # Emitted when the virtual machine is reset | |
46 | # | |
47 | # Since: 0.12.0 | |
7a2aae7a MAL |
48 | # |
49 | # Example: | |
50 | # | |
51 | # <- { "event": "RESET", | |
52 | # "timestamp": { "seconds": 1267041653, "microseconds": 9518 } } | |
53 | # | |
a6330785 WX |
54 | ## |
55 | { 'event': 'RESET' } | |
a4e15de9 WX |
56 | |
57 | ## | |
5072f7b3 | 58 | # @STOP: |
a4e15de9 WX |
59 | # |
60 | # Emitted when the virtual machine is stopped | |
61 | # | |
62 | # Since: 0.12.0 | |
138c454c MAL |
63 | # |
64 | # Example: | |
65 | # | |
66 | # <- { "event": "STOP", | |
67 | # "timestamp": { "seconds": 1267041730, "microseconds": 281295 } } | |
68 | # | |
a4e15de9 WX |
69 | ## |
70 | { 'event': 'STOP' } | |
591c48fb WX |
71 | |
72 | ## | |
5072f7b3 | 73 | # @RESUME: |
591c48fb WX |
74 | # |
75 | # Emitted when the virtual machine resumes execution | |
76 | # | |
77 | # Since: 0.12.0 | |
a2235a04 MAL |
78 | # |
79 | # Example: | |
80 | # | |
81 | # <- { "event": "RESUME", | |
82 | # "timestamp": { "seconds": 1271770767, "microseconds": 582542 } } | |
83 | # | |
591c48fb WX |
84 | ## |
85 | { 'event': 'RESUME' } | |
1d11a95a WX |
86 | |
87 | ## | |
5072f7b3 | 88 | # @SUSPEND: |
1d11a95a WX |
89 | # |
90 | # Emitted when guest enters a hardware suspension state, for example, S3 state, | |
91 | # which is sometimes called standby state | |
92 | # | |
93 | # Since: 1.1 | |
6f3cc540 MAL |
94 | # |
95 | # Example: | |
96 | # | |
97 | # <- { "event": "SUSPEND", | |
98 | # "timestamp": { "seconds": 1344456160, "microseconds": 309119 } } | |
99 | # | |
1d11a95a WX |
100 | ## |
101 | { 'event': 'SUSPEND' } | |
2ea4100f WX |
102 | |
103 | ## | |
5072f7b3 | 104 | # @SUSPEND_DISK: |
2ea4100f WX |
105 | # |
106 | # Emitted when guest enters a hardware suspension state with data saved on | |
107 | # disk, for example, S4 state, which is sometimes called hibernate state | |
108 | # | |
109 | # Note: QEMU shuts down (similar to event @SHUTDOWN) when entering this state | |
110 | # | |
111 | # Since: 1.2 | |
4de62c38 MAL |
112 | # |
113 | # Example: | |
114 | # | |
115 | # <- { "event": "SUSPEND_DISK", | |
116 | # "timestamp": { "seconds": 1344456160, "microseconds": 309119 } } | |
117 | # | |
2ea4100f WX |
118 | ## |
119 | { 'event': 'SUSPEND_DISK' } | |
7a906f7f WX |
120 | |
121 | ## | |
5072f7b3 | 122 | # @WAKEUP: |
7a906f7f WX |
123 | # |
124 | # Emitted when the guest has woken up from suspend state and is running | |
125 | # | |
126 | # Since: 1.1 | |
aa496f98 MAL |
127 | # |
128 | # Example: | |
129 | # | |
130 | # <- { "event": "WAKEUP", | |
131 | # "timestamp": { "seconds": 1344522075, "microseconds": 745528 } } | |
132 | # | |
7a906f7f WX |
133 | ## |
134 | { 'event': 'WAKEUP' } | |
e010ad8f WX |
135 | |
136 | ## | |
5072f7b3 | 137 | # @RTC_CHANGE: |
e010ad8f WX |
138 | # |
139 | # Emitted when the guest changes the RTC time. | |
140 | # | |
141 | # @offset: offset between base RTC clock (as specified by -rtc base), and | |
142 | # new RTC clock value | |
143 | # | |
73c41bfd MAL |
144 | # Note: This event is rate-limited. |
145 | # | |
e010ad8f | 146 | # Since: 0.13.0 |
73c41bfd MAL |
147 | # |
148 | # Example: | |
149 | # | |
150 | # <- { "event": "RTC_CHANGE", | |
151 | # "data": { "offset": 78 }, | |
152 | # "timestamp": { "seconds": 1267020223, "microseconds": 435656 } } | |
153 | # | |
e010ad8f WX |
154 | ## |
155 | { 'event': 'RTC_CHANGE', | |
156 | 'data': { 'offset': 'int' } } | |
99eaf09c WX |
157 | |
158 | ## | |
5072f7b3 | 159 | # @WATCHDOG: |
99eaf09c WX |
160 | # |
161 | # Emitted when the watchdog device's timer is expired | |
162 | # | |
163 | # @action: action that has been taken | |
164 | # | |
165 | # Note: If action is "reset", "shutdown", or "pause" the WATCHDOG event is | |
166 | # followed respectively by the RESET, SHUTDOWN, or STOP events | |
167 | # | |
9ba5cec9 MAL |
168 | # Note: This event is rate-limited. |
169 | # | |
99eaf09c | 170 | # Since: 0.13.0 |
9ba5cec9 MAL |
171 | # |
172 | # Example: | |
173 | # | |
174 | # <- { "event": "WATCHDOG", | |
175 | # "data": { "action": "reset" }, | |
176 | # "timestamp": { "seconds": 1267061043, "microseconds": 959568 } } | |
177 | # | |
99eaf09c WX |
178 | ## |
179 | { 'event': 'WATCHDOG', | |
180 | 'data': { 'action': 'WatchdogExpirationAction' } } | |
24b699fb WX |
181 | |
182 | ## | |
5072f7b3 | 183 | # @DEVICE_DELETED: |
24b699fb WX |
184 | # |
185 | # Emitted whenever the device removal completion is acknowledged by the guest. | |
186 | # At this point, it's safe to reuse the specified device ID. Device removal can | |
187 | # be initiated by the guest or by HMP/QMP commands. | |
188 | # | |
189 | # @device: #optional, device name | |
190 | # | |
191 | # @path: device path | |
192 | # | |
193 | # Since: 1.5 | |
cdc94a1b MAL |
194 | # |
195 | # Example: | |
196 | # | |
197 | # <- { "event": "DEVICE_DELETED", | |
198 | # "data": { "device": "virtio-net-pci-0", | |
199 | # "path": "/machine/peripheral/virtio-net-pci-0" }, | |
200 | # "timestamp": { "seconds": 1265044230, "microseconds": 450486 } } | |
201 | # | |
24b699fb WX |
202 | ## |
203 | { 'event': 'DEVICE_DELETED', | |
204 | 'data': { '*device': 'str', 'path': 'str' } } | |
06150279 WX |
205 | |
206 | ## | |
5072f7b3 | 207 | # @NIC_RX_FILTER_CHANGED: |
06150279 WX |
208 | # |
209 | # Emitted once until the 'query-rx-filter' command is executed, the first event | |
210 | # will always be emitted | |
211 | # | |
212 | # @name: #optional, net client name | |
213 | # | |
214 | # @path: device path | |
215 | # | |
216 | # Since: 1.6 | |
5dbdcf43 MAL |
217 | # |
218 | # Example: | |
219 | # | |
220 | # <- { "event": "NIC_RX_FILTER_CHANGED", | |
221 | # "data": { "name": "vnet0", | |
222 | # "path": "/machine/peripheral/vnet0/virtio-backend" }, | |
223 | # "timestamp": { "seconds": 1368697518, "microseconds": 326866 } } | |
224 | # } | |
225 | # | |
06150279 WX |
226 | ## |
227 | { 'event': 'NIC_RX_FILTER_CHANGED', | |
228 | 'data': { '*name': 'str', 'path': 'str' } } | |
fb6ba0d5 WX |
229 | |
230 | ## | |
5072f7b3 | 231 | # @VNC_CONNECTED: |
fb6ba0d5 WX |
232 | # |
233 | # Emitted when a VNC client establishes a connection | |
234 | # | |
235 | # @server: server information | |
236 | # | |
237 | # @client: client information | |
238 | # | |
239 | # Note: This event is emitted before any authentication takes place, thus | |
240 | # the authentication ID is not provided | |
241 | # | |
242 | # Since: 0.13.0 | |
243 | ## | |
244 | { 'event': 'VNC_CONNECTED', | |
245 | 'data': { 'server': 'VncServerInfo', | |
246 | 'client': 'VncBasicInfo' } } | |
247 | ||
248 | ## | |
5072f7b3 | 249 | # @VNC_INITIALIZED: |
fb6ba0d5 WX |
250 | # |
251 | # Emitted after authentication takes place (if any) and the VNC session is | |
252 | # made active | |
253 | # | |
254 | # @server: server information | |
255 | # | |
256 | # @client: client information | |
257 | # | |
258 | # Since: 0.13.0 | |
259 | ## | |
260 | { 'event': 'VNC_INITIALIZED', | |
261 | 'data': { 'server': 'VncServerInfo', | |
262 | 'client': 'VncClientInfo' } } | |
263 | ||
264 | ## | |
5072f7b3 | 265 | # @VNC_DISCONNECTED: |
fb6ba0d5 WX |
266 | # |
267 | # Emitted when the connection is closed | |
268 | # | |
269 | # @server: server information | |
270 | # | |
271 | # @client: client information | |
272 | # | |
273 | # Since: 0.13.0 | |
274 | ## | |
275 | { 'event': 'VNC_DISCONNECTED', | |
276 | 'data': { 'server': 'VncServerInfo', | |
277 | 'client': 'VncClientInfo' } } | |
7cfadb6b WX |
278 | |
279 | ## | |
5072f7b3 | 280 | # @SPICE_CONNECTED: |
7cfadb6b WX |
281 | # |
282 | # Emitted when a SPICE client establishes a connection | |
283 | # | |
284 | # @server: server information | |
285 | # | |
286 | # @client: client information | |
287 | # | |
288 | # Since: 0.14.0 | |
289 | ## | |
290 | { 'event': 'SPICE_CONNECTED', | |
291 | 'data': { 'server': 'SpiceBasicInfo', | |
292 | 'client': 'SpiceBasicInfo' } } | |
293 | ||
294 | ## | |
5072f7b3 | 295 | # @SPICE_INITIALIZED: |
7cfadb6b WX |
296 | # |
297 | # Emitted after initial handshake and authentication takes place (if any) | |
298 | # and the SPICE channel is up and running | |
299 | # | |
300 | # @server: server information | |
301 | # | |
302 | # @client: client information | |
303 | # | |
304 | # Since: 0.14.0 | |
305 | ## | |
306 | { 'event': 'SPICE_INITIALIZED', | |
307 | 'data': { 'server': 'SpiceServerInfo', | |
308 | 'client': 'SpiceChannel' } } | |
309 | ||
310 | ## | |
5072f7b3 | 311 | # @SPICE_DISCONNECTED: |
7cfadb6b WX |
312 | # |
313 | # Emitted when the SPICE connection is closed | |
314 | # | |
315 | # @server: server information | |
316 | # | |
317 | # @client: client information | |
318 | # | |
319 | # Since: 0.14.0 | |
320 | ## | |
321 | { 'event': 'SPICE_DISCONNECTED', | |
322 | 'data': { 'server': 'SpiceBasicInfo', | |
323 | 'client': 'SpiceBasicInfo' } } | |
324 | ||
325 | ## | |
5072f7b3 | 326 | # @SPICE_MIGRATE_COMPLETED: |
7cfadb6b WX |
327 | # |
328 | # Emitted when SPICE migration has completed | |
329 | # | |
330 | # Since: 1.3 | |
331 | ## | |
332 | { 'event': 'SPICE_MIGRATE_COMPLETED' } | |
5f41fbba | 333 | |
598cd2bd | 334 | ## |
5072f7b3 | 335 | # @MIGRATION: |
598cd2bd JQ |
336 | # |
337 | # Emitted when a migration event happens | |
338 | # | |
339 | # @status: @MigrationStatus describing the current migration status. | |
340 | # | |
341 | # Since: 2.4 | |
342 | ## | |
343 | { 'event': 'MIGRATION', | |
344 | 'data': {'status': 'MigrationStatus'}} | |
345 | ||
4addcd4f | 346 | ## |
5072f7b3 | 347 | # @MIGRATION_PASS: |
4addcd4f DDAG |
348 | # |
349 | # Emitted from the source side of a migration at the start of each pass | |
350 | # (when it syncs the dirty bitmap) | |
351 | # | |
352 | # @pass: An incrementing count (starting at 1 on the first pass) | |
353 | # | |
354 | # Since: 2.6 | |
355 | ## | |
356 | { 'event': 'MIGRATION_PASS', | |
357 | 'data': { 'pass': 'int' } } | |
358 | ||
5f41fbba | 359 | ## |
5072f7b3 | 360 | # @ACPI_DEVICE_OST: |
5f41fbba IM |
361 | # |
362 | # Emitted when guest executes ACPI _OST method. | |
363 | # | |
5f41fbba | 364 | # @info: ACPIOSTInfo type as described in qapi-schema.json |
5807ff88 MAL |
365 | # |
366 | # Since: 2.1 | |
5f41fbba IM |
367 | ## |
368 | { 'event': 'ACPI_DEVICE_OST', | |
369 | 'data': { 'info': 'ACPIOSTInfo' } } | |
aef9d311 WX |
370 | |
371 | ## | |
5072f7b3 | 372 | # @BALLOON_CHANGE: |
aef9d311 WX |
373 | # |
374 | # Emitted when the guest changes the actual BALLOON level. This value is | |
375 | # equivalent to the @actual field return by the 'query-balloon' command | |
376 | # | |
377 | # @actual: actual level of the guest memory balloon in bytes | |
378 | # | |
379 | # Since: 1.2 | |
380 | ## | |
381 | { 'event': 'BALLOON_CHANGE', | |
382 | 'data': { 'actual': 'int' } } | |
3a449690 WX |
383 | |
384 | ## | |
5072f7b3 | 385 | # @GUEST_PANICKED: |
3a449690 WX |
386 | # |
387 | # Emitted when guest OS panic is detected | |
388 | # | |
389 | # @action: action that has been taken, currently always "pause" | |
390 | # | |
391 | # Since: 1.5 | |
392 | ## | |
393 | { 'event': 'GUEST_PANICKED', | |
394 | 'data': { 'action': 'GuestPanicAction' } } | |
fe069d9d WX |
395 | |
396 | ## | |
5072f7b3 | 397 | # @QUORUM_FAILURE: |
fe069d9d WX |
398 | # |
399 | # Emitted by the Quorum block driver if it fails to establish a quorum | |
400 | # | |
401 | # @reference: device name if defined else node name | |
402 | # | |
403 | # @sector-num: number of the first sector of the failed read operation | |
404 | # | |
4e855baa | 405 | # @sectors-count: failed read operation sector count |
fe069d9d WX |
406 | # |
407 | # Since: 2.0 | |
408 | ## | |
409 | { 'event': 'QUORUM_FAILURE', | |
4e855baa | 410 | 'data': { 'reference': 'str', 'sector-num': 'int', 'sectors-count': 'int' } } |
fe069d9d WX |
411 | |
412 | ## | |
5072f7b3 | 413 | # @QUORUM_REPORT_BAD: |
fe069d9d WX |
414 | # |
415 | # Emitted to report a corruption of a Quorum file | |
416 | # | |
0ae053b7 CX |
417 | # @type: quorum operation type (Since 2.6) |
418 | # | |
fe069d9d WX |
419 | # @error: #optional, error message. Only present on failure. This field |
420 | # contains a human-readable error message. There are no semantics other | |
421 | # than that the block layer reported an error and clients should not | |
422 | # try to interpret the error string. | |
423 | # | |
424 | # @node-name: the graph node name of the block driver state | |
425 | # | |
426 | # @sector-num: number of the first sector of the failed read operation | |
427 | # | |
4e855baa | 428 | # @sectors-count: failed read operation sector count |
fe069d9d WX |
429 | # |
430 | # Since: 2.0 | |
431 | ## | |
432 | { 'event': 'QUORUM_REPORT_BAD', | |
0ae053b7 | 433 | 'data': { 'type': 'QuorumOpType', '*error': 'str', 'node-name': 'str', |
4e855baa | 434 | 'sector-num': 'int', 'sectors-count': 'int' } } |
e2ae6159 LE |
435 | |
436 | ## | |
5072f7b3 | 437 | # @VSERPORT_CHANGE: |
e2ae6159 LE |
438 | # |
439 | # Emitted when the guest opens or closes a virtio-serial port. | |
440 | # | |
441 | # @id: device identifier of the virtio-serial port | |
442 | # | |
443 | # @open: true if the guest has opened the virtio-serial port | |
444 | # | |
445 | # Since: 2.1 | |
446 | ## | |
447 | { 'event': 'VSERPORT_CHANGE', | |
448 | 'data': { 'id': 'str', 'open': 'bool' } } | |
bc09e061 ZG |
449 | |
450 | ## | |
5072f7b3 | 451 | # @MEM_UNPLUG_ERROR: |
bc09e061 ZG |
452 | # |
453 | # Emitted when memory hot unplug error occurs. | |
454 | # | |
455 | # @device: device name | |
456 | # | |
457 | # @msg: Informative message | |
458 | # | |
459 | # Since: 2.4 | |
460 | ## | |
461 | { 'event': 'MEM_UNPLUG_ERROR', | |
462 | 'data': { 'device': 'str', 'msg': 'str' } } | |
d42a0d14 PX |
463 | |
464 | ## | |
5072f7b3 | 465 | # @DUMP_COMPLETED: |
d42a0d14 PX |
466 | # |
467 | # Emitted when background dump has completed | |
468 | # | |
469 | # @result: DumpQueryResult type described in qapi-schema.json. | |
470 | # | |
471 | # @error: #optional human-readable error string that provides | |
472 | # hint on why dump failed. Only presents on failure. The | |
473 | # user should not try to interpret the error string. | |
474 | # | |
475 | # Since: 2.6 | |
476 | ## | |
477 | { 'event': 'DUMP_COMPLETED' , | |
478 | 'data': { 'result': 'DumpQueryResult', '*error': 'str' } } |