]> git.proxmox.com Git - mirror_qemu.git/blob - qapi/event.json
qmp-events: move 'RTC_CHANGE' doc to schema
[mirror_qemu.git] / qapi / event.json
1 # -*- Mode: Python -*-
2
3 ##
4 # = Other events
5 ##
6
7 ##
8 # @SHUTDOWN:
9 #
10 # Emitted when the virtual machine has shut down, indicating that qemu is
11 # about to exit.
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
17 #
18 # Example:
19 #
20 # <- { "event": "SHUTDOWN",
21 # "timestamp": { "seconds": 1267040730, "microseconds": 682951 } }
22 #
23 ##
24 { 'event': 'SHUTDOWN' }
25
26 ##
27 # @POWERDOWN:
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
33 #
34 # Example:
35 #
36 # <- { "event": "POWERDOWN",
37 # "timestamp": { "seconds": 1267040730, "microseconds": 682951 } }
38 #
39 ##
40 { 'event': 'POWERDOWN' }
41
42 ##
43 # @RESET:
44 #
45 # Emitted when the virtual machine is reset
46 #
47 # Since: 0.12.0
48 #
49 # Example:
50 #
51 # <- { "event": "RESET",
52 # "timestamp": { "seconds": 1267041653, "microseconds": 9518 } }
53 #
54 ##
55 { 'event': 'RESET' }
56
57 ##
58 # @STOP:
59 #
60 # Emitted when the virtual machine is stopped
61 #
62 # Since: 0.12.0
63 #
64 # Example:
65 #
66 # <- { "event": "STOP",
67 # "timestamp": { "seconds": 1267041730, "microseconds": 281295 } }
68 #
69 ##
70 { 'event': 'STOP' }
71
72 ##
73 # @RESUME:
74 #
75 # Emitted when the virtual machine resumes execution
76 #
77 # Since: 0.12.0
78 #
79 # Example:
80 #
81 # <- { "event": "RESUME",
82 # "timestamp": { "seconds": 1271770767, "microseconds": 582542 } }
83 #
84 ##
85 { 'event': 'RESUME' }
86
87 ##
88 # @SUSPEND:
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
94 #
95 # Example:
96 #
97 # <- { "event": "SUSPEND",
98 # "timestamp": { "seconds": 1344456160, "microseconds": 309119 } }
99 #
100 ##
101 { 'event': 'SUSPEND' }
102
103 ##
104 # @SUSPEND_DISK:
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
112 #
113 # Example:
114 #
115 # <- { "event": "SUSPEND_DISK",
116 # "timestamp": { "seconds": 1344456160, "microseconds": 309119 } }
117 #
118 ##
119 { 'event': 'SUSPEND_DISK' }
120
121 ##
122 # @WAKEUP:
123 #
124 # Emitted when the guest has woken up from suspend state and is running
125 #
126 # Since: 1.1
127 #
128 # Example:
129 #
130 # <- { "event": "WAKEUP",
131 # "timestamp": { "seconds": 1344522075, "microseconds": 745528 } }
132 #
133 ##
134 { 'event': 'WAKEUP' }
135
136 ##
137 # @RTC_CHANGE:
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 #
144 # Note: This event is rate-limited.
145 #
146 # Since: 0.13.0
147 #
148 # Example:
149 #
150 # <- { "event": "RTC_CHANGE",
151 # "data": { "offset": 78 },
152 # "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
153 #
154 ##
155 { 'event': 'RTC_CHANGE',
156 'data': { 'offset': 'int' } }
157
158 ##
159 # @WATCHDOG:
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 #
168 # Since: 0.13.0
169 ##
170 { 'event': 'WATCHDOG',
171 'data': { 'action': 'WatchdogExpirationAction' } }
172
173 ##
174 # @DEVICE_DELETED:
175 #
176 # Emitted whenever the device removal completion is acknowledged by the guest.
177 # At this point, it's safe to reuse the specified device ID. Device removal can
178 # be initiated by the guest or by HMP/QMP commands.
179 #
180 # @device: #optional, device name
181 #
182 # @path: device path
183 #
184 # Since: 1.5
185 ##
186 { 'event': 'DEVICE_DELETED',
187 'data': { '*device': 'str', 'path': 'str' } }
188
189 ##
190 # @NIC_RX_FILTER_CHANGED:
191 #
192 # Emitted once until the 'query-rx-filter' command is executed, the first event
193 # will always be emitted
194 #
195 # @name: #optional, net client name
196 #
197 # @path: device path
198 #
199 # Since: 1.6
200 ##
201 { 'event': 'NIC_RX_FILTER_CHANGED',
202 'data': { '*name': 'str', 'path': 'str' } }
203
204 ##
205 # @VNC_CONNECTED:
206 #
207 # Emitted when a VNC client establishes a connection
208 #
209 # @server: server information
210 #
211 # @client: client information
212 #
213 # Note: This event is emitted before any authentication takes place, thus
214 # the authentication ID is not provided
215 #
216 # Since: 0.13.0
217 ##
218 { 'event': 'VNC_CONNECTED',
219 'data': { 'server': 'VncServerInfo',
220 'client': 'VncBasicInfo' } }
221
222 ##
223 # @VNC_INITIALIZED:
224 #
225 # Emitted after authentication takes place (if any) and the VNC session is
226 # made active
227 #
228 # @server: server information
229 #
230 # @client: client information
231 #
232 # Since: 0.13.0
233 ##
234 { 'event': 'VNC_INITIALIZED',
235 'data': { 'server': 'VncServerInfo',
236 'client': 'VncClientInfo' } }
237
238 ##
239 # @VNC_DISCONNECTED:
240 #
241 # Emitted when the connection is closed
242 #
243 # @server: server information
244 #
245 # @client: client information
246 #
247 # Since: 0.13.0
248 ##
249 { 'event': 'VNC_DISCONNECTED',
250 'data': { 'server': 'VncServerInfo',
251 'client': 'VncClientInfo' } }
252
253 ##
254 # @SPICE_CONNECTED:
255 #
256 # Emitted when a SPICE client establishes a connection
257 #
258 # @server: server information
259 #
260 # @client: client information
261 #
262 # Since: 0.14.0
263 ##
264 { 'event': 'SPICE_CONNECTED',
265 'data': { 'server': 'SpiceBasicInfo',
266 'client': 'SpiceBasicInfo' } }
267
268 ##
269 # @SPICE_INITIALIZED:
270 #
271 # Emitted after initial handshake and authentication takes place (if any)
272 # and the SPICE channel is up and running
273 #
274 # @server: server information
275 #
276 # @client: client information
277 #
278 # Since: 0.14.0
279 ##
280 { 'event': 'SPICE_INITIALIZED',
281 'data': { 'server': 'SpiceServerInfo',
282 'client': 'SpiceChannel' } }
283
284 ##
285 # @SPICE_DISCONNECTED:
286 #
287 # Emitted when the SPICE connection is closed
288 #
289 # @server: server information
290 #
291 # @client: client information
292 #
293 # Since: 0.14.0
294 ##
295 { 'event': 'SPICE_DISCONNECTED',
296 'data': { 'server': 'SpiceBasicInfo',
297 'client': 'SpiceBasicInfo' } }
298
299 ##
300 # @SPICE_MIGRATE_COMPLETED:
301 #
302 # Emitted when SPICE migration has completed
303 #
304 # Since: 1.3
305 ##
306 { 'event': 'SPICE_MIGRATE_COMPLETED' }
307
308 ##
309 # @MIGRATION:
310 #
311 # Emitted when a migration event happens
312 #
313 # @status: @MigrationStatus describing the current migration status.
314 #
315 # Since: 2.4
316 ##
317 { 'event': 'MIGRATION',
318 'data': {'status': 'MigrationStatus'}}
319
320 ##
321 # @MIGRATION_PASS:
322 #
323 # Emitted from the source side of a migration at the start of each pass
324 # (when it syncs the dirty bitmap)
325 #
326 # @pass: An incrementing count (starting at 1 on the first pass)
327 #
328 # Since: 2.6
329 ##
330 { 'event': 'MIGRATION_PASS',
331 'data': { 'pass': 'int' } }
332
333 ##
334 # @ACPI_DEVICE_OST:
335 #
336 # Emitted when guest executes ACPI _OST method.
337 #
338 # @info: ACPIOSTInfo type as described in qapi-schema.json
339 #
340 # Since: 2.1
341 ##
342 { 'event': 'ACPI_DEVICE_OST',
343 'data': { 'info': 'ACPIOSTInfo' } }
344
345 ##
346 # @BALLOON_CHANGE:
347 #
348 # Emitted when the guest changes the actual BALLOON level. This value is
349 # equivalent to the @actual field return by the 'query-balloon' command
350 #
351 # @actual: actual level of the guest memory balloon in bytes
352 #
353 # Since: 1.2
354 ##
355 { 'event': 'BALLOON_CHANGE',
356 'data': { 'actual': 'int' } }
357
358 ##
359 # @GUEST_PANICKED:
360 #
361 # Emitted when guest OS panic is detected
362 #
363 # @action: action that has been taken, currently always "pause"
364 #
365 # Since: 1.5
366 ##
367 { 'event': 'GUEST_PANICKED',
368 'data': { 'action': 'GuestPanicAction' } }
369
370 ##
371 # @QUORUM_FAILURE:
372 #
373 # Emitted by the Quorum block driver if it fails to establish a quorum
374 #
375 # @reference: device name if defined else node name
376 #
377 # @sector-num: number of the first sector of the failed read operation
378 #
379 # @sectors-count: failed read operation sector count
380 #
381 # Since: 2.0
382 ##
383 { 'event': 'QUORUM_FAILURE',
384 'data': { 'reference': 'str', 'sector-num': 'int', 'sectors-count': 'int' } }
385
386 ##
387 # @QUORUM_REPORT_BAD:
388 #
389 # Emitted to report a corruption of a Quorum file
390 #
391 # @type: quorum operation type (Since 2.6)
392 #
393 # @error: #optional, error message. Only present on failure. This field
394 # contains a human-readable error message. There are no semantics other
395 # than that the block layer reported an error and clients should not
396 # try to interpret the error string.
397 #
398 # @node-name: the graph node name of the block driver state
399 #
400 # @sector-num: number of the first sector of the failed read operation
401 #
402 # @sectors-count: failed read operation sector count
403 #
404 # Since: 2.0
405 ##
406 { 'event': 'QUORUM_REPORT_BAD',
407 'data': { 'type': 'QuorumOpType', '*error': 'str', 'node-name': 'str',
408 'sector-num': 'int', 'sectors-count': 'int' } }
409
410 ##
411 # @VSERPORT_CHANGE:
412 #
413 # Emitted when the guest opens or closes a virtio-serial port.
414 #
415 # @id: device identifier of the virtio-serial port
416 #
417 # @open: true if the guest has opened the virtio-serial port
418 #
419 # Since: 2.1
420 ##
421 { 'event': 'VSERPORT_CHANGE',
422 'data': { 'id': 'str', 'open': 'bool' } }
423
424 ##
425 # @MEM_UNPLUG_ERROR:
426 #
427 # Emitted when memory hot unplug error occurs.
428 #
429 # @device: device name
430 #
431 # @msg: Informative message
432 #
433 # Since: 2.4
434 ##
435 { 'event': 'MEM_UNPLUG_ERROR',
436 'data': { 'device': 'str', 'msg': 'str' } }
437
438 ##
439 # @DUMP_COMPLETED:
440 #
441 # Emitted when background dump has completed
442 #
443 # @result: DumpQueryResult type described in qapi-schema.json.
444 #
445 # @error: #optional human-readable error string that provides
446 # hint on why dump failed. Only presents on failure. The
447 # user should not try to interpret the error string.
448 #
449 # Since: 2.6
450 ##
451 { 'event': 'DUMP_COMPLETED' ,
452 'data': { 'result': 'DumpQueryResult', '*error': 'str' } }