]> git.proxmox.com Git - mirror_qemu.git/blame - qapi/event.json
qmp-events: move 'SHUTDOWN' doc to schema
[mirror_qemu.git] / qapi / event.json
CommitLineData
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
33##
34{ 'event': 'POWERDOWN' }
a6330785
WX
35
36##
5072f7b3 37# @RESET:
a6330785
WX
38#
39# Emitted when the virtual machine is reset
40#
41# Since: 0.12.0
42##
43{ 'event': 'RESET' }
a4e15de9
WX
44
45##
5072f7b3 46# @STOP:
a4e15de9
WX
47#
48# Emitted when the virtual machine is stopped
49#
50# Since: 0.12.0
51##
52{ 'event': 'STOP' }
591c48fb
WX
53
54##
5072f7b3 55# @RESUME:
591c48fb
WX
56#
57# Emitted when the virtual machine resumes execution
58#
59# Since: 0.12.0
60##
61{ 'event': 'RESUME' }
1d11a95a
WX
62
63##
5072f7b3 64# @SUSPEND:
1d11a95a
WX
65#
66# Emitted when guest enters a hardware suspension state, for example, S3 state,
67# which is sometimes called standby state
68#
69# Since: 1.1
70##
71{ 'event': 'SUSPEND' }
2ea4100f
WX
72
73##
5072f7b3 74# @SUSPEND_DISK:
2ea4100f
WX
75#
76# Emitted when guest enters a hardware suspension state with data saved on
77# disk, for example, S4 state, which is sometimes called hibernate state
78#
79# Note: QEMU shuts down (similar to event @SHUTDOWN) when entering this state
80#
81# Since: 1.2
82##
83{ 'event': 'SUSPEND_DISK' }
7a906f7f
WX
84
85##
5072f7b3 86# @WAKEUP:
7a906f7f
WX
87#
88# Emitted when the guest has woken up from suspend state and is running
89#
90# Since: 1.1
91##
92{ 'event': 'WAKEUP' }
e010ad8f
WX
93
94##
5072f7b3 95# @RTC_CHANGE:
e010ad8f
WX
96#
97# Emitted when the guest changes the RTC time.
98#
99# @offset: offset between base RTC clock (as specified by -rtc base), and
100# new RTC clock value
101#
102# Since: 0.13.0
103##
104{ 'event': 'RTC_CHANGE',
105 'data': { 'offset': 'int' } }
99eaf09c
WX
106
107##
5072f7b3 108# @WATCHDOG:
99eaf09c
WX
109#
110# Emitted when the watchdog device's timer is expired
111#
112# @action: action that has been taken
113#
114# Note: If action is "reset", "shutdown", or "pause" the WATCHDOG event is
115# followed respectively by the RESET, SHUTDOWN, or STOP events
116#
117# Since: 0.13.0
118##
119{ 'event': 'WATCHDOG',
120 'data': { 'action': 'WatchdogExpirationAction' } }
24b699fb
WX
121
122##
5072f7b3 123# @DEVICE_DELETED:
24b699fb
WX
124#
125# Emitted whenever the device removal completion is acknowledged by the guest.
126# At this point, it's safe to reuse the specified device ID. Device removal can
127# be initiated by the guest or by HMP/QMP commands.
128#
129# @device: #optional, device name
130#
131# @path: device path
132#
133# Since: 1.5
134##
135{ 'event': 'DEVICE_DELETED',
136 'data': { '*device': 'str', 'path': 'str' } }
06150279
WX
137
138##
5072f7b3 139# @NIC_RX_FILTER_CHANGED:
06150279
WX
140#
141# Emitted once until the 'query-rx-filter' command is executed, the first event
142# will always be emitted
143#
144# @name: #optional, net client name
145#
146# @path: device path
147#
148# Since: 1.6
149##
150{ 'event': 'NIC_RX_FILTER_CHANGED',
151 'data': { '*name': 'str', 'path': 'str' } }
fb6ba0d5
WX
152
153##
5072f7b3 154# @VNC_CONNECTED:
fb6ba0d5
WX
155#
156# Emitted when a VNC client establishes a connection
157#
158# @server: server information
159#
160# @client: client information
161#
162# Note: This event is emitted before any authentication takes place, thus
163# the authentication ID is not provided
164#
165# Since: 0.13.0
166##
167{ 'event': 'VNC_CONNECTED',
168 'data': { 'server': 'VncServerInfo',
169 'client': 'VncBasicInfo' } }
170
171##
5072f7b3 172# @VNC_INITIALIZED:
fb6ba0d5
WX
173#
174# Emitted after authentication takes place (if any) and the VNC session is
175# made active
176#
177# @server: server information
178#
179# @client: client information
180#
181# Since: 0.13.0
182##
183{ 'event': 'VNC_INITIALIZED',
184 'data': { 'server': 'VncServerInfo',
185 'client': 'VncClientInfo' } }
186
187##
5072f7b3 188# @VNC_DISCONNECTED:
fb6ba0d5
WX
189#
190# Emitted when the connection is closed
191#
192# @server: server information
193#
194# @client: client information
195#
196# Since: 0.13.0
197##
198{ 'event': 'VNC_DISCONNECTED',
199 'data': { 'server': 'VncServerInfo',
200 'client': 'VncClientInfo' } }
7cfadb6b
WX
201
202##
5072f7b3 203# @SPICE_CONNECTED:
7cfadb6b
WX
204#
205# Emitted when a SPICE client establishes a connection
206#
207# @server: server information
208#
209# @client: client information
210#
211# Since: 0.14.0
212##
213{ 'event': 'SPICE_CONNECTED',
214 'data': { 'server': 'SpiceBasicInfo',
215 'client': 'SpiceBasicInfo' } }
216
217##
5072f7b3 218# @SPICE_INITIALIZED:
7cfadb6b
WX
219#
220# Emitted after initial handshake and authentication takes place (if any)
221# and the SPICE channel is up and running
222#
223# @server: server information
224#
225# @client: client information
226#
227# Since: 0.14.0
228##
229{ 'event': 'SPICE_INITIALIZED',
230 'data': { 'server': 'SpiceServerInfo',
231 'client': 'SpiceChannel' } }
232
233##
5072f7b3 234# @SPICE_DISCONNECTED:
7cfadb6b
WX
235#
236# Emitted when the SPICE connection is closed
237#
238# @server: server information
239#
240# @client: client information
241#
242# Since: 0.14.0
243##
244{ 'event': 'SPICE_DISCONNECTED',
245 'data': { 'server': 'SpiceBasicInfo',
246 'client': 'SpiceBasicInfo' } }
247
248##
5072f7b3 249# @SPICE_MIGRATE_COMPLETED:
7cfadb6b
WX
250#
251# Emitted when SPICE migration has completed
252#
253# Since: 1.3
254##
255{ 'event': 'SPICE_MIGRATE_COMPLETED' }
5f41fbba 256
598cd2bd 257##
5072f7b3 258# @MIGRATION:
598cd2bd
JQ
259#
260# Emitted when a migration event happens
261#
262# @status: @MigrationStatus describing the current migration status.
263#
264# Since: 2.4
265##
266{ 'event': 'MIGRATION',
267 'data': {'status': 'MigrationStatus'}}
268
4addcd4f 269##
5072f7b3 270# @MIGRATION_PASS:
4addcd4f
DDAG
271#
272# Emitted from the source side of a migration at the start of each pass
273# (when it syncs the dirty bitmap)
274#
275# @pass: An incrementing count (starting at 1 on the first pass)
276#
277# Since: 2.6
278##
279{ 'event': 'MIGRATION_PASS',
280 'data': { 'pass': 'int' } }
281
5f41fbba 282##
5072f7b3 283# @ACPI_DEVICE_OST:
5f41fbba
IM
284#
285# Emitted when guest executes ACPI _OST method.
286#
5f41fbba 287# @info: ACPIOSTInfo type as described in qapi-schema.json
5807ff88
MAL
288#
289# Since: 2.1
5f41fbba
IM
290##
291{ 'event': 'ACPI_DEVICE_OST',
292 'data': { 'info': 'ACPIOSTInfo' } }
aef9d311
WX
293
294##
5072f7b3 295# @BALLOON_CHANGE:
aef9d311
WX
296#
297# Emitted when the guest changes the actual BALLOON level. This value is
298# equivalent to the @actual field return by the 'query-balloon' command
299#
300# @actual: actual level of the guest memory balloon in bytes
301#
302# Since: 1.2
303##
304{ 'event': 'BALLOON_CHANGE',
305 'data': { 'actual': 'int' } }
3a449690
WX
306
307##
5072f7b3 308# @GUEST_PANICKED:
3a449690
WX
309#
310# Emitted when guest OS panic is detected
311#
312# @action: action that has been taken, currently always "pause"
313#
314# Since: 1.5
315##
316{ 'event': 'GUEST_PANICKED',
317 'data': { 'action': 'GuestPanicAction' } }
fe069d9d
WX
318
319##
5072f7b3 320# @QUORUM_FAILURE:
fe069d9d
WX
321#
322# Emitted by the Quorum block driver if it fails to establish a quorum
323#
324# @reference: device name if defined else node name
325#
326# @sector-num: number of the first sector of the failed read operation
327#
4e855baa 328# @sectors-count: failed read operation sector count
fe069d9d
WX
329#
330# Since: 2.0
331##
332{ 'event': 'QUORUM_FAILURE',
4e855baa 333 'data': { 'reference': 'str', 'sector-num': 'int', 'sectors-count': 'int' } }
fe069d9d
WX
334
335##
5072f7b3 336# @QUORUM_REPORT_BAD:
fe069d9d
WX
337#
338# Emitted to report a corruption of a Quorum file
339#
0ae053b7
CX
340# @type: quorum operation type (Since 2.6)
341#
fe069d9d
WX
342# @error: #optional, error message. Only present on failure. This field
343# contains a human-readable error message. There are no semantics other
344# than that the block layer reported an error and clients should not
345# try to interpret the error string.
346#
347# @node-name: the graph node name of the block driver state
348#
349# @sector-num: number of the first sector of the failed read operation
350#
4e855baa 351# @sectors-count: failed read operation sector count
fe069d9d
WX
352#
353# Since: 2.0
354##
355{ 'event': 'QUORUM_REPORT_BAD',
0ae053b7 356 'data': { 'type': 'QuorumOpType', '*error': 'str', 'node-name': 'str',
4e855baa 357 'sector-num': 'int', 'sectors-count': 'int' } }
e2ae6159
LE
358
359##
5072f7b3 360# @VSERPORT_CHANGE:
e2ae6159
LE
361#
362# Emitted when the guest opens or closes a virtio-serial port.
363#
364# @id: device identifier of the virtio-serial port
365#
366# @open: true if the guest has opened the virtio-serial port
367#
368# Since: 2.1
369##
370{ 'event': 'VSERPORT_CHANGE',
371 'data': { 'id': 'str', 'open': 'bool' } }
bc09e061
ZG
372
373##
5072f7b3 374# @MEM_UNPLUG_ERROR:
bc09e061
ZG
375#
376# Emitted when memory hot unplug error occurs.
377#
378# @device: device name
379#
380# @msg: Informative message
381#
382# Since: 2.4
383##
384{ 'event': 'MEM_UNPLUG_ERROR',
385 'data': { 'device': 'str', 'msg': 'str' } }
d42a0d14
PX
386
387##
5072f7b3 388# @DUMP_COMPLETED:
d42a0d14
PX
389#
390# Emitted when background dump has completed
391#
392# @result: DumpQueryResult type described in qapi-schema.json.
393#
394# @error: #optional human-readable error string that provides
395# hint on why dump failed. Only presents on failure. The
396# user should not try to interpret the error string.
397#
398# Since: 2.6
399##
400{ 'event': 'DUMP_COMPLETED' ,
401 'data': { 'result': 'DumpQueryResult', '*error': 'str' } }