]> git.proxmox.com Git - mirror_qemu.git/blame - qapi-schema.json
migration: Add interface to control compression
[mirror_qemu.git] / qapi-schema.json
CommitLineData
e3193601
AL
1# -*- Mode: Python -*-
2#
3# QAPI Schema
48a32bed 4
d34bda71
BC
5# QAPI common definitions
6{ 'include': 'qapi/common.json' }
104059da 7
5db15096
BC
8# QAPI block definitions
9{ 'include': 'qapi/block.json' }
10
82d72d9d
WX
11# QAPI event definitions
12{ 'include': 'qapi/event.json' }
13
1dde0f48
LV
14# Tracing commands
15{ 'include': 'qapi/trace.json' }
16
104059da
PB
17##
18# LostTickPolicy:
19#
20# Policy for handling lost ticks in timer devices.
21#
22# @discard: throw away the missed tick(s) and continue with future injection
23# normally. Guest time may be delayed, unless the OS has explicit
24# handling of lost ticks
25#
26# @delay: continue to deliver ticks at the normal rate. Guest time will be
27# delayed due to the late tick
28#
29# @merge: merge the missed tick(s) into one tick and inject. Guest time
30# may be delayed, depending on how the OS reacts to the merging
31# of ticks
32#
33# @slew: deliver ticks at a higher rate to catch up with the missed tick. The
34# guest time should not be delayed once catchup is complete.
35#
36# Since: 2.0
37##
38{ 'enum': 'LostTickPolicy',
39 'data': ['discard', 'delay', 'merge', 'slew' ] }
40
b224e5e2
LC
41# @add_client
42#
43# Allow client connections for VNC, Spice and socket based
44# character devices to be passed in to QEMU via SCM_RIGHTS.
45#
46# @protocol: protocol name. Valid names are "vnc", "spice" or the
47# name of a character device (eg. from -chardev id=XXXX)
48#
49# @fdname: file descriptor name previously passed via 'getfd' command
50#
51# @skipauth: #optional whether to skip authentication. Only applies
52# to "vnc" and "spice" protocols
53#
54# @tls: #optional whether to perform TLS. Only applies to the "spice"
55# protocol
56#
57# Returns: nothing on success.
58#
59# Since: 0.14.0
60##
61{ 'command': 'add_client',
62 'data': { 'protocol': 'str', 'fdname': 'str', '*skipauth': 'bool',
63 '*tls': 'bool' } }
64
48a32bed
AL
65##
66# @NameInfo:
67#
68# Guest name information.
69#
70# @name: #optional The name of the guest
71#
72# Since 0.14.0
73##
895a2a80 74{ 'struct': 'NameInfo', 'data': {'*name': 'str'} }
48a32bed
AL
75
76##
77# @query-name:
78#
79# Return the name information of a guest.
80#
81# Returns: @NameInfo of the guest
82#
83# Since 0.14.0
84##
85{ 'command': 'query-name', 'returns': 'NameInfo' }
b9c15f16 86
292a2602
LC
87##
88# @KvmInfo:
89#
90# Information about support for KVM acceleration
91#
92# @enabled: true if KVM acceleration is active
93#
94# @present: true if KVM acceleration is built into this executable
95#
96# Since: 0.14.0
97##
895a2a80 98{ 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} }
292a2602
LC
99
100##
101# @query-kvm:
102#
103# Returns information about KVM acceleration
104#
105# Returns: @KvmInfo
106#
107# Since: 0.14.0
108##
109{ 'command': 'query-kvm', 'returns': 'KvmInfo' }
110
1fa9a5e4
LC
111##
112# @RunState
113#
6932a69b 114# An enumeration of VM run states.
1fa9a5e4
LC
115#
116# @debug: QEMU is running on a debugger
117#
0a24c7b1
LC
118# @finish-migrate: guest is paused to finish the migration process
119#
1e998146
PB
120# @inmigrate: guest is paused waiting for an incoming migration. Note
121# that this state does not tell whether the machine will start at the
122# end of the migration. This depends on the command-line -S option and
123# any invocation of 'stop' or 'cont' that has happened since QEMU was
124# started.
1fa9a5e4
LC
125#
126# @internal-error: An internal error that prevents further guest execution
127# has occurred
128#
129# @io-error: the last IOP has failed and the device is configured to pause
130# on I/O errors
131#
132# @paused: guest has been paused via the 'stop' command
133#
134# @postmigrate: guest is paused following a successful 'migrate'
135#
136# @prelaunch: QEMU was started with -S and guest has not started
137#
1fa9a5e4
LC
138# @restore-vm: guest is paused to restore VM state
139#
140# @running: guest is actively running
141#
142# @save-vm: guest is paused to save the VM state
143#
144# @shutdown: guest is shut down (and -no-shutdown is in use)
145#
ad02b96a
LC
146# @suspended: guest is suspended (ACPI S3)
147#
1fa9a5e4 148# @watchdog: the watchdog action is configured to pause and has been triggered
ede085b3
HT
149#
150# @guest-panicked: guest has been panicked as a result of guest OS panic
1fa9a5e4
LC
151##
152{ 'enum': 'RunState',
153 'data': [ 'debug', 'inmigrate', 'internal-error', 'io-error', 'paused',
154 'postmigrate', 'prelaunch', 'finish-migrate', 'restore-vm',
ede085b3
HT
155 'running', 'save-vm', 'shutdown', 'suspended', 'watchdog',
156 'guest-panicked' ] }
1fa9a5e4
LC
157
158##
159# @StatusInfo:
160#
161# Information about VCPU run state
162#
163# @running: true if all VCPUs are runnable, false if not runnable
164#
165# @singlestep: true if VCPUs are in single-step mode
166#
167# @status: the virtual machine @RunState
168#
169# Since: 0.14.0
170#
171# Notes: @singlestep is enabled through the GDB stub
172##
895a2a80 173{ 'struct': 'StatusInfo',
1fa9a5e4
LC
174 'data': {'running': 'bool', 'singlestep': 'bool', 'status': 'RunState'} }
175
176##
177# @query-status:
178#
179# Query the run status of all VCPUs
180#
181# Returns: @StatusInfo reflecting all VCPUs
182#
183# Since: 0.14.0
184##
185{ 'command': 'query-status', 'returns': 'StatusInfo' }
186
efab767e
LC
187##
188# @UuidInfo:
189#
190# Guest UUID information.
191#
192# @UUID: the UUID of the guest
193#
194# Since: 0.14.0
195#
196# Notes: If no UUID was specified for the guest, a null UUID is returned.
197##
895a2a80 198{ 'struct': 'UuidInfo', 'data': {'UUID': 'str'} }
efab767e
LC
199
200##
201# @query-uuid:
202#
203# Query the guest UUID information.
204#
205# Returns: The @UuidInfo for the guest
206#
207# Since 0.14.0
208##
209{ 'command': 'query-uuid', 'returns': 'UuidInfo' }
210
c5a415a0
LC
211##
212# @ChardevInfo:
213#
214# Information about a character device.
215#
216# @label: the label of the character device
217#
218# @filename: the filename of the character device
219#
32a97ea1
LE
220# @frontend-open: shows whether the frontend device attached to this backend
221# (eg. with the chardev=... option) is in open or closed state
222# (since 2.1)
223#
c5a415a0
LC
224# Notes: @filename is encoded using the QEMU command line character device
225# encoding. See the QEMU man page for details.
226#
227# Since: 0.14.0
228##
895a2a80 229{ 'struct': 'ChardevInfo', 'data': {'label': 'str',
32a97ea1
LE
230 'filename': 'str',
231 'frontend-open': 'bool'} }
c5a415a0
LC
232
233##
234# @query-chardev:
235#
236# Returns information about current character devices.
237#
238# Returns: a list of @ChardevInfo
239#
240# Since: 0.14.0
241##
242{ 'command': 'query-chardev', 'returns': ['ChardevInfo'] }
aa9b79bc 243
77d1c3c6
MK
244##
245# @ChardevBackendInfo:
246#
247# Information about a character device backend
248#
249# @name: The backend name
250#
251# Since: 2.0
252##
895a2a80 253{ 'struct': 'ChardevBackendInfo', 'data': {'name': 'str'} }
77d1c3c6
MK
254
255##
256# @query-chardev-backends:
257#
258# Returns information about character device backends.
259#
260# Returns: a list of @ChardevBackendInfo
261#
262# Since: 2.0
263##
264{ 'command': 'query-chardev-backends', 'returns': ['ChardevBackendInfo'] }
265
1f590cf9
LL
266##
267# @DataFormat:
268#
269# An enumeration of data format.
270#
3949e594 271# @utf8: Data is a UTF-8 string (RFC 3629)
1f590cf9 272#
3949e594 273# @base64: Data is Base64 encoded binary (RFC 3548)
1f590cf9
LL
274#
275# Since: 1.4
276##
ad0f171e 277{ 'enum': 'DataFormat',
1f590cf9
LL
278 'data': [ 'utf8', 'base64' ] }
279
280##
3949e594 281# @ringbuf-write:
1f590cf9 282#
3949e594 283# Write to a ring buffer character device.
1f590cf9 284#
3949e594 285# @device: the ring buffer character device name
1f590cf9 286#
3949e594 287# @data: data to write
1f590cf9 288#
3949e594
MA
289# @format: #optional data encoding (default 'utf8').
290# - base64: data must be base64 encoded text. Its binary
291# decoding gets written.
292# Bug: invalid base64 is currently not rejected.
293# Whitespace *is* invalid.
294# - utf8: data's UTF-8 encoding is written
295# - data itself is always Unicode regardless of format, like
296# any other string.
1f590cf9
LL
297#
298# Returns: Nothing on success
1f590cf9
LL
299#
300# Since: 1.4
301##
3949e594 302{ 'command': 'ringbuf-write',
82e59a67 303 'data': {'device': 'str', 'data': 'str',
1f590cf9
LL
304 '*format': 'DataFormat'} }
305
49b6d722 306##
3949e594 307# @ringbuf-read:
49b6d722 308#
3949e594 309# Read from a ring buffer character device.
49b6d722 310#
3949e594 311# @device: the ring buffer character device name
49b6d722 312#
3949e594 313# @size: how many bytes to read at most
49b6d722 314#
3949e594
MA
315# @format: #optional data encoding (default 'utf8').
316# - base64: the data read is returned in base64 encoding.
317# - utf8: the data read is interpreted as UTF-8.
318# Bug: can screw up when the buffer contains invalid UTF-8
319# sequences, NUL characters, after the ring buffer lost
320# data, and when reading stops because the size limit is
321# reached.
322# - The return value is always Unicode regardless of format,
323# like any other string.
49b6d722 324#
3ab651fc 325# Returns: data read from the device
49b6d722
LL
326#
327# Since: 1.4
328##
3949e594 329{ 'command': 'ringbuf-read',
49b6d722 330 'data': {'device': 'str', 'size': 'int', '*format': 'DataFormat'},
3ab651fc 331 'returns': 'str' }
49b6d722 332
4860853d
DB
333##
334# @EventInfo:
335#
336# Information about a QMP event
337#
338# @name: The event name
339#
340# Since: 1.2.0
341##
895a2a80 342{ 'struct': 'EventInfo', 'data': {'name': 'str'} }
4860853d
DB
343
344##
345# @query-events:
346#
347# Return a list of supported QMP events by this server
348#
349# Returns: A list of @EventInfo for all supported events
350#
351# Since: 1.2.0
352##
353{ 'command': 'query-events', 'returns': ['EventInfo'] }
354
791e7c82
LC
355##
356# @MigrationStats
357#
358# Detailed migration status.
359#
360# @transferred: amount of bytes already transferred to the target VM
361#
362# @remaining: amount of bytes remaining to be transferred to the target VM
363#
364# @total: total amount of bytes involved in the migration process
365#
f1c72795
PL
366# @duplicate: number of duplicate (zero) pages (since 1.2)
367#
368# @skipped: number of skipped zero pages (since 1.5)
004d4c10
OW
369#
370# @normal : number of normal pages (since 1.2)
371#
8d017193
JQ
372# @normal-bytes: number of normal bytes sent (since 1.2)
373#
374# @dirty-pages-rate: number of pages dirtied by second by the
375# guest (since 1.3)
004d4c10 376#
7e114f8c
MH
377# @mbps: throughput in megabits/sec. (since 1.6)
378#
58570ed8
C
379# @dirty-sync-count: number of times that dirty ram was synchronized (since 2.1)
380#
004d4c10 381# Since: 0.14.0
791e7c82 382##
895a2a80 383{ 'struct': 'MigrationStats',
d5f8a570 384 'data': {'transferred': 'int', 'remaining': 'int', 'total': 'int' ,
f1c72795 385 'duplicate': 'int', 'skipped': 'int', 'normal': 'int',
7e114f8c 386 'normal-bytes': 'int', 'dirty-pages-rate' : 'int',
58570ed8 387 'mbps' : 'number', 'dirty-sync-count' : 'int' } }
791e7c82 388
f36d55af
OW
389##
390# @XBZRLECacheStats
391#
392# Detailed XBZRLE migration cache statistics
393#
394# @cache-size: XBZRLE cache size
395#
396# @bytes: amount of bytes already transferred to the target VM
397#
398# @pages: amount of pages transferred to the target VM
399#
400# @cache-miss: number of cache miss
401#
8bc39233
C
402# @cache-miss-rate: rate of cache miss (since 2.1)
403#
f36d55af
OW
404# @overflow: number of overflows
405#
406# Since: 1.2
407##
895a2a80 408{ 'struct': 'XBZRLECacheStats',
f36d55af 409 'data': {'cache-size': 'int', 'bytes': 'int', 'pages': 'int',
8bc39233
C
410 'cache-miss': 'int', 'cache-miss-rate': 'number',
411 'overflow': 'int' } }
f36d55af 412
24b8c39b
HZ
413# @MigrationStatus:
414#
415# An enumeration of migration status.
416#
417# @none: no migration has ever happened.
418#
419# @setup: migration process has been initiated.
420#
421# @cancelling: in the process of cancelling migration.
422#
423# @cancelled: cancelling migration is finished.
424#
425# @active: in the process of doing migration.
426#
427# @completed: migration is finished.
428#
429# @failed: some error occurred during migration process.
430#
431# Since: 2.3
432#
433##
434{ 'enum': 'MigrationStatus',
435 'data': [ 'none', 'setup', 'cancelling', 'cancelled',
436 'active', 'completed', 'failed' ] }
437
791e7c82
LC
438##
439# @MigrationInfo
440#
441# Information about current migration process.
442#
24b8c39b
HZ
443# @status: #optional @MigrationStatus describing the current migration status.
444# If this field is not returned, no migration process
791e7c82
LC
445# has been initiated
446#
d5f8a570
JQ
447# @ram: #optional @MigrationStats containing detailed migration
448# status, only returned if status is 'active' or
24b8c39b 449# 'completed'(since 1.2)
791e7c82
LC
450#
451# @disk: #optional @MigrationStats containing detailed disk migration
452# status, only returned if status is 'active' and it is a block
453# migration
454#
f36d55af
OW
455# @xbzrle-cache: #optional @XBZRLECacheStats containing detailed XBZRLE
456# migration statistics, only returned if XBZRLE feature is on and
457# status is 'active' or 'completed' (since 1.2)
458#
7aa939af
JQ
459# @total-time: #optional total amount of milliseconds since migration started.
460# If migration has ended, it returns the total migration
461# time. (since 1.2)
462#
9c5a9fcf
JQ
463# @downtime: #optional only present when migration finishes correctly
464# total downtime in milliseconds for the guest.
465# (since 1.3)
466#
2c52ddf1
JQ
467# @expected-downtime: #optional only present while migration is active
468# expected downtime in milliseconds for the guest in last walk
469# of the dirty bitmap. (since 1.3)
470#
ed4fbd10
MH
471# @setup-time: #optional amount of setup time in milliseconds _before_ the
472# iterations begin but _after_ the QMP command is issued. This is designed
473# to provide an accounting of any activities (such as RDMA pinning) which
474# may be expensive, but do not actually occur during the iterative
475# migration rounds themselves. (since 1.6)
476#
791e7c82
LC
477# Since: 0.14.0
478##
895a2a80 479{ 'struct': 'MigrationInfo',
24b8c39b 480 'data': {'*status': 'MigrationStatus', '*ram': 'MigrationStats',
f36d55af 481 '*disk': 'MigrationStats',
7aa939af 482 '*xbzrle-cache': 'XBZRLECacheStats',
9c5a9fcf 483 '*total-time': 'int',
2c52ddf1 484 '*expected-downtime': 'int',
ed4fbd10
MH
485 '*downtime': 'int',
486 '*setup-time': 'int'} }
791e7c82
LC
487
488##
489# @query-migrate
490#
491# Returns information about current migration process.
492#
493# Returns: @MigrationInfo
494#
495# Since: 0.14.0
496##
497{ 'command': 'query-migrate', 'returns': 'MigrationInfo' }
498
bbf6da32
OW
499##
500# @MigrationCapability
501#
502# Migration capabilities enumeration
503#
504# @xbzrle: Migration supports xbzrle (Xor Based Zero Run Length Encoding).
505# This feature allows us to minimize migration traffic for certain work
506# loads, by sending compressed difference of the pages
507#
41310c68 508# @rdma-pin-all: Controls whether or not the entire VM memory footprint is
60d9222c 509# mlock()'d on demand or all at once. Refer to docs/rdma.txt for usage.
41310c68 510# Disabled by default. (since 2.0)
60d9222c 511#
323004a3
PL
512# @zero-blocks: During storage migration encode blocks of zeroes efficiently. This
513# essentially saves 1MB of zeroes per block on the wire. Enabling requires
514# source and target VM to support this feature. To enable it is sufficient
515# to enable the capability on the source VM. The feature is disabled by
516# default. (since 1.6)
517#
dde4e694
LL
518# @compress: Use multiple compression threads to accelerate live migration.
519# This feature can help to reduce the migration traffic, by sending
520# compressed pages. Please note that if compress and xbzrle are both
521# on, compress only takes effect in the ram bulk stage, after that,
522# it will be disabled and only xbzrle takes effect, this can help to
523# minimize migration traffic. The feature is disabled by default.
524# (since 2.4 )
525#
9781c371
JQ
526# @auto-converge: If enabled, QEMU will automatically throttle down the guest
527# to speed up convergence of RAM migration. (since 1.6)
528#
bbf6da32
OW
529# Since: 1.2
530##
531{ 'enum': 'MigrationCapability',
dde4e694
LL
532 'data': ['xbzrle', 'rdma-pin-all', 'auto-converge', 'zero-blocks',
533 'compress'] }
bbf6da32
OW
534
535##
536# @MigrationCapabilityStatus
537#
538# Migration capability information
539#
540# @capability: capability enum
541#
542# @state: capability state bool
543#
544# Since: 1.2
545##
895a2a80 546{ 'struct': 'MigrationCapabilityStatus',
bbf6da32
OW
547 'data': { 'capability' : 'MigrationCapability', 'state' : 'bool' } }
548
549##
00458433
OW
550# @migrate-set-capabilities
551#
552# Enable/Disable the following migration capabilities (like xbzrle)
553#
554# @capabilities: json array of capability modifications to make
555#
556# Since: 1.2
557##
558{ 'command': 'migrate-set-capabilities',
559 'data': { 'capabilities': ['MigrationCapabilityStatus'] } }
560
561##
bbf6da32
OW
562# @query-migrate-capabilities
563#
564# Returns information about the current migration capabilities status
565#
566# Returns: @MigrationCapabilitiesStatus
567#
568# Since: 1.2
569##
570{ 'command': 'query-migrate-capabilities', 'returns': ['MigrationCapabilityStatus']}
571
e235cec3
LC
572##
573# @MouseInfo:
574#
575# Information about a mouse device.
576#
577# @name: the name of the mouse device
578#
579# @index: the index of the mouse device
580#
581# @current: true if this device is currently receiving mouse events
582#
583# @absolute: true if this device supports absolute coordinates as input
584#
585# Since: 0.14.0
586##
895a2a80 587{ 'struct': 'MouseInfo',
e235cec3
LC
588 'data': {'name': 'str', 'index': 'int', 'current': 'bool',
589 'absolute': 'bool'} }
590
591##
592# @query-mice:
593#
594# Returns information about each active mouse device
595#
596# Returns: a list of @MouseInfo for each device
597#
598# Since: 0.14.0
599##
600{ 'command': 'query-mice', 'returns': ['MouseInfo'] }
601
de0b36b6
LC
602##
603# @CpuInfo:
604#
605# Information about a virtual CPU
606#
607# @CPU: the index of the virtual CPU
608#
609# @current: this only exists for backwards compatible and should be ignored
b80e560b 610#
de0b36b6
LC
611# @halted: true if the virtual CPU is in the halt state. Halt usually refers
612# to a processor specific low power mode.
613#
614# @pc: #optional If the target is i386 or x86_64, this is the 64-bit instruction
615# pointer.
616# If the target is Sparc, this is the PC component of the
617# instruction pointer.
618#
619# @nip: #optional If the target is PPC, the instruction pointer
620#
621# @npc: #optional If the target is Sparc, the NPC component of the instruction
622# pointer
623#
624# @PC: #optional If the target is MIPS, the instruction pointer
625#
626# @thread_id: ID of the underlying host thread
627#
628# Since: 0.14.0
629#
630# Notes: @halted is a transient state that changes frequently. By the time the
631# data is sent to the client, the guest may no longer be halted.
632##
895a2a80 633{ 'struct': 'CpuInfo',
de0b36b6
LC
634 'data': {'CPU': 'int', 'current': 'bool', 'halted': 'bool', '*pc': 'int',
635 '*nip': 'int', '*npc': 'int', '*PC': 'int', 'thread_id': 'int'} }
636
637##
638# @query-cpus:
639#
640# Returns a list of information about each virtual CPU.
641#
642# Returns: a list of @CpuInfo for each virtual CPU
643#
644# Since: 0.14.0
645##
646{ 'command': 'query-cpus', 'returns': ['CpuInfo'] }
647
dc3dd0d2
SH
648##
649# @IOThreadInfo:
650#
651# Information about an iothread
652#
653# @id: the identifier of the iothread
654#
655# @thread-id: ID of the underlying host thread
656#
657# Since: 2.0
658##
895a2a80 659{ 'struct': 'IOThreadInfo',
dc3dd0d2
SH
660 'data': {'id': 'str', 'thread-id': 'int'} }
661
662##
663# @query-iothreads:
664#
665# Returns a list of information about each iothread.
666#
667# Note this list excludes the QEMU main loop thread, which is not declared
668# using the -object iothread command-line option. It is always the main thread
669# of the process.
670#
671# Returns: a list of @IOThreadInfo for each iothread
672#
673# Since: 2.0
674##
675{ 'command': 'query-iothreads', 'returns': ['IOThreadInfo'] }
676
2b54aa87 677##
a589569f 678# @NetworkAddressFamily
2b54aa87 679#
a589569f
WX
680# The network address family
681#
682# @ipv4: IPV4 family
683#
684# @ipv6: IPV6 family
685#
686# @unix: unix socket
687#
688# @unknown: otherwise
689#
690# Since: 2.1
691##
692{ 'enum': 'NetworkAddressFamily',
693 'data': [ 'ipv4', 'ipv6', 'unix', 'unknown' ] }
694
695##
696# @VncBasicInfo
2b54aa87 697#
a589569f 698# The basic information for vnc network connection
2b54aa87 699#
a589569f 700# @host: IP address
2b54aa87 701#
2f44a08b
WX
702# @service: The service name of the vnc port. This may depend on the host
703# system's service database so symbolic names should not be relied
704# on.
a589569f
WX
705#
706# @family: address family
707#
4478aa76
GH
708# @websocket: true in case the socket is a websocket (since 2.3).
709#
a589569f
WX
710# Since: 2.1
711##
895a2a80 712{ 'struct': 'VncBasicInfo',
a589569f
WX
713 'data': { 'host': 'str',
714 'service': 'str',
4478aa76
GH
715 'family': 'NetworkAddressFamily',
716 'websocket': 'bool' } }
a589569f
WX
717
718##
719# @VncServerInfo
2b54aa87 720#
a589569f 721# The network connection information for server
2b54aa87 722#
a589569f 723# @auth: #optional, authentication method
2b54aa87 724#
a589569f
WX
725# Since: 2.1
726##
895a2a80 727{ 'struct': 'VncServerInfo',
a589569f
WX
728 'base': 'VncBasicInfo',
729 'data': { '*auth': 'str' } }
730
731##
732# @VncClientInfo:
733#
734# Information about a connected VNC client.
2b54aa87
LC
735#
736# @x509_dname: #optional If x509 authentication is in use, the Distinguished
737# Name of the client.
738#
739# @sasl_username: #optional If SASL authentication is in use, the SASL username
740# used for authentication.
741#
742# Since: 0.14.0
743##
895a2a80 744{ 'struct': 'VncClientInfo',
a589569f 745 'base': 'VncBasicInfo',
2f44a08b 746 'data': { '*x509_dname': 'str', '*sasl_username': 'str' } }
2b54aa87
LC
747
748##
749# @VncInfo:
750#
751# Information about the VNC session.
752#
753# @enabled: true if the VNC server is enabled, false otherwise
754#
755# @host: #optional The hostname the VNC server is bound to. This depends on
756# the name resolution on the host and may be an IP address.
757#
758# @family: #optional 'ipv6' if the host is listening for IPv6 connections
759# 'ipv4' if the host is listening for IPv4 connections
760# 'unix' if the host is listening on a unix domain socket
761# 'unknown' otherwise
762#
763# @service: #optional The service name of the server's port. This may depends
764# on the host system's service database so symbolic names should not
765# be relied on.
766#
767# @auth: #optional the current authentication type used by the server
768# 'none' if no authentication is being used
769# 'vnc' if VNC authentication is being used
770# 'vencrypt+plain' if VEncrypt is used with plain text authentication
771# 'vencrypt+tls+none' if VEncrypt is used with TLS and no authentication
772# 'vencrypt+tls+vnc' if VEncrypt is used with TLS and VNC authentication
773# 'vencrypt+tls+plain' if VEncrypt is used with TLS and plain text auth
774# 'vencrypt+x509+none' if VEncrypt is used with x509 and no auth
775# 'vencrypt+x509+vnc' if VEncrypt is used with x509 and VNC auth
776# 'vencrypt+x509+plain' if VEncrypt is used with x509 and plain text auth
777# 'vencrypt+tls+sasl' if VEncrypt is used with TLS and SASL auth
778# 'vencrypt+x509+sasl' if VEncrypt is used with x509 and SASL auth
779#
780# @clients: a list of @VncClientInfo of all currently connected clients
781#
782# Since: 0.14.0
783##
895a2a80 784{ 'struct': 'VncInfo',
a589569f
WX
785 'data': {'enabled': 'bool', '*host': 'str',
786 '*family': 'NetworkAddressFamily',
2b54aa87
LC
787 '*service': 'str', '*auth': 'str', '*clients': ['VncClientInfo']} }
788
df887684
GH
789##
790# @VncPriAuth:
791#
792# vnc primary authentication method.
793#
794# Since: 2.3
795##
796{ 'enum': 'VncPrimaryAuth',
797 'data': [ 'none', 'vnc', 'ra2', 'ra2ne', 'tight', 'ultra',
798 'tls', 'vencrypt', 'sasl' ] }
799
800##
801# @VncVencryptSubAuth:
802#
803# vnc sub authentication method with vencrypt.
804#
805# Since: 2.3
806##
807{ 'enum': 'VncVencryptSubAuth',
808 'data': [ 'plain',
809 'tls-none', 'x509-none',
810 'tls-vnc', 'x509-vnc',
811 'tls-plain', 'x509-plain',
812 'tls-sasl', 'x509-sasl' ] }
813
814##
815# @VncInfo2:
816#
817# Information about a vnc server
818#
819# @id: vnc server name.
820#
821# @server: A list of @VncBasincInfo describing all listening sockets.
822# The list can be empty (in case the vnc server is disabled).
823# It also may have multiple entries: normal + websocket,
824# possibly also ipv4 + ipv6 in the future.
825#
826# @clients: A list of @VncClientInfo of all currently connected clients.
827# The list can be empty, for obvious reasons.
828#
829# @auth: The current authentication type used by the server
830#
831# @vencrypt: #optional The vencrypt sub authentication type used by the server,
832# only specified in case auth == vencrypt.
833#
834# @display: #optional The display device the vnc server is linked to.
835#
836# Since: 2.3
837##
895a2a80 838{ 'struct': 'VncInfo2',
df887684
GH
839 'data': { 'id' : 'str',
840 'server' : ['VncBasicInfo'],
841 'clients' : ['VncClientInfo'],
842 'auth' : 'VncPrimaryAuth',
843 '*vencrypt' : 'VncVencryptSubAuth',
844 '*display' : 'str' } }
845
2b54aa87
LC
846##
847# @query-vnc:
848#
849# Returns information about the current VNC server
850#
851# Returns: @VncInfo
2b54aa87
LC
852#
853# Since: 0.14.0
854##
855{ 'command': 'query-vnc', 'returns': 'VncInfo' }
856
df887684
GH
857##
858# @query-vnc-servers:
859#
860# Returns a list of vnc servers. The list can be empty.
861#
862# Returns: a list of @VncInfo2
863#
864# Since: 2.3
865##
866{ 'command': 'query-vnc-servers', 'returns': ['VncInfo2'] }
867
d1f29646 868##
a589569f 869# @SpiceBasicInfo
d1f29646 870#
a589569f
WX
871# The basic information for SPICE network connection
872#
873# @host: IP address
d1f29646 874#
a589569f 875# @port: port number
d1f29646 876#
a589569f 877# @family: address family
d1f29646 878#
a589569f
WX
879# Since: 2.1
880##
895a2a80 881{ 'struct': 'SpiceBasicInfo',
a589569f
WX
882 'data': { 'host': 'str',
883 'port': 'str',
884 'family': 'NetworkAddressFamily' } }
885
886##
887# @SpiceServerInfo
d1f29646 888#
a589569f 889# Information about a SPICE server
d1f29646 890#
a589569f 891# @auth: #optional, authentication method
d1f29646 892#
a589569f
WX
893# Since: 2.1
894##
895a2a80 895{ 'struct': 'SpiceServerInfo',
a589569f
WX
896 'base': 'SpiceBasicInfo',
897 'data': { '*auth': 'str' } }
898
899##
900# @SpiceChannel
901#
902# Information about a SPICE client channel.
d1f29646
LC
903#
904# @connection-id: SPICE connection id number. All channels with the same id
905# belong to the same SPICE session.
906#
7e781c79
CR
907# @channel-type: SPICE channel type number. "1" is the main control
908# channel, filter for this one if you want to track spice
909# sessions only
d1f29646 910#
419e1bdf
AL
911# @channel-id: SPICE channel ID number. Usually "0", might be different when
912# multiple channels of the same type exist, such as multiple
d1f29646
LC
913# display channels in a multihead setup
914#
915# @tls: true if the channel is encrypted, false otherwise.
916#
917# Since: 0.14.0
918##
895a2a80 919{ 'struct': 'SpiceChannel',
a589569f
WX
920 'base': 'SpiceBasicInfo',
921 'data': {'connection-id': 'int', 'channel-type': 'int', 'channel-id': 'int',
d1f29646
LC
922 'tls': 'bool'} }
923
4efee029
AL
924##
925# @SpiceQueryMouseMode
926#
6932a69b 927# An enumeration of Spice mouse states.
4efee029
AL
928#
929# @client: Mouse cursor position is determined by the client.
930#
931# @server: Mouse cursor position is determined by the server.
932#
933# @unknown: No information is available about mouse mode used by
934# the spice server.
935#
936# Note: spice/enums.h has a SpiceMouseMode already, hence the name.
937#
938# Since: 1.1
939##
940{ 'enum': 'SpiceQueryMouseMode',
941 'data': [ 'client', 'server', 'unknown' ] }
942
d1f29646
LC
943##
944# @SpiceInfo
945#
946# Information about the SPICE session.
b80e560b 947#
d1f29646
LC
948# @enabled: true if the SPICE server is enabled, false otherwise
949#
61c4efe2
YH
950# @migrated: true if the last guest migration completed and spice
951# migration had completed as well. false otherwise.
952#
d1f29646
LC
953# @host: #optional The hostname the SPICE server is bound to. This depends on
954# the name resolution on the host and may be an IP address.
955#
956# @port: #optional The SPICE server's port number.
957#
958# @compiled-version: #optional SPICE server version.
959#
960# @tls-port: #optional The SPICE server's TLS port number.
961#
962# @auth: #optional the current authentication type used by the server
419e1bdf
AL
963# 'none' if no authentication is being used
964# 'spice' uses SASL or direct TLS authentication, depending on command
965# line options
d1f29646 966#
4efee029
AL
967# @mouse-mode: The mode in which the mouse cursor is displayed currently. Can
968# be determined by the client or the server, or unknown if spice
969# server doesn't provide this information.
970#
971# Since: 1.1
972#
d1f29646
LC
973# @channels: a list of @SpiceChannel for each active spice channel
974#
975# Since: 0.14.0
976##
895a2a80 977{ 'struct': 'SpiceInfo',
61c4efe2 978 'data': {'enabled': 'bool', 'migrated': 'bool', '*host': 'str', '*port': 'int',
d1f29646 979 '*tls-port': 'int', '*auth': 'str', '*compiled-version': 'str',
4efee029 980 'mouse-mode': 'SpiceQueryMouseMode', '*channels': ['SpiceChannel']} }
d1f29646
LC
981
982##
983# @query-spice
984#
985# Returns information about the current SPICE server
986#
987# Returns: @SpiceInfo
988#
989# Since: 0.14.0
990##
991{ 'command': 'query-spice', 'returns': 'SpiceInfo' }
992
96637bcd
LC
993##
994# @BalloonInfo:
995#
996# Information about the guest balloon device.
997#
998# @actual: the number of bytes the balloon currently contains
999#
96637bcd
LC
1000# Since: 0.14.0
1001#
96637bcd 1002##
895a2a80 1003{ 'struct': 'BalloonInfo', 'data': {'actual': 'int' } }
96637bcd
LC
1004
1005##
1006# @query-balloon:
1007#
1008# Return information about the balloon device.
1009#
1010# Returns: @BalloonInfo on success
1011# If the balloon driver is enabled but not functional because the KVM
1012# kernel module cannot support it, KvmMissingCap
1013# If no balloon device is present, DeviceNotActive
1014#
1015# Since: 0.14.0
1016##
1017{ 'command': 'query-balloon', 'returns': 'BalloonInfo' }
1018
79627472
LC
1019##
1020# @PciMemoryRange:
1021#
1022# A PCI device memory region
1023#
1024# @base: the starting address (guest physical)
1025#
1026# @limit: the ending address (guest physical)
1027#
1028# Since: 0.14.0
1029##
895a2a80 1030{ 'struct': 'PciMemoryRange', 'data': {'base': 'int', 'limit': 'int'} }
79627472
LC
1031
1032##
1033# @PciMemoryRegion
1034#
1035# Information about a PCI device I/O region.
1036#
1037# @bar: the index of the Base Address Register for this region
1038#
1039# @type: 'io' if the region is a PIO region
1040# 'memory' if the region is a MMIO region
1041#
1042# @prefetch: #optional if @type is 'memory', true if the memory is prefetchable
1043#
1044# @mem_type_64: #optional if @type is 'memory', true if the BAR is 64-bit
1045#
1046# Since: 0.14.0
1047##
895a2a80 1048{ 'struct': 'PciMemoryRegion',
79627472
LC
1049 'data': {'bar': 'int', 'type': 'str', 'address': 'int', 'size': 'int',
1050 '*prefetch': 'bool', '*mem_type_64': 'bool' } }
1051
1052##
9fa02cd1 1053# @PciBusInfo:
79627472 1054#
9fa02cd1 1055# Information about a bus of a PCI Bridge device
79627472 1056#
9fa02cd1
EB
1057# @number: primary bus interface number. This should be the number of the
1058# bus the device resides on.
79627472 1059#
9fa02cd1
EB
1060# @secondary: secondary bus interface number. This is the number of the
1061# main bus for the bridge
79627472 1062#
9fa02cd1
EB
1063# @subordinate: This is the highest number bus that resides below the
1064# bridge.
79627472 1065#
9fa02cd1 1066# @io_range: The PIO range for all devices on this bridge
79627472 1067#
9fa02cd1 1068# @memory_range: The MMIO range for all devices on this bridge
79627472 1069#
9fa02cd1
EB
1070# @prefetchable_range: The range of prefetchable MMIO for all devices on
1071# this bridge
1072#
1073# Since: 2.4
1074##
1075{ 'struct': 'PciBusInfo',
1076 'data': {'number': 'int', 'secondary': 'int', 'subordinate': 'int',
1077 'io_range': 'PciMemoryRange',
1078 'memory_range': 'PciMemoryRange',
1079 'prefetchable_range': 'PciMemoryRange' } }
1080
1081##
1082# @PciBridgeInfo:
1083#
1084# Information about a PCI Bridge device
1085#
1086# @bus: information about the bus the device resides on
79627472
LC
1087#
1088# @devices: a list of @PciDeviceInfo for each device on this bridge
1089#
1090# Since: 0.14.0
1091##
895a2a80 1092{ 'struct': 'PciBridgeInfo',
9fa02cd1
EB
1093 'data': {'bus': 'PciBusInfo', '*devices': ['PciDeviceInfo']} }
1094
1095##
1096# @PciDeviceClass:
1097#
1098# Information about the Class of a PCI device
1099#
1100# @desc: #optional a string description of the device's class
1101#
1102# @class: the class code of the device
1103#
1104# Since: 2.4
1105##
1106{ 'struct': 'PciDeviceClass',
1107 'data': {'*desc': 'str', 'class': 'int'} }
1108
1109##
1110# @PciDeviceId:
1111#
1112# Information about the Id of a PCI device
1113#
1114# @device: the PCI device id
1115#
1116# @vendor: the PCI vendor id
1117#
1118# Since: 2.4
1119##
1120{ 'struct': 'PciDeviceId',
1121 'data': {'device': 'int', 'vendor': 'int'} }
79627472
LC
1122
1123##
1124# @PciDeviceInfo:
1125#
1126# Information about a PCI device
1127#
1128# @bus: the bus number of the device
1129#
1130# @slot: the slot the device is located in
1131#
1132# @function: the function of the slot used by the device
1133#
9fa02cd1 1134# @class_info: the class of the device
79627472 1135#
9fa02cd1 1136# @id: the PCI device id
79627472
LC
1137#
1138# @irq: #optional if an IRQ is assigned to the device, the IRQ number
1139#
1140# @qdev_id: the device name of the PCI device
1141#
1142# @pci_bridge: if the device is a PCI bridge, the bridge information
1143#
1144# @regions: a list of the PCI I/O regions associated with the device
1145#
1146# Notes: the contents of @class_info.desc are not stable and should only be
1147# treated as informational.
1148#
1149# Since: 0.14.0
1150##
895a2a80 1151{ 'struct': 'PciDeviceInfo',
79627472 1152 'data': {'bus': 'int', 'slot': 'int', 'function': 'int',
9fa02cd1 1153 'class_info': 'PciDeviceClass', 'id': 'PciDeviceId',
79627472
LC
1154 '*irq': 'int', 'qdev_id': 'str', '*pci_bridge': 'PciBridgeInfo',
1155 'regions': ['PciMemoryRegion']} }
1156
1157##
1158# @PciInfo:
1159#
1160# Information about a PCI bus
1161#
1162# @bus: the bus index
1163#
1164# @devices: a list of devices on this bus
1165#
1166# Since: 0.14.0
1167##
895a2a80 1168{ 'struct': 'PciInfo', 'data': {'bus': 'int', 'devices': ['PciDeviceInfo']} }
79627472
LC
1169
1170##
1171# @query-pci:
1172#
1173# Return information about the PCI bus topology of the guest.
1174#
1175# Returns: a list of @PciInfo for each PCI bus
1176#
1177# Since: 0.14.0
1178##
1179{ 'command': 'query-pci', 'returns': ['PciInfo'] }
1180
7a7f325e
LC
1181##
1182# @quit:
1183#
1184# This command will cause the QEMU process to exit gracefully. While every
1185# attempt is made to send the QMP response before terminating, this is not
1186# guaranteed. When using this interface, a premature EOF would not be
1187# unexpected.
1188#
1189# Since: 0.14.0
1190##
1191{ 'command': 'quit' }
5f158f21
LC
1192
1193##
1194# @stop:
1195#
1196# Stop all guest VCPU execution.
1197#
1198# Since: 0.14.0
1199#
1200# Notes: This function will succeed even if the guest is already in the stopped
1e998146
PB
1201# state. In "inmigrate" state, it will ensure that the guest
1202# remains paused once migration finishes, as if the -S option was
1203# passed on the command line.
5f158f21
LC
1204##
1205{ 'command': 'stop' }
38d22653
LC
1206
1207##
1208# @system_reset:
1209#
1210# Performs a hard reset of a guest.
1211#
1212# Since: 0.14.0
1213##
1214{ 'command': 'system_reset' }
5bc465e4
LC
1215
1216##
1217# @system_powerdown:
1218#
1219# Requests that a guest perform a powerdown operation.
1220#
1221# Since: 0.14.0
1222#
1223# Notes: A guest may or may not respond to this command. This command
1224# returning does not indicate that a guest has accepted the request or
1225# that it has shut down. Many guests will respond to this command by
1226# prompting the user in some way.
1227##
1228{ 'command': 'system_powerdown' }
755f1968
LC
1229
1230##
1231# @cpu:
1232#
1233# This command is a nop that is only provided for the purposes of compatibility.
1234#
1235# Since: 0.14.0
1236#
1237# Notes: Do not use this command.
1238##
1239{ 'command': 'cpu', 'data': {'index': 'int'} }
0cfd6a9a 1240
69ca3ea5
IM
1241##
1242# @cpu-add
1243#
1244# Adds CPU with specified ID
1245#
1246# @id: ID of CPU to be created, valid values [0..max_cpus)
1247#
1248# Returns: Nothing on success
1249#
1250# Since 1.5
1251##
1252{ 'command': 'cpu-add', 'data': {'id': 'int'} }
1253
0cfd6a9a
LC
1254##
1255# @memsave:
1256#
1257# Save a portion of guest memory to a file.
1258#
1259# @val: the virtual address of the guest to start from
1260#
1261# @size: the size of memory region to save
1262#
1263# @filename: the file to save the memory to as binary data
1264#
1265# @cpu-index: #optional the index of the virtual CPU to use for translating the
1266# virtual address (defaults to CPU 0)
1267#
1268# Returns: Nothing on success
0cfd6a9a
LC
1269#
1270# Since: 0.14.0
1271#
1272# Notes: Errors were not reliably returned until 1.1
1273##
1274{ 'command': 'memsave',
1275 'data': {'val': 'int', 'size': 'int', 'filename': 'str', '*cpu-index': 'int'} }
6d3962bf
LC
1276
1277##
1278# @pmemsave:
1279#
1280# Save a portion of guest physical memory to a file.
1281#
1282# @val: the physical address of the guest to start from
1283#
1284# @size: the size of memory region to save
1285#
1286# @filename: the file to save the memory to as binary data
1287#
1288# Returns: Nothing on success
6d3962bf
LC
1289#
1290# Since: 0.14.0
1291#
1292# Notes: Errors were not reliably returned until 1.1
1293##
1294{ 'command': 'pmemsave',
1295 'data': {'val': 'int', 'size': 'int', 'filename': 'str'} }
e42e818b
LC
1296
1297##
1298# @cont:
1299#
1300# Resume guest VCPU execution.
1301#
1302# Since: 0.14.0
1303#
1304# Returns: If successful, nothing
e42e818b
LC
1305# If QEMU was started with an encrypted block device and a key has
1306# not yet been set, DeviceEncrypted.
1307#
1e998146
PB
1308# Notes: This command will succeed if the guest is currently running. It
1309# will also succeed if the guest is in the "inmigrate" state; in
1310# this case, the effect of the command is to make sure the guest
1311# starts once migration finishes, removing the effect of the -S
1312# command line option if it was passed.
e42e818b
LC
1313##
1314{ 'command': 'cont' }
1315
9b9df25a
GH
1316##
1317# @system_wakeup:
1318#
1319# Wakeup guest from suspend. Does nothing in case the guest isn't suspended.
1320#
1321# Since: 1.1
1322#
1323# Returns: nothing.
1324##
1325{ 'command': 'system_wakeup' }
1326
ab49ab5c
LC
1327##
1328# @inject-nmi:
1329#
9cb805fd 1330# Injects a Non-Maskable Interrupt into the default CPU (x86/s390) or all CPUs (ppc64).
ab49ab5c
LC
1331#
1332# Returns: If successful, nothing
ab49ab5c
LC
1333#
1334# Since: 0.14.0
1335#
9cb805fd 1336# Note: prior to 2.1, this command was only supported for x86 and s390 VMs
ab49ab5c
LC
1337##
1338{ 'command': 'inject-nmi' }
4b37156c
LC
1339
1340##
1341# @set_link:
1342#
1343# Sets the link status of a virtual network adapter.
1344#
1345# @name: the device name of the virtual network adapter
1346#
1347# @up: true to set the link status to be up
1348#
1349# Returns: Nothing on success
1350# If @name is not a valid network device, DeviceNotFound
1351#
1352# Since: 0.14.0
1353#
1354# Notes: Not all network adapters support setting link status. This command
1355# will succeed even if the network adapter does not support link status
1356# notification.
1357##
1358{ 'command': 'set_link', 'data': {'name': 'str', 'up': 'bool'} }
a4dea8a9 1359
d72f3264
LC
1360##
1361# @balloon:
1362#
1363# Request the balloon driver to change its balloon size.
1364#
1365# @value: the target size of the balloon in bytes
1366#
1367# Returns: Nothing on success
1368# If the balloon driver is enabled but not functional because the KVM
1369# kernel module cannot support it, KvmMissingCap
1370# If no balloon device is present, DeviceNotActive
1371#
1372# Notes: This command just issues a request to the guest. When it returns,
1373# the balloon size may not have changed. A guest can change the balloon
1374# size independent of this command.
1375#
1376# Since: 0.14.0
1377##
1378{ 'command': 'balloon', 'data': {'value': 'int'} }
5e7caacb 1379
78b18b78
SH
1380##
1381# @Abort
1382#
1383# This action can be used to test transaction failure.
1384#
1385# Since: 1.6
1386###
895a2a80 1387{ 'struct': 'Abort',
78b18b78
SH
1388 'data': { } }
1389
8802d1fd 1390##
c8a83e85 1391# @TransactionAction
8802d1fd 1392#
52e7c241
PB
1393# A discriminated record of operations that can be performed with
1394# @transaction.
b7b9d39a
FZ
1395#
1396# Since 1.1
1397#
1398# drive-backup since 1.6
1399# abort since 1.6
1400# blockdev-snapshot-internal-sync since 1.7
bd8baecd 1401# blockdev-backup since 2.3
8802d1fd 1402##
c8a83e85 1403{ 'union': 'TransactionAction',
52e7c241 1404 'data': {
3037f364 1405 'blockdev-snapshot-sync': 'BlockdevSnapshot',
78b18b78 1406 'drive-backup': 'DriveBackup',
bd8baecd 1407 'blockdev-backup': 'BlockdevBackup',
bbe86010
WX
1408 'abort': 'Abort',
1409 'blockdev-snapshot-internal-sync': 'BlockdevSnapshotInternal'
52e7c241 1410 } }
8802d1fd
JC
1411
1412##
52e7c241 1413# @transaction
8802d1fd 1414#
c8a83e85
KW
1415# Executes a number of transactionable QMP commands atomically. If any
1416# operation fails, then the entire set of actions will be abandoned and the
1417# appropriate error returned.
8802d1fd
JC
1418#
1419# List of:
c8a83e85 1420# @TransactionAction: information needed for the respective operation
8802d1fd
JC
1421#
1422# Returns: nothing on success
c8a83e85 1423# Errors depend on the operations of the transaction
8802d1fd 1424#
c8a83e85
KW
1425# Note: The transaction aborts on the first failure. Therefore, there will be
1426# information on only one failed operation returned in an error condition, and
52e7c241
PB
1427# subsequent actions will not have been attempted.
1428#
1429# Since 1.1
8802d1fd 1430##
52e7c241 1431{ 'command': 'transaction',
c8a83e85 1432 'data': { 'actions': [ 'TransactionAction' ] } }
8802d1fd 1433
d51a67b4
LC
1434##
1435# @human-monitor-command:
1436#
1437# Execute a command on the human monitor and return the output.
1438#
1439# @command-line: the command to execute in the human monitor
1440#
1441# @cpu-index: #optional The CPU to use for commands that require an implicit CPU
1442#
1443# Returns: the output of the command as a string
1444#
1ad166b6 1445# Since: 0.14.0
08e4ed6c 1446#
1ad166b6
BC
1447# Notes: This command only exists as a stop-gap. Its use is highly
1448# discouraged. The semantics of this command are not guaranteed.
b952b558 1449#
1ad166b6 1450# Known limitations:
b952b558 1451#
1ad166b6
BC
1452# o This command is stateless, this means that commands that depend
1453# on state information (such as getfd) might not work
d9b902db 1454#
1ad166b6
BC
1455# o Commands that prompt the user for data (eg. 'cont' when the block
1456# device is encrypted) don't currently work
d9b902db 1457##
1ad166b6
BC
1458{ 'command': 'human-monitor-command',
1459 'data': {'command-line': 'str', '*cpu-index': 'int'},
1460 'returns': 'str' }
d9b902db
PB
1461
1462##
6cdedb07
LC
1463# @migrate_cancel
1464#
1465# Cancel the current executing migration process.
1466#
1467# Returns: nothing on success
1468#
1469# Notes: This command succeeds even if there is no migration process running.
1470#
1471# Since: 0.14.0
1472##
1473{ 'command': 'migrate_cancel' }
4f0a993b
LC
1474
1475##
1476# @migrate_set_downtime
1477#
1478# Set maximum tolerated downtime for migration.
1479#
1480# @value: maximum downtime in seconds
1481#
1482# Returns: nothing on success
1483#
1484# Since: 0.14.0
1485##
1486{ 'command': 'migrate_set_downtime', 'data': {'value': 'number'} }
3dc85383
LC
1487
1488##
1489# @migrate_set_speed
1490#
1491# Set maximum speed for migration.
1492#
1493# @value: maximum speed in bytes.
1494#
1495# Returns: nothing on success
1496#
1497# Notes: A value lesser than zero will be automatically round up to zero.
1498#
1499# Since: 0.14.0
1500##
1501{ 'command': 'migrate_set_speed', 'data': {'value': 'int'} }
b4b12c62 1502
9e1ba4cc
OW
1503##
1504# @migrate-set-cache-size
1505#
1506# Set XBZRLE cache size
1507#
1508# @value: cache size in bytes
1509#
1510# The size will be rounded down to the nearest power of 2.
1511# The cache size can be modified before and during ongoing migration
1512#
1513# Returns: nothing on success
1514#
1515# Since: 1.2
1516##
1517{ 'command': 'migrate-set-cache-size', 'data': {'value': 'int'} }
1518
1519##
1520# @query-migrate-cache-size
1521#
1522# query XBZRLE cache size
1523#
1524# Returns: XBZRLE cache size in bytes
1525#
1526# Since: 1.2
1527##
1528{ 'command': 'query-migrate-cache-size', 'returns': 'int' }
1529
b4b12c62 1530##
d03ee401 1531# @ObjectPropertyInfo:
b4b12c62
AL
1532#
1533# @name: the name of the property
1534#
1535# @type: the type of the property. This will typically come in one of four
1536# forms:
1537#
1538# 1) A primitive type such as 'u8', 'u16', 'bool', 'str', or 'double'.
1539# These types are mapped to the appropriate JSON type.
1540#
1541# 2) A legacy type in the form 'legacy<subtype>' where subtype is the
1542# legacy qdev typename. These types are always treated as strings.
1543#
1544# 3) A child type in the form 'child<subtype>' where subtype is a qdev
1545# device type name. Child properties create the composition tree.
1546#
1547# 4) A link type in the form 'link<subtype>' where subtype is a qdev
1548# device type name. Link properties form the device model graph.
1549#
51920820 1550# Since: 1.2
b4b12c62 1551##
895a2a80 1552{ 'struct': 'ObjectPropertyInfo',
b4b12c62
AL
1553 'data': { 'name': 'str', 'type': 'str' } }
1554
1555##
1556# @qom-list:
1557#
57c9fafe 1558# This command will list any properties of a object given a path in the object
b4b12c62
AL
1559# model.
1560#
57c9fafe 1561# @path: the path within the object model. See @qom-get for a description of
b4b12c62
AL
1562# this parameter.
1563#
57c9fafe
AL
1564# Returns: a list of @ObjectPropertyInfo that describe the properties of the
1565# object.
b4b12c62 1566#
51920820 1567# Since: 1.2
b4b12c62
AL
1568##
1569{ 'command': 'qom-list',
1570 'data': { 'path': 'str' },
57c9fafe 1571 'returns': [ 'ObjectPropertyInfo' ] }
eb6e8ea5
AL
1572
1573##
1574# @qom-get:
1575#
57c9fafe 1576# This command will get a property from a object model path and return the
eb6e8ea5
AL
1577# value.
1578#
57c9fafe 1579# @path: The path within the object model. There are two forms of supported
eb6e8ea5
AL
1580# paths--absolute and partial paths.
1581#
57c9fafe 1582# Absolute paths are derived from the root object and can follow child<>
eb6e8ea5
AL
1583# or link<> properties. Since they can follow link<> properties, they
1584# can be arbitrarily long. Absolute paths look like absolute filenames
1585# and are prefixed with a leading slash.
1586#
1587# Partial paths look like relative filenames. They do not begin
1588# with a prefix. The matching rules for partial paths are subtle but
57c9fafe 1589# designed to make specifying objects easy. At each level of the
eb6e8ea5
AL
1590# composition tree, the partial path is matched as an absolute path.
1591# The first match is not returned. At least two matches are searched
1592# for. A successful result is only returned if only one match is
1593# found. If more than one match is found, a flag is return to
1594# indicate that the match was ambiguous.
1595#
1596# @property: The property name to read
1597#
1598# Returns: The property value. The type depends on the property type. legacy<>
1599# properties are returned as #str. child<> and link<> properties are
1600# returns as #str pathnames. All integer property types (u8, u16, etc)
1601# are returned as #int.
1602#
51920820 1603# Since: 1.2
eb6e8ea5
AL
1604##
1605{ 'command': 'qom-get',
1606 'data': { 'path': 'str', 'property': 'str' },
d708cdbe
EB
1607 'returns': '**',
1608 'gen': false }
eb6e8ea5
AL
1609
1610##
1611# @qom-set:
1612#
57c9fafe 1613# This command will set a property from a object model path.
eb6e8ea5
AL
1614#
1615# @path: see @qom-get for a description of this parameter
1616#
1617# @property: the property name to set
1618#
1619# @value: a value who's type is appropriate for the property type. See @qom-get
1620# for a description of type mapping.
1621#
51920820 1622# Since: 1.2
eb6e8ea5
AL
1623##
1624{ 'command': 'qom-set',
d708cdbe
EB
1625 'data': { 'path': 'str', 'property': 'str', 'value': '**' },
1626 'gen': false }
fbf796fd
LC
1627
1628##
1629# @set_password:
1630#
1631# Sets the password of a remote display session.
1632#
1633# @protocol: `vnc' to modify the VNC server password
1634# `spice' to modify the Spice server password
1635#
1636# @password: the new password
1637#
1638# @connected: #optional how to handle existing clients when changing the
b80e560b 1639# password. If nothing is specified, defaults to `keep'
fbf796fd
LC
1640# `fail' to fail the command if clients are connected
1641# `disconnect' to disconnect existing clients
1642# `keep' to maintain existing clients
1643#
1644# Returns: Nothing on success
1645# If Spice is not enabled, DeviceNotFound
fbf796fd
LC
1646#
1647# Since: 0.14.0
1648##
1649{ 'command': 'set_password',
1650 'data': {'protocol': 'str', 'password': 'str', '*connected': 'str'} }
9ad5372d
LC
1651
1652##
1653# @expire_password:
1654#
1655# Expire the password of a remote display server.
1656#
1657# @protocol: the name of the remote display protocol `vnc' or `spice'
1658#
1659# @time: when to expire the password.
1660# `now' to expire the password immediately
1661# `never' to cancel password expiration
1662# `+INT' where INT is the number of seconds from now (integer)
1663# `INT' where INT is the absolute time in seconds
1664#
1665# Returns: Nothing on success
1666# If @protocol is `spice' and Spice is not active, DeviceNotFound
9ad5372d
LC
1667#
1668# Since: 0.14.0
1669#
1670# Notes: Time is relative to the server and currently there is no way to
1671# coordinate server time with client time. It is not recommended to
1672# use the absolute time version of the @time parameter unless you're
1673# sure you are on the same machine as the QEMU instance.
1674##
1675{ 'command': 'expire_password', 'data': {'protocol': 'str', 'time': 'str'} }
c245b6a3 1676
270b243f
LC
1677##
1678# @change-vnc-password:
1679#
1680# Change the VNC server password.
1681#
1c854067 1682# @password: the new password to use with VNC authentication
270b243f
LC
1683#
1684# Since: 1.1
1685#
1686# Notes: An empty password in this command will set the password to the empty
1687# string. Existing clients are unaffected by executing this command.
1688##
1689{ 'command': 'change-vnc-password', 'data': {'password': 'str'} }
333a96ec
LC
1690
1691##
1692# @change:
1693#
1694# This command is multiple commands multiplexed together.
1695#
1696# @device: This is normally the name of a block device but it may also be 'vnc'.
1697# when it's 'vnc', then sub command depends on @target
1698#
1699# @target: If @device is a block device, then this is the new filename.
1700# If @device is 'vnc', then if the value 'password' selects the vnc
1701# change password command. Otherwise, this specifies a new server URI
1702# address to listen to for VNC connections.
1703#
1704# @arg: If @device is a block device, then this is an optional format to open
1705# the device with.
1706# If @device is 'vnc' and @target is 'password', this is the new VNC
1707# password to set. If this argument is an empty string, then no future
1708# logins will be allowed.
1709#
1710# Returns: Nothing on success.
1711# If @device is not a valid block device, DeviceNotFound
333a96ec
LC
1712# If the new block device is encrypted, DeviceEncrypted. Note that
1713# if this error is returned, the device has been opened successfully
1714# and an additional call to @block_passwd is required to set the
1715# device's password. The behavior of reads and writes to the block
1716# device between when these calls are executed is undefined.
1717#
1718# Notes: It is strongly recommended that this interface is not used especially
1719# for changing block devices.
1720#
1721# Since: 0.14.0
1722##
1723{ 'command': 'change',
1724 'data': {'device': 'str', 'target': 'str', '*arg': 'str'} }
80047da5 1725
5eeee3fa
AL
1726##
1727# @ObjectTypeInfo:
1728#
1729# This structure describes a search result from @qom-list-types
1730#
1731# @name: the type name found in the search
1732#
1733# Since: 1.1
1734#
1735# Notes: This command is experimental and may change syntax in future releases.
1736##
895a2a80 1737{ 'struct': 'ObjectTypeInfo',
5eeee3fa
AL
1738 'data': { 'name': 'str' } }
1739
1740##
1741# @qom-list-types:
1742#
1743# This command will return a list of types given search parameters
1744#
1745# @implements: if specified, only return types that implement this type name
1746#
1747# @abstract: if true, include abstract types in the results
1748#
1749# Returns: a list of @ObjectTypeInfo or an empty list if no results are found
1750#
1751# Since: 1.1
5eeee3fa
AL
1752##
1753{ 'command': 'qom-list-types',
1754 'data': { '*implements': 'str', '*abstract': 'bool' },
1755 'returns': [ 'ObjectTypeInfo' ] }
e1c37d0e 1756
1daa31b9
AL
1757##
1758# @DevicePropertyInfo:
1759#
1760# Information about device properties.
1761#
1762# @name: the name of the property
1763# @type: the typename of the property
07d09c58
GA
1764# @description: #optional if specified, the description of the property.
1765# (since 2.2)
1daa31b9
AL
1766#
1767# Since: 1.2
1768##
895a2a80 1769{ 'struct': 'DevicePropertyInfo',
07d09c58 1770 'data': { 'name': 'str', 'type': 'str', '*description': 'str' } }
1daa31b9
AL
1771
1772##
1773# @device-list-properties:
1774#
1775# List properties associated with a device.
1776#
1777# @typename: the type name of a device
1778#
1779# Returns: a list of DevicePropertyInfo describing a devices properties
1780#
1781# Since: 1.2
1782##
1783{ 'command': 'device-list-properties',
1784 'data': { 'typename': 'str'},
1785 'returns': [ 'DevicePropertyInfo' ] }
1786
e1c37d0e
LC
1787##
1788# @migrate
1789#
1790# Migrates the current running guest to another Virtual Machine.
1791#
1792# @uri: the Uniform Resource Identifier of the destination VM
1793#
1794# @blk: #optional do block migration (full disk copy)
1795#
1796# @inc: #optional incremental disk copy migration
1797#
1798# @detach: this argument exists only for compatibility reasons and
1799# is ignored by QEMU
1800#
1801# Returns: nothing on success
1802#
1803# Since: 0.14.0
1804##
1805{ 'command': 'migrate',
1806 'data': {'uri': 'str', '*blk': 'bool', '*inc': 'bool', '*detach': 'bool' } }
33cf629a 1807
bf1ae1f4
DDAG
1808##
1809# @migrate-incoming
1810#
1811# Start an incoming migration, the qemu must have been started
1812# with -incoming defer
1813#
1814# @uri: The Uniform Resource Identifier identifying the source or
1815# address to listen on
1816#
1817# Returns: nothing on success
1818#
1819# Since: 2.3
d8760534
DDAG
1820# Note: It's a bad idea to use a string for the uri, but it needs to stay
1821# compatible with -incoming and the format of the uri is already exposed
1822# above libvirt
bf1ae1f4
DDAG
1823##
1824{ 'command': 'migrate-incoming', 'data': {'uri': 'str' } }
1825
a7ae8355
SS
1826# @xen-save-devices-state:
1827#
1828# Save the state of all devices to file. The RAM and the block devices
1829# of the VM are not saved by this command.
1830#
1831# @filename: the file to save the state of the devices to as binary
1832# data. See xen-save-devices-state.txt for a description of the binary
1833# format.
1834#
1835# Returns: Nothing on success
a7ae8355
SS
1836#
1837# Since: 1.1
1838##
1839{ 'command': 'xen-save-devices-state', 'data': {'filename': 'str'} }
a15fef21 1840
39f42439
AP
1841##
1842# @xen-set-global-dirty-log
1843#
1844# Enable or disable the global dirty log mode.
1845#
1846# @enable: true to enable, false to disable.
1847#
1848# Returns: nothing
1849#
1850# Since: 1.3
1851##
1852{ 'command': 'xen-set-global-dirty-log', 'data': { 'enable': 'bool' } }
1853
a15fef21
LC
1854##
1855# @device_del:
1856#
1857# Remove a device from a guest
1858#
1859# @id: the name of the device
1860#
1861# Returns: Nothing on success
1862# If @id is not a valid device, DeviceNotFound
a15fef21
LC
1863#
1864# Notes: When this command completes, the device may not be removed from the
1865# guest. Hot removal is an operation that requires guest cooperation.
1866# This command merely requests that the guest begin the hot removal
0402a5d6
MT
1867# process. Completion of the device removal process is signaled with a
1868# DEVICE_DELETED event. Guest reset will automatically complete removal
1869# for all devices.
a15fef21
LC
1870#
1871# Since: 0.14.0
1872##
1873{ 'command': 'device_del', 'data': {'id': 'str'} }
783e9b48 1874
b53ccc30
QN
1875##
1876# @DumpGuestMemoryFormat:
1877#
1878# An enumeration of guest-memory-dump's format.
1879#
1880# @elf: elf format
1881#
1882# @kdump-zlib: kdump-compressed format with zlib-compressed
1883#
1884# @kdump-lzo: kdump-compressed format with lzo-compressed
1885#
1886# @kdump-snappy: kdump-compressed format with snappy-compressed
1887#
1888# Since: 2.0
1889##
1890{ 'enum': 'DumpGuestMemoryFormat',
1891 'data': [ 'elf', 'kdump-zlib', 'kdump-lzo', 'kdump-snappy' ] }
1892
783e9b48
WC
1893##
1894# @dump-guest-memory
1895#
1896# Dump guest's memory to vmcore. It is a synchronous operation that can take
1897# very long depending on the amount of guest memory. This command is only
f5b0d93b
LC
1898# supported on i386 and x86_64.
1899#
1900# @paging: if true, do paging to get guest's memory mapping. This allows
d691180e 1901# using gdb to process the core file.
f5b0d93b 1902#
d691180e
LC
1903# IMPORTANT: this option can make QEMU allocate several gigabytes
1904# of RAM. This can happen for a large guest, or a
1905# malicious guest pretending to be large.
1906#
1907# Also, paging=true has the following limitations:
1908#
1909# 1. The guest may be in a catastrophic state or can have corrupted
1910# memory, which cannot be trusted
1911# 2. The guest can be in real-mode even if paging is enabled. For
1912# example, the guest uses ACPI to sleep, and ACPI sleep state
1913# goes in real-mode
f5b0d93b 1914#
783e9b48 1915# @protocol: the filename or file descriptor of the vmcore. The supported
d691180e 1916# protocols are:
f5b0d93b 1917#
d691180e
LC
1918# 1. file: the protocol starts with "file:", and the following
1919# string is the file's path.
1920# 2. fd: the protocol starts with "fd:", and the following string
1921# is the fd's name.
f5b0d93b 1922#
783e9b48 1923# @begin: #optional if specified, the starting physical address.
f5b0d93b 1924#
783e9b48 1925# @length: #optional if specified, the memory size, in bytes. If you don't
d691180e
LC
1926# want to dump all guest's memory, please specify the start @begin
1927# and @length
783e9b48 1928#
b53ccc30
QN
1929# @format: #optional if specified, the format of guest memory dump. But non-elf
1930# format is conflict with paging and filter, ie. @paging, @begin and
1931# @length is not allowed to be specified with non-elf @format at the
1932# same time (since 2.0)
1933#
783e9b48 1934# Returns: nothing on success
783e9b48
WC
1935#
1936# Since: 1.2
1937##
1938{ 'command': 'dump-guest-memory',
1939 'data': { 'paging': 'bool', 'protocol': 'str', '*begin': 'int',
b53ccc30 1940 '*length': 'int', '*format': 'DumpGuestMemoryFormat' } }
d691180e 1941
7d6dc7f3
QN
1942##
1943# @DumpGuestMemoryCapability:
1944#
1945# A list of the available formats for dump-guest-memory
1946#
1947# Since: 2.0
1948##
895a2a80 1949{ 'struct': 'DumpGuestMemoryCapability',
7d6dc7f3
QN
1950 'data': {
1951 'formats': ['DumpGuestMemoryFormat'] } }
1952
1953##
1954# @query-dump-guest-memory-capability:
1955#
1956# Returns the available formats for dump-guest-memory
1957#
1958# Returns: A @DumpGuestMemoryCapability object listing available formats for
1959# dump-guest-memory
1960#
1961# Since: 2.0
1962##
1963{ 'command': 'query-dump-guest-memory-capability',
1964 'returns': 'DumpGuestMemoryCapability' }
d691180e 1965
928059a3
LC
1966##
1967# @netdev_add:
1968#
1969# Add a network backend.
1970#
1971# @type: the type of network backend. Current valid values are 'user', 'tap',
1972# 'vde', 'socket', 'dump' and 'bridge'
1973#
1974# @id: the name of the new network backend
1975#
1976# @props: #optional a list of properties to be passed to the backend in
1977# the format 'name=value', like 'ifname=tap0,script=no'
1978#
1979# Notes: The semantics of @props is not well defined. Future commands will be
1980# introduced that provide stronger typing for backend creation.
1981#
1982# Since: 0.14.0
1983#
1984# Returns: Nothing on success
1985# If @type is not a valid network backend, DeviceNotFound
928059a3
LC
1986##
1987{ 'command': 'netdev_add',
1988 'data': {'type': 'str', 'id': 'str', '*props': '**'},
d708cdbe 1989 'gen': false }
5f964155
LC
1990
1991##
1992# @netdev_del:
1993#
1994# Remove a network backend.
1995#
1996# @id: the name of the network backend to remove
1997#
1998# Returns: Nothing on success
1999# If @id is not a valid network backend, DeviceNotFound
2000#
2001# Since: 0.14.0
2002##
2003{ 'command': 'netdev_del', 'data': {'id': 'str'} }
208c9d1b 2004
cff8b2c6
PB
2005##
2006# @object-add:
2007#
2008# Create a QOM object.
2009#
2010# @qom-type: the class name for the object to be created
2011#
2012# @id: the name of the new object
2013#
2014# @props: #optional a dictionary of properties to be passed to the backend
2015#
2016# Returns: Nothing on success
2017# Error if @qom-type is not a valid class name
2018#
2019# Since: 2.0
2020##
2021{ 'command': 'object-add',
d708cdbe
EB
2022 'data': {'qom-type': 'str', 'id': 'str', '*props': '**'},
2023 'gen': false }
cff8b2c6 2024
ab2d0531
PB
2025##
2026# @object-del:
2027#
2028# Remove a QOM object.
2029#
2030# @id: the name of the QOM object to remove
2031#
2032# Returns: Nothing on success
2033# Error if @id is not a valid id for a QOM object
2034#
2035# Since: 2.0
2036##
2037{ 'command': 'object-del', 'data': {'id': 'str'} }
2038
14aa0c2d
LE
2039##
2040# @NetdevNoneOptions
2041#
2042# Use it alone to have zero network devices.
2043#
2044# Since 1.2
2045##
895a2a80 2046{ 'struct': 'NetdevNoneOptions',
14aa0c2d
LE
2047 'data': { } }
2048
2049##
2050# @NetLegacyNicOptions
2051#
2052# Create a new Network Interface Card.
2053#
2054# @netdev: #optional id of -netdev to connect to
2055#
2056# @macaddr: #optional MAC address
2057#
2058# @model: #optional device model (e1000, rtl8139, virtio etc.)
2059#
2060# @addr: #optional PCI device address
2061#
2062# @vectors: #optional number of MSI-x vectors, 0 to disable MSI-X
2063#
2064# Since 1.2
2065##
895a2a80 2066{ 'struct': 'NetLegacyNicOptions',
14aa0c2d
LE
2067 'data': {
2068 '*netdev': 'str',
2069 '*macaddr': 'str',
2070 '*model': 'str',
2071 '*addr': 'str',
2072 '*vectors': 'uint32' } }
2073
2074##
2075# @String
2076#
2077# A fat type wrapping 'str', to be embedded in lists.
2078#
2079# Since 1.2
2080##
895a2a80 2081{ 'struct': 'String',
14aa0c2d
LE
2082 'data': {
2083 'str': 'str' } }
2084
2085##
2086# @NetdevUserOptions
2087#
2088# Use the user mode network stack which requires no administrator privilege to
2089# run.
2090#
2091# @hostname: #optional client hostname reported by the builtin DHCP server
2092#
2093# @restrict: #optional isolate the guest from the host
2094#
2095# @ip: #optional legacy parameter, use net= instead
2096#
2097# @net: #optional IP address and optional netmask
2098#
2099# @host: #optional guest-visible address of the host
2100#
2101# @tftp: #optional root directory of the built-in TFTP server
2102#
2103# @bootfile: #optional BOOTP filename, for use with tftp=
2104#
2105# @dhcpstart: #optional the first of the 16 IPs the built-in DHCP server can
2106# assign
2107#
2108# @dns: #optional guest-visible address of the virtual nameserver
2109#
63d2960b
KS
2110# @dnssearch: #optional list of DNS suffixes to search, passed as DHCP option
2111# to the guest
2112#
14aa0c2d
LE
2113# @smb: #optional root directory of the built-in SMB server
2114#
2115# @smbserver: #optional IP address of the built-in SMB server
2116#
2117# @hostfwd: #optional redirect incoming TCP or UDP host connections to guest
2118# endpoints
2119#
2120# @guestfwd: #optional forward guest TCP connections
2121#
2122# Since 1.2
2123##
895a2a80 2124{ 'struct': 'NetdevUserOptions',
14aa0c2d
LE
2125 'data': {
2126 '*hostname': 'str',
2127 '*restrict': 'bool',
2128 '*ip': 'str',
2129 '*net': 'str',
2130 '*host': 'str',
2131 '*tftp': 'str',
2132 '*bootfile': 'str',
2133 '*dhcpstart': 'str',
2134 '*dns': 'str',
63d2960b 2135 '*dnssearch': ['String'],
14aa0c2d
LE
2136 '*smb': 'str',
2137 '*smbserver': 'str',
2138 '*hostfwd': ['String'],
2139 '*guestfwd': ['String'] } }
2140
2141##
2142# @NetdevTapOptions
2143#
2144# Connect the host TAP network interface name to the VLAN.
2145#
2146# @ifname: #optional interface name
2147#
2148# @fd: #optional file descriptor of an already opened tap
2149#
2ca81baa
JW
2150# @fds: #optional multiple file descriptors of already opened multiqueue capable
2151# tap
2152#
14aa0c2d
LE
2153# @script: #optional script to initialize the interface
2154#
2155# @downscript: #optional script to shut down the interface
2156#
2157# @helper: #optional command to execute to configure bridge
2158#
2159# @sndbuf: #optional send buffer limit. Understands [TGMKkb] suffixes.
2160#
2161# @vnet_hdr: #optional enable the IFF_VNET_HDR flag on the tap interface
2162#
2163# @vhost: #optional enable vhost-net network accelerator
2164#
2165# @vhostfd: #optional file descriptor of an already opened vhost net device
2166#
2ca81baa
JW
2167# @vhostfds: #optional file descriptors of multiple already opened vhost net
2168# devices
2169#
14aa0c2d
LE
2170# @vhostforce: #optional vhost on for non-MSIX virtio guests
2171#
ec396014
JW
2172# @queues: #optional number of queues to be created for multiqueue capable tap
2173#
14aa0c2d
LE
2174# Since 1.2
2175##
895a2a80 2176{ 'struct': 'NetdevTapOptions',
14aa0c2d
LE
2177 'data': {
2178 '*ifname': 'str',
2179 '*fd': 'str',
264986e2 2180 '*fds': 'str',
14aa0c2d
LE
2181 '*script': 'str',
2182 '*downscript': 'str',
2183 '*helper': 'str',
2184 '*sndbuf': 'size',
2185 '*vnet_hdr': 'bool',
2186 '*vhost': 'bool',
2187 '*vhostfd': 'str',
264986e2
JW
2188 '*vhostfds': 'str',
2189 '*vhostforce': 'bool',
2190 '*queues': 'uint32'} }
14aa0c2d
LE
2191
2192##
2193# @NetdevSocketOptions
2194#
2195# Connect the VLAN to a remote VLAN in another QEMU virtual machine using a TCP
2196# socket connection.
2197#
2198# @fd: #optional file descriptor of an already opened socket
2199#
2200# @listen: #optional port number, and optional hostname, to listen on
2201#
2202# @connect: #optional port number, and optional hostname, to connect to
2203#
2204# @mcast: #optional UDP multicast address and port number
2205#
2206# @localaddr: #optional source address and port for multicast and udp packets
2207#
2208# @udp: #optional UDP unicast address and port number
2209#
2210# Since 1.2
2211##
895a2a80 2212{ 'struct': 'NetdevSocketOptions',
14aa0c2d
LE
2213 'data': {
2214 '*fd': 'str',
2215 '*listen': 'str',
2216 '*connect': 'str',
2217 '*mcast': 'str',
2218 '*localaddr': 'str',
2219 '*udp': 'str' } }
2220
3fb69aa1
AI
2221##
2222# @NetdevL2TPv3Options
2223#
2224# Connect the VLAN to Ethernet over L2TPv3 Static tunnel
2225#
2226# @src: source address
2227#
2228# @dst: destination address
2229#
2230# @srcport: #optional source port - mandatory for udp, optional for ip
2231#
2232# @dstport: #optional destination port - mandatory for udp, optional for ip
2233#
2234# @ipv6: #optional - force the use of ipv6
2235#
2236# @udp: #optional - use the udp version of l2tpv3 encapsulation
2237#
2238# @cookie64: #optional - use 64 bit coookies
2239#
2240# @counter: #optional have sequence counter
2241#
2242# @pincounter: #optional pin sequence counter to zero -
2243# workaround for buggy implementations or
2244# networks with packet reorder
2245#
2246# @txcookie: #optional 32 or 64 bit transmit cookie
2247#
2248# @rxcookie: #optional 32 or 64 bit receive cookie
2249#
2250# @txsession: 32 bit transmit session
2251#
2252# @rxsession: #optional 32 bit receive session - if not specified
2253# set to the same value as transmit
2254#
2255# @offset: #optional additional offset - allows the insertion of
2256# additional application-specific data before the packet payload
2257#
2258# Since 2.1
2259##
895a2a80 2260{ 'struct': 'NetdevL2TPv3Options',
3fb69aa1
AI
2261 'data': {
2262 'src': 'str',
2263 'dst': 'str',
2264 '*srcport': 'str',
2265 '*dstport': 'str',
2266 '*ipv6': 'bool',
2267 '*udp': 'bool',
2268 '*cookie64': 'bool',
2269 '*counter': 'bool',
2270 '*pincounter': 'bool',
2271 '*txcookie': 'uint64',
2272 '*rxcookie': 'uint64',
2273 'txsession': 'uint32',
2274 '*rxsession': 'uint32',
2275 '*offset': 'uint32' } }
2276
14aa0c2d
LE
2277##
2278# @NetdevVdeOptions
2279#
2280# Connect the VLAN to a vde switch running on the host.
2281#
2282# @sock: #optional socket path
2283#
2284# @port: #optional port number
2285#
2286# @group: #optional group owner of socket
2287#
2288# @mode: #optional permissions for socket
2289#
2290# Since 1.2
2291##
895a2a80 2292{ 'struct': 'NetdevVdeOptions',
14aa0c2d
LE
2293 'data': {
2294 '*sock': 'str',
2295 '*port': 'uint16',
2296 '*group': 'str',
2297 '*mode': 'uint16' } }
2298
2299##
2300# @NetdevDumpOptions
2301#
2302# Dump VLAN network traffic to a file.
2303#
2304# @len: #optional per-packet size limit (64k default). Understands [TGMKkb]
2305# suffixes.
2306#
2307# @file: #optional dump file path (default is qemu-vlan0.pcap)
2308#
2309# Since 1.2
2310##
895a2a80 2311{ 'struct': 'NetdevDumpOptions',
14aa0c2d
LE
2312 'data': {
2313 '*len': 'size',
2314 '*file': 'str' } }
2315
2316##
2317# @NetdevBridgeOptions
2318#
2319# Connect a host TAP network interface to a host bridge device.
2320#
2321# @br: #optional bridge name
2322#
2323# @helper: #optional command to execute to configure bridge
2324#
2325# Since 1.2
2326##
895a2a80 2327{ 'struct': 'NetdevBridgeOptions',
14aa0c2d
LE
2328 'data': {
2329 '*br': 'str',
2330 '*helper': 'str' } }
2331
f6c874e3
SH
2332##
2333# @NetdevHubPortOptions
2334#
2335# Connect two or more net clients through a software hub.
2336#
2337# @hubid: hub identifier number
2338#
2339# Since 1.2
2340##
895a2a80 2341{ 'struct': 'NetdevHubPortOptions',
f6c874e3
SH
2342 'data': {
2343 'hubid': 'int32' } }
2344
58952137
VM
2345##
2346# @NetdevNetmapOptions
2347#
2348# Connect a client to a netmap-enabled NIC or to a VALE switch port
2349#
2350# @ifname: Either the name of an existing network interface supported by
2351# netmap, or the name of a VALE port (created on the fly).
2352# A VALE port name is in the form 'valeXXX:YYY', where XXX and
2353# YYY are non-negative integers. XXX identifies a switch and
2354# YYY identifies a port of the switch. VALE ports having the
2355# same XXX are therefore connected to the same switch.
2356#
2357# @devname: #optional path of the netmap device (default: '/dev/netmap').
2358#
c27de2a3 2359# Since 2.0
58952137 2360##
895a2a80 2361{ 'struct': 'NetdevNetmapOptions',
58952137
VM
2362 'data': {
2363 'ifname': 'str',
2364 '*devname': 'str' } }
2365
03ce5744
NN
2366##
2367# @NetdevVhostUserOptions
2368#
2369# Vhost-user network backend
2370#
2371# @chardev: name of a unix socket chardev
2372#
2373# @vhostforce: #optional vhost on for non-MSIX virtio guests (default: false).
2374#
2375# Since 2.1
2376##
895a2a80 2377{ 'struct': 'NetdevVhostUserOptions',
03ce5744
NN
2378 'data': {
2379 'chardev': 'str',
2380 '*vhostforce': 'bool' } }
2381
14aa0c2d
LE
2382##
2383# @NetClientOptions
2384#
2385# A discriminated record of network device traits.
2386#
2387# Since 1.2
3fb69aa1
AI
2388#
2389# 'l2tpv3' - since 2.1
2390#
14aa0c2d
LE
2391##
2392{ 'union': 'NetClientOptions',
2393 'data': {
f6c874e3
SH
2394 'none': 'NetdevNoneOptions',
2395 'nic': 'NetLegacyNicOptions',
2396 'user': 'NetdevUserOptions',
2397 'tap': 'NetdevTapOptions',
3fb69aa1 2398 'l2tpv3': 'NetdevL2TPv3Options',
f6c874e3
SH
2399 'socket': 'NetdevSocketOptions',
2400 'vde': 'NetdevVdeOptions',
2401 'dump': 'NetdevDumpOptions',
2402 'bridge': 'NetdevBridgeOptions',
58952137 2403 'hubport': 'NetdevHubPortOptions',
03ce5744
NN
2404 'netmap': 'NetdevNetmapOptions',
2405 'vhost-user': 'NetdevVhostUserOptions' } }
14aa0c2d
LE
2406
2407##
2408# @NetLegacy
2409#
2410# Captures the configuration of a network device; legacy.
2411#
2412# @vlan: #optional vlan number
2413#
2414# @id: #optional identifier for monitor commands
2415#
2416# @name: #optional identifier for monitor commands, ignored if @id is present
2417#
2418# @opts: device type specific properties (legacy)
2419#
2420# Since 1.2
2421##
895a2a80 2422{ 'struct': 'NetLegacy',
14aa0c2d
LE
2423 'data': {
2424 '*vlan': 'int32',
2425 '*id': 'str',
2426 '*name': 'str',
2427 'opts': 'NetClientOptions' } }
2428
2429##
2430# @Netdev
2431#
2432# Captures the configuration of a network device.
2433#
2434# @id: identifier for monitor commands.
2435#
2436# @opts: device type specific properties
2437#
2438# Since 1.2
2439##
895a2a80 2440{ 'struct': 'Netdev',
14aa0c2d
LE
2441 'data': {
2442 'id': 'str',
2443 'opts': 'NetClientOptions' } }
2444
5be8c759
PB
2445##
2446# @InetSocketAddress
2447#
2448# Captures a socket address or address range in the Internet namespace.
2449#
2450# @host: host part of the address
2451#
2452# @port: port part of the address, or lowest port if @to is present
2453#
2454# @to: highest port to try
2455#
2456# @ipv4: whether to accept IPv4 addresses, default try both IPv4 and IPv6
2457# #optional
2458#
2459# @ipv6: whether to accept IPv6 addresses, default try both IPv4 and IPv6
2460# #optional
2461#
2462# Since 1.3
2463##
895a2a80 2464{ 'struct': 'InetSocketAddress',
5be8c759
PB
2465 'data': {
2466 'host': 'str',
2467 'port': 'str',
2468 '*to': 'uint16',
2469 '*ipv4': 'bool',
2470 '*ipv6': 'bool' } }
2471
2472##
2473# @UnixSocketAddress
2474#
2475# Captures a socket address in the local ("Unix socket") namespace.
2476#
2477# @path: filesystem path to use
2478#
2479# Since 1.3
2480##
895a2a80 2481{ 'struct': 'UnixSocketAddress',
5be8c759
PB
2482 'data': {
2483 'path': 'str' } }
2484
2485##
2486# @SocketAddress
2487#
2488# Captures the address of a socket, which could also be a named file descriptor
2489#
2490# Since 1.3
2491##
2492{ 'union': 'SocketAddress',
2493 'data': {
2494 'inet': 'InetSocketAddress',
2495 'unix': 'UnixSocketAddress',
2496 'fd': 'String' } }
2497
208c9d1b
CB
2498##
2499# @getfd:
2500#
2501# Receive a file descriptor via SCM rights and assign it a name
2502#
2503# @fdname: file descriptor name
2504#
2505# Returns: Nothing on success
208c9d1b
CB
2506#
2507# Since: 0.14.0
2508#
2509# Notes: If @fdname already exists, the file descriptor assigned to
2510# it will be closed and replaced by the received file
2511# descriptor.
2512# The 'closefd' command can be used to explicitly close the
2513# file descriptor when it is no longer needed.
2514##
2515{ 'command': 'getfd', 'data': {'fdname': 'str'} }
2516
2517##
2518# @closefd:
2519#
2520# Close a file descriptor previously passed via SCM rights
2521#
2522# @fdname: file descriptor name
2523#
2524# Returns: Nothing on success
208c9d1b
CB
2525#
2526# Since: 0.14.0
2527##
2528{ 'command': 'closefd', 'data': {'fdname': 'str'} }
01d3c80d
AL
2529
2530##
2531# @MachineInfo:
2532#
2533# Information describing a machine.
2534#
2535# @name: the name of the machine
2536#
2537# @alias: #optional an alias for the machine name
2538#
2539# @default: #optional whether the machine is default
2540#
c72e7688
MN
2541# @cpu-max: maximum number of CPUs supported by the machine type
2542# (since 1.5.0)
2543#
01d3c80d
AL
2544# Since: 1.2.0
2545##
895a2a80 2546{ 'struct': 'MachineInfo',
01d3c80d 2547 'data': { 'name': 'str', '*alias': 'str',
c72e7688 2548 '*is-default': 'bool', 'cpu-max': 'int' } }
01d3c80d
AL
2549
2550##
2551# @query-machines:
2552#
2553# Return a list of supported machines
2554#
2555# Returns: a list of MachineInfo
2556#
2557# Since: 1.2.0
2558##
2559{ 'command': 'query-machines', 'returns': ['MachineInfo'] }
e4e31c63
AL
2560
2561##
2562# @CpuDefinitionInfo:
2563#
2564# Virtual CPU definition.
2565#
2566# @name: the name of the CPU definition
2567#
2568# Since: 1.2.0
2569##
895a2a80 2570{ 'struct': 'CpuDefinitionInfo',
e4e31c63
AL
2571 'data': { 'name': 'str' } }
2572
2573##
2574# @query-cpu-definitions:
2575#
2576# Return a list of supported virtual CPU definitions
2577#
2578# Returns: a list of CpuDefInfo
2579#
2580# Since: 1.2.0
2581##
2582{ 'command': 'query-cpu-definitions', 'returns': ['CpuDefinitionInfo'] }
ba1c048a
CB
2583
2584# @AddfdInfo:
2585#
2586# Information about a file descriptor that was added to an fd set.
2587#
2588# @fdset-id: The ID of the fd set that @fd was added to.
2589#
2590# @fd: The file descriptor that was received via SCM rights and
2591# added to the fd set.
2592#
2593# Since: 1.2.0
2594##
895a2a80 2595{ 'struct': 'AddfdInfo', 'data': {'fdset-id': 'int', 'fd': 'int'} }
ba1c048a
CB
2596
2597##
2598# @add-fd:
2599#
2600# Add a file descriptor, that was passed via SCM rights, to an fd set.
2601#
2602# @fdset-id: #optional The ID of the fd set to add the file descriptor to.
2603#
2604# @opaque: #optional A free-form string that can be used to describe the fd.
2605#
2606# Returns: @AddfdInfo on success
2607# If file descriptor was not received, FdNotSupplied
9ac54af0 2608# If @fdset-id is a negative value, InvalidParameterValue
ba1c048a
CB
2609#
2610# Notes: The list of fd sets is shared by all monitor connections.
2611#
2612# If @fdset-id is not specified, a new fd set will be created.
2613#
2614# Since: 1.2.0
2615##
2616{ 'command': 'add-fd', 'data': {'*fdset-id': 'int', '*opaque': 'str'},
2617 'returns': 'AddfdInfo' }
2618
2619##
2620# @remove-fd:
2621#
2622# Remove a file descriptor from an fd set.
2623#
2624# @fdset-id: The ID of the fd set that the file descriptor belongs to.
2625#
2626# @fd: #optional The file descriptor that is to be removed.
2627#
2628# Returns: Nothing on success
2629# If @fdset-id or @fd is not found, FdNotFound
2630#
2631# Since: 1.2.0
2632#
2633# Notes: The list of fd sets is shared by all monitor connections.
2634#
2635# If @fd is not specified, all file descriptors in @fdset-id
2636# will be removed.
2637##
2638{ 'command': 'remove-fd', 'data': {'fdset-id': 'int', '*fd': 'int'} }
2639
2640##
2641# @FdsetFdInfo:
2642#
2643# Information about a file descriptor that belongs to an fd set.
2644#
2645# @fd: The file descriptor value.
2646#
2647# @opaque: #optional A free-form string that can be used to describe the fd.
2648#
2649# Since: 1.2.0
2650##
895a2a80 2651{ 'struct': 'FdsetFdInfo',
ba1c048a
CB
2652 'data': {'fd': 'int', '*opaque': 'str'} }
2653
2654##
2655# @FdsetInfo:
2656#
2657# Information about an fd set.
2658#
2659# @fdset-id: The ID of the fd set.
2660#
2661# @fds: A list of file descriptors that belong to this fd set.
2662#
2663# Since: 1.2.0
2664##
895a2a80 2665{ 'struct': 'FdsetInfo',
ba1c048a
CB
2666 'data': {'fdset-id': 'int', 'fds': ['FdsetFdInfo']} }
2667
2668##
2669# @query-fdsets:
2670#
2671# Return information describing all fd sets.
2672#
2673# Returns: A list of @FdsetInfo
2674#
2675# Since: 1.2.0
2676#
2677# Note: The list of fd sets is shared by all monitor connections.
2678#
2679##
2680{ 'command': 'query-fdsets', 'returns': ['FdsetInfo'] }
99afc91d 2681
99afc91d
DB
2682##
2683# @TargetInfo:
2684#
2685# Information describing the QEMU target.
2686#
2687# @arch: the target architecture (eg "x86_64", "i386", etc)
2688#
2689# Since: 1.2.0
2690##
895a2a80 2691{ 'struct': 'TargetInfo',
c02a9552 2692 'data': { 'arch': 'str' } }
99afc91d
DB
2693
2694##
2695# @query-target:
2696#
2697# Return information about the target for this QEMU
2698#
2699# Returns: TargetInfo
2700#
2701# Since: 1.2.0
2702##
2703{ 'command': 'query-target', 'returns': 'TargetInfo' }
411656f4
AK
2704
2705##
2706# @QKeyCode:
2707#
2708# An enumeration of key name.
2709#
2710# This is used by the send-key command.
2711#
2712# Since: 1.3.0
bbd1b1cc 2713#
8b6b0c59 2714# 'unmapped' and 'pause' since 2.0
411656f4
AK
2715##
2716{ 'enum': 'QKeyCode',
bbd1b1cc
GH
2717 'data': [ 'unmapped',
2718 'shift', 'shift_r', 'alt', 'alt_r', 'altgr', 'altgr_r', 'ctrl',
411656f4
AK
2719 'ctrl_r', 'menu', 'esc', '1', '2', '3', '4', '5', '6', '7', '8',
2720 '9', '0', 'minus', 'equal', 'backspace', 'tab', 'q', 'w', 'e',
2721 'r', 't', 'y', 'u', 'i', 'o', 'p', 'bracket_left', 'bracket_right',
2722 'ret', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'semicolon',
2723 'apostrophe', 'grave_accent', 'backslash', 'z', 'x', 'c', 'v', 'b',
2724 'n', 'm', 'comma', 'dot', 'slash', 'asterisk', 'spc', 'caps_lock',
2725 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10',
2726 'num_lock', 'scroll_lock', 'kp_divide', 'kp_multiply',
2727 'kp_subtract', 'kp_add', 'kp_enter', 'kp_decimal', 'sysrq', 'kp_0',
2728 'kp_1', 'kp_2', 'kp_3', 'kp_4', 'kp_5', 'kp_6', 'kp_7', 'kp_8',
2729 'kp_9', 'less', 'f11', 'f12', 'print', 'home', 'pgup', 'pgdn', 'end',
2730 'left', 'up', 'down', 'right', 'insert', 'delete', 'stop', 'again',
2731 'props', 'undo', 'front', 'copy', 'open', 'paste', 'find', 'cut',
8b6b0c59 2732 'lf', 'help', 'meta_l', 'meta_r', 'compose', 'pause' ] }
e4c8f004 2733
9f328977
LC
2734##
2735# @KeyValue
2736#
2737# Represents a keyboard key.
2738#
2739# Since: 1.3.0
2740##
2741{ 'union': 'KeyValue',
2742 'data': {
2743 'number': 'int',
2744 'qcode': 'QKeyCode' } }
2745
e4c8f004
AK
2746##
2747# @send-key:
2748#
2749# Send keys to guest.
2750#
9f328977
LC
2751# @keys: An array of @KeyValue elements. All @KeyValues in this array are
2752# simultaneously sent to the guest. A @KeyValue.number value is sent
2753# directly to the guest, while @KeyValue.qcode must be a valid
2754# @QKeyCode value
e4c8f004
AK
2755#
2756# @hold-time: #optional time to delay key up events, milliseconds. Defaults
2757# to 100
2758#
2759# Returns: Nothing on success
2760# If key is unknown or redundant, InvalidParameter
2761#
2762# Since: 1.3.0
2763#
2764##
2765{ 'command': 'send-key',
9f328977 2766 'data': { 'keys': ['KeyValue'], '*hold-time': 'int' } }
ad39cf6d
LC
2767
2768##
2769# @screendump:
2770#
2771# Write a PPM of the VGA screen to a file.
2772#
2773# @filename: the path of a new PPM file to store the image
2774#
2775# Returns: Nothing on success
2776#
2777# Since: 0.14.0
2778##
2779{ 'command': 'screendump', 'data': {'filename': 'str'} }
6dd844db 2780
ffbdbe59
GH
2781##
2782# @ChardevFile:
2783#
2784# Configuration info for file chardevs.
2785#
2786# @in: #optional The name of the input file
2787# @out: The name of the output file
2788#
2789# Since: 1.4
2790##
895a2a80 2791{ 'struct': 'ChardevFile', 'data': { '*in' : 'str',
ffbdbe59
GH
2792 'out' : 'str' } }
2793
d59044ef 2794##
d36b2b90 2795# @ChardevHostdev:
d59044ef 2796#
548cbb36 2797# Configuration info for device and pipe chardevs.
d59044ef
GH
2798#
2799# @device: The name of the special file for the device,
2800# i.e. /dev/ttyS0 on Unix or COM1: on Windows
2801# @type: What kind of device this is.
2802#
2803# Since: 1.4
2804##
895a2a80 2805{ 'struct': 'ChardevHostdev', 'data': { 'device' : 'str' } }
d59044ef 2806
f6bd5d6e
GH
2807##
2808# @ChardevSocket:
2809#
3ecc059d 2810# Configuration info for (stream) socket chardevs.
f6bd5d6e
GH
2811#
2812# @addr: socket address to listen on (server=true)
2813# or connect to (server=false)
2814# @server: #optional create server socket (default: true)
ef993ba7
GH
2815# @wait: #optional wait for incoming connection on server
2816# sockets (default: false).
f6bd5d6e 2817# @nodelay: #optional set TCP_NODELAY socket option (default: false)
ef993ba7
GH
2818# @telnet: #optional enable telnet protocol on server
2819# sockets (default: false)
5dd1f02b
CM
2820# @reconnect: #optional For a client socket, if a socket is disconnected,
2821# then attempt a reconnect after the given number of seconds.
2822# Setting this to zero disables this function. (default: 0)
2823# (Since: 2.2)
f6bd5d6e
GH
2824#
2825# Since: 1.4
2826##
895a2a80 2827{ 'struct': 'ChardevSocket', 'data': { 'addr' : 'SocketAddress',
5dd1f02b
CM
2828 '*server' : 'bool',
2829 '*wait' : 'bool',
2830 '*nodelay' : 'bool',
2831 '*telnet' : 'bool',
2832 '*reconnect' : 'int' } }
f6bd5d6e 2833
3ecc059d 2834##
08d0ab3f 2835# @ChardevUdp:
3ecc059d
GH
2836#
2837# Configuration info for datagram socket chardevs.
2838#
2839# @remote: remote address
2840# @local: #optional local address
2841#
2842# Since: 1.5
2843##
895a2a80 2844{ 'struct': 'ChardevUdp', 'data': { 'remote' : 'SocketAddress',
08d0ab3f 2845 '*local' : 'SocketAddress' } }
3ecc059d 2846
edb2fb3c
GH
2847##
2848# @ChardevMux:
2849#
2850# Configuration info for mux chardevs.
2851#
2852# @chardev: name of the base chardev.
2853#
2854# Since: 1.5
2855##
895a2a80 2856{ 'struct': 'ChardevMux', 'data': { 'chardev' : 'str' } }
edb2fb3c 2857
7c358031
GH
2858##
2859# @ChardevStdio:
2860#
2861# Configuration info for stdio chardevs.
2862#
2863# @signal: #optional Allow signals (such as SIGINT triggered by ^C)
2864# be delivered to qemu. Default: true in -nographic mode,
2865# false otherwise.
2866#
2867# Since: 1.5
2868##
895a2a80 2869{ 'struct': 'ChardevStdio', 'data': { '*signal' : 'bool' } }
7c358031 2870
cd153e2a
GH
2871##
2872# @ChardevSpiceChannel:
2873#
2874# Configuration info for spice vm channel chardevs.
2875#
2876# @type: kind of channel (for example vdagent).
2877#
2878# Since: 1.5
2879##
895a2a80 2880{ 'struct': 'ChardevSpiceChannel', 'data': { 'type' : 'str' } }
cd153e2a
GH
2881
2882##
2883# @ChardevSpicePort:
2884#
2885# Configuration info for spice port chardevs.
2886#
2887# @fqdn: name of the channel (see docs/spice-port-fqdn.txt)
2888#
2889# Since: 1.5
2890##
895a2a80 2891{ 'struct': 'ChardevSpicePort', 'data': { 'fqdn' : 'str' } }
cd153e2a 2892
702ec69c
GH
2893##
2894# @ChardevVC:
2895#
2896# Configuration info for virtual console chardevs.
2897#
2898# @width: console width, in pixels
2899# @height: console height, in pixels
2900# @cols: console width, in chars
2901# @rows: console height, in chars
2902#
2903# Since: 1.5
2904##
895a2a80 2905{ 'struct': 'ChardevVC', 'data': { '*width' : 'int',
702ec69c
GH
2906 '*height' : 'int',
2907 '*cols' : 'int',
2908 '*rows' : 'int' } }
2909
1da48c65 2910##
4f57378f 2911# @ChardevRingbuf:
1da48c65 2912#
3a1da42e 2913# Configuration info for ring buffer chardevs.
1da48c65 2914#
3a1da42e 2915# @size: #optional ring buffer size, must be power of two, default is 65536
1da48c65
GH
2916#
2917# Since: 1.5
2918##
895a2a80 2919{ 'struct': 'ChardevRingbuf', 'data': { '*size' : 'int' } }
1da48c65 2920
f1a1a356
GH
2921##
2922# @ChardevBackend:
2923#
2924# Configuration info for the new chardev backend.
2925#
5692399f 2926# Since: 1.4 (testdev since 2.2)
f1a1a356 2927##
895a2a80 2928{ 'struct': 'ChardevDummy', 'data': { } }
f1a1a356 2929
f6bd5d6e 2930{ 'union': 'ChardevBackend', 'data': { 'file' : 'ChardevFile',
d36b2b90
MA
2931 'serial' : 'ChardevHostdev',
2932 'parallel': 'ChardevHostdev',
548cbb36 2933 'pipe' : 'ChardevHostdev',
f6bd5d6e 2934 'socket' : 'ChardevSocket',
08d0ab3f 2935 'udp' : 'ChardevUdp',
0a1a7fab 2936 'pty' : 'ChardevDummy',
edb2fb3c 2937 'null' : 'ChardevDummy',
f5a51cab 2938 'mux' : 'ChardevMux',
2d57286d 2939 'msmouse': 'ChardevDummy',
7c358031 2940 'braille': 'ChardevDummy',
5692399f 2941 'testdev': 'ChardevDummy',
d9ac374f 2942 'stdio' : 'ChardevStdio',
cd153e2a
GH
2943 'console': 'ChardevDummy',
2944 'spicevmc' : 'ChardevSpiceChannel',
702ec69c 2945 'spiceport' : 'ChardevSpicePort',
1da48c65 2946 'vc' : 'ChardevVC',
3a1da42e
MA
2947 'ringbuf': 'ChardevRingbuf',
2948 # next one is just for compatibility
4f57378f 2949 'memory' : 'ChardevRingbuf' } }
f1a1a356
GH
2950
2951##
2952# @ChardevReturn:
2953#
2954# Return info about the chardev backend just created.
2955#
58fa4325
MA
2956# @pty: #optional name of the slave pseudoterminal device, present if
2957# and only if a chardev of type 'pty' was created
2958#
f1a1a356
GH
2959# Since: 1.4
2960##
895a2a80 2961{ 'struct' : 'ChardevReturn', 'data': { '*pty' : 'str' } }
f1a1a356
GH
2962
2963##
2964# @chardev-add:
2965#
58fa4325 2966# Add a character device backend
f1a1a356
GH
2967#
2968# @id: the chardev's ID, must be unique
2969# @backend: backend type and parameters
2970#
58fa4325 2971# Returns: ChardevReturn.
f1a1a356
GH
2972#
2973# Since: 1.4
2974##
2975{ 'command': 'chardev-add', 'data': {'id' : 'str',
2976 'backend' : 'ChardevBackend' },
2977 'returns': 'ChardevReturn' }
2978
2979##
2980# @chardev-remove:
2981#
58fa4325 2982# Remove a character device backend
f1a1a356
GH
2983#
2984# @id: the chardev's ID, must exist and not be in use
2985#
2986# Returns: Nothing on success
2987#
2988# Since: 1.4
2989##
2990{ 'command': 'chardev-remove', 'data': {'id': 'str'} }
d1a0cf73
SB
2991
2992##
2993# @TpmModel:
2994#
2995# An enumeration of TPM models
2996#
2997# @tpm-tis: TPM TIS model
2998#
2999# Since: 1.5
3000##
3001{ 'enum': 'TpmModel', 'data': [ 'tpm-tis' ] }
3002
3003##
3004# @query-tpm-models:
3005#
3006# Return a list of supported TPM models
3007#
3008# Returns: a list of TpmModel
3009#
3010# Since: 1.5
3011##
3012{ 'command': 'query-tpm-models', 'returns': ['TpmModel'] }
3013
3014##
3015# @TpmType:
3016#
3017# An enumeration of TPM types
3018#
3019# @passthrough: TPM passthrough type
3020#
3021# Since: 1.5
3022##
3023{ 'enum': 'TpmType', 'data': [ 'passthrough' ] }
3024
3025##
3026# @query-tpm-types:
3027#
3028# Return a list of supported TPM types
3029#
3030# Returns: a list of TpmType
3031#
3032# Since: 1.5
3033##
3034{ 'command': 'query-tpm-types', 'returns': ['TpmType'] }
3035
3036##
3037# @TPMPassthroughOptions:
3038#
3039# Information about the TPM passthrough type
3040#
3041# @path: #optional string describing the path used for accessing the TPM device
3042#
3043# @cancel-path: #optional string showing the TPM's sysfs cancel file
3044# for cancellation of TPM commands while they are executing
3045#
3046# Since: 1.5
3047##
895a2a80 3048{ 'struct': 'TPMPassthroughOptions', 'data': { '*path' : 'str',
d1a0cf73
SB
3049 '*cancel-path' : 'str'} }
3050
3051##
3052# @TpmTypeOptions:
3053#
3054# A union referencing different TPM backend types' configuration options
3055#
88ca7bcf 3056# @passthrough: The configuration options for the TPM passthrough type
d1a0cf73
SB
3057#
3058# Since: 1.5
3059##
3060{ 'union': 'TpmTypeOptions',
88ca7bcf 3061 'data': { 'passthrough' : 'TPMPassthroughOptions' } }
d1a0cf73
SB
3062
3063##
3064# @TpmInfo:
3065#
3066# Information about the TPM
3067#
3068# @id: The Id of the TPM
3069#
3070# @model: The TPM frontend model
3071#
88ca7bcf 3072# @options: The TPM (backend) type configuration options
d1a0cf73
SB
3073#
3074# Since: 1.5
3075##
895a2a80 3076{ 'struct': 'TPMInfo',
d1a0cf73
SB
3077 'data': {'id': 'str',
3078 'model': 'TpmModel',
88ca7bcf 3079 'options': 'TpmTypeOptions' } }
d1a0cf73
SB
3080
3081##
3082# @query-tpm:
3083#
3084# Return information about the TPM device
3085#
3086# Returns: @TPMInfo on success
3087#
3088# Since: 1.5
3089##
3090{ 'command': 'query-tpm', 'returns': ['TPMInfo'] }
8ccbad5c
LE
3091
3092##
3093# @AcpiTableOptions
3094#
3095# Specify an ACPI table on the command line to load.
3096#
3097# At most one of @file and @data can be specified. The list of files specified
3098# by any one of them is loaded and concatenated in order. If both are omitted,
3099# @data is implied.
3100#
3101# Other fields / optargs can be used to override fields of the generic ACPI
3102# table header; refer to the ACPI specification 5.0, section 5.2.6 System
3103# Description Table Header. If a header field is not overridden, then the
3104# corresponding value from the concatenated blob is used (in case of @file), or
3105# it is filled in with a hard-coded value (in case of @data).
3106#
3107# String fields are copied into the matching ACPI member from lowest address
3108# upwards, and silently truncated / NUL-padded to length.
3109#
3110# @sig: #optional table signature / identifier (4 bytes)
3111#
3112# @rev: #optional table revision number (dependent on signature, 1 byte)
3113#
3114# @oem_id: #optional OEM identifier (6 bytes)
3115#
3116# @oem_table_id: #optional OEM table identifier (8 bytes)
3117#
3118# @oem_rev: #optional OEM-supplied revision number (4 bytes)
3119#
3120# @asl_compiler_id: #optional identifier of the utility that created the table
3121# (4 bytes)
3122#
3123# @asl_compiler_rev: #optional revision number of the utility that created the
3124# table (4 bytes)
3125#
3126# @file: #optional colon (:) separated list of pathnames to load and
3127# concatenate as table data. The resultant binary blob is expected to
3128# have an ACPI table header. At least one file is required. This field
3129# excludes @data.
3130#
3131# @data: #optional colon (:) separated list of pathnames to load and
3132# concatenate as table data. The resultant binary blob must not have an
3133# ACPI table header. At least one file is required. This field excludes
3134# @file.
3135#
3136# Since 1.5
3137##
895a2a80 3138{ 'struct': 'AcpiTableOptions',
8ccbad5c
LE
3139 'data': {
3140 '*sig': 'str',
3141 '*rev': 'uint8',
3142 '*oem_id': 'str',
3143 '*oem_table_id': 'str',
3144 '*oem_rev': 'uint32',
3145 '*asl_compiler_id': 'str',
3146 '*asl_compiler_rev': 'uint32',
3147 '*file': 'str',
3148 '*data': 'str' }}
1f8f987d
AK
3149
3150##
3151# @CommandLineParameterType:
3152#
3153# Possible types for an option parameter.
3154#
3155# @string: accepts a character string
3156#
3157# @boolean: accepts "on" or "off"
3158#
3159# @number: accepts a number
3160#
3161# @size: accepts a number followed by an optional suffix (K)ilo,
3162# (M)ega, (G)iga, (T)era
3163#
3164# Since 1.5
3165##
3166{ 'enum': 'CommandLineParameterType',
3167 'data': ['string', 'boolean', 'number', 'size'] }
3168
3169##
3170# @CommandLineParameterInfo:
3171#
3172# Details about a single parameter of a command line option.
3173#
3174# @name: parameter name
3175#
3176# @type: parameter @CommandLineParameterType
3177#
3178# @help: #optional human readable text string, not suitable for parsing.
3179#
e36af94f
CL
3180# @default: #optional default value string (since 2.1)
3181#
1f8f987d
AK
3182# Since 1.5
3183##
895a2a80 3184{ 'struct': 'CommandLineParameterInfo',
1f8f987d
AK
3185 'data': { 'name': 'str',
3186 'type': 'CommandLineParameterType',
e36af94f
CL
3187 '*help': 'str',
3188 '*default': 'str' } }
1f8f987d
AK
3189
3190##
3191# @CommandLineOptionInfo:
3192#
3193# Details about a command line option, including its list of parameter details
3194#
3195# @option: option name
3196#
3197# @parameters: an array of @CommandLineParameterInfo
3198#
3199# Since 1.5
3200##
895a2a80 3201{ 'struct': 'CommandLineOptionInfo',
1f8f987d
AK
3202 'data': { 'option': 'str', 'parameters': ['CommandLineParameterInfo'] } }
3203
3204##
3205# @query-command-line-options:
3206#
3207# Query command line option schema.
3208#
3209# @option: #optional option name
3210#
3211# Returns: list of @CommandLineOptionInfo for all options (or for the given
3212# @option). Returns an error if the given @option doesn't exist.
3213#
3214# Since 1.5
3215##
3216{'command': 'query-command-line-options', 'data': { '*option': 'str' },
3217 'returns': ['CommandLineOptionInfo'] }
8e8aba50
EH
3218
3219##
3220# @X86CPURegister32
3221#
3222# A X86 32-bit register
3223#
3224# Since: 1.5
3225##
3226{ 'enum': 'X86CPURegister32',
3227 'data': [ 'EAX', 'EBX', 'ECX', 'EDX', 'ESP', 'EBP', 'ESI', 'EDI' ] }
3228
3229##
3230# @X86CPUFeatureWordInfo
3231#
3232# Information about a X86 CPU feature word
3233#
3234# @cpuid-input-eax: Input EAX value for CPUID instruction for that feature word
3235#
3236# @cpuid-input-ecx: #optional Input ECX value for CPUID instruction for that
3237# feature word
3238#
3239# @cpuid-register: Output register containing the feature bits
3240#
3241# @features: value of output register, containing the feature bits
3242#
3243# Since: 1.5
3244##
895a2a80 3245{ 'struct': 'X86CPUFeatureWordInfo',
8e8aba50
EH
3246 'data': { 'cpuid-input-eax': 'int',
3247 '*cpuid-input-ecx': 'int',
3248 'cpuid-register': 'X86CPURegister32',
3249 'features': 'int' } }
b1be4280
AK
3250
3251##
3252# @RxState:
3253#
3254# Packets receiving state
3255#
3256# @normal: filter assigned packets according to the mac-table
3257#
3258# @none: don't receive any assigned packet
3259#
3260# @all: receive all assigned packets
3261#
3262# Since: 1.6
3263##
3264{ 'enum': 'RxState', 'data': [ 'normal', 'none', 'all' ] }
3265
3266##
3267# @RxFilterInfo:
3268#
3269# Rx-filter information for a NIC.
3270#
3271# @name: net client name
3272#
3273# @promiscuous: whether promiscuous mode is enabled
3274#
3275# @multicast: multicast receive state
3276#
3277# @unicast: unicast receive state
3278#
f7bc8ef8
AK
3279# @vlan: vlan receive state (Since 2.0)
3280#
b1be4280
AK
3281# @broadcast-allowed: whether to receive broadcast
3282#
3283# @multicast-overflow: multicast table is overflowed or not
3284#
3285# @unicast-overflow: unicast table is overflowed or not
3286#
3287# @main-mac: the main macaddr string
3288#
3289# @vlan-table: a list of active vlan id
3290#
3291# @unicast-table: a list of unicast macaddr string
3292#
3293# @multicast-table: a list of multicast macaddr string
3294#
3295# Since 1.6
3296##
3297
895a2a80 3298{ 'struct': 'RxFilterInfo',
b1be4280
AK
3299 'data': {
3300 'name': 'str',
3301 'promiscuous': 'bool',
3302 'multicast': 'RxState',
3303 'unicast': 'RxState',
f7bc8ef8 3304 'vlan': 'RxState',
b1be4280
AK
3305 'broadcast-allowed': 'bool',
3306 'multicast-overflow': 'bool',
3307 'unicast-overflow': 'bool',
3308 'main-mac': 'str',
3309 'vlan-table': ['int'],
3310 'unicast-table': ['str'],
3311 'multicast-table': ['str'] }}
3312
3313##
3314# @query-rx-filter:
3315#
3316# Return rx-filter information for all NICs (or for the given NIC).
3317#
3318# @name: #optional net client name
3319#
3320# Returns: list of @RxFilterInfo for all NICs (or for the given NIC).
3321# Returns an error if the given @name doesn't exist, or given
3322# NIC doesn't support rx-filter querying, or given net client
3323# isn't a NIC.
3324#
3325# Since: 1.6
3326##
3327{ 'command': 'query-rx-filter', 'data': { '*name': 'str' },
3328 'returns': ['RxFilterInfo'] }
d26c9a15 3329
031fa964
GH
3330##
3331# @InputButton
3332#
3333# Button of a pointer input device (mouse, tablet).
3334#
3335# Since: 2.0
3336##
3337{ 'enum' : 'InputButton',
3338 'data' : [ 'Left', 'Middle', 'Right', 'WheelUp', 'WheelDown' ] }
3339
3340##
3341# @InputButton
3342#
3343# Position axis of a pointer input device (mouse, tablet).
3344#
3345# Since: 2.0
3346##
3347{ 'enum' : 'InputAxis',
3348 'data' : [ 'X', 'Y' ] }
3349
3350##
3351# @InputKeyEvent
3352#
3353# Keyboard input event.
3354#
3355# @key: Which key this event is for.
3356# @down: True for key-down and false for key-up events.
3357#
3358# Since: 2.0
3359##
895a2a80 3360{ 'struct' : 'InputKeyEvent',
031fa964
GH
3361 'data' : { 'key' : 'KeyValue',
3362 'down' : 'bool' } }
3363
3364##
3365# @InputBtnEvent
3366#
3367# Pointer button input event.
3368#
3369# @button: Which button this event is for.
3370# @down: True for key-down and false for key-up events.
3371#
3372# Since: 2.0
3373##
895a2a80 3374{ 'struct' : 'InputBtnEvent',
031fa964
GH
3375 'data' : { 'button' : 'InputButton',
3376 'down' : 'bool' } }
3377
3378##
3379# @InputMoveEvent
3380#
3381# Pointer motion input event.
3382#
3383# @axis: Which axis is referenced by @value.
3384# @value: Pointer position. For absolute coordinates the
3385# valid range is 0 -> 0x7ffff
3386#
3387# Since: 2.0
3388##
895a2a80 3389{ 'struct' : 'InputMoveEvent',
031fa964
GH
3390 'data' : { 'axis' : 'InputAxis',
3391 'value' : 'int' } }
3392
3393##
3394# @InputEvent
3395#
3396# Input event union.
3397#
935fb915
AK
3398# @key: Input event of Keyboard
3399# @btn: Input event of pointer buttons
3400# @rel: Input event of relative pointer motion
3401# @abs: Input event of absolute pointer motion
3402#
031fa964
GH
3403# Since: 2.0
3404##
3405{ 'union' : 'InputEvent',
3406 'data' : { 'key' : 'InputKeyEvent',
3407 'btn' : 'InputBtnEvent',
3408 'rel' : 'InputMoveEvent',
3409 'abs' : 'InputMoveEvent' } }
0042109a 3410
50c6617f 3411##
df5b2adb 3412# @x-input-send-event
50c6617f
MT
3413#
3414# Send input event(s) to guest.
3415#
51fc4476 3416# @console: #optional console to send event(s) to.
4083ae31
GH
3417# This parameter can be used to send the input event to
3418# specific input devices in case (a) multiple input devices
3419# of the same kind are added to the virtual machine and (b)
3420# you have configured input routing (see docs/multiseat.txt)
3421# for those input devices. If input routing is not
3422# configured this parameter has no effect.
3423# If @console is missing, only devices that aren't associated
3424# with a console are admissible.
3425# If @console is specified, it must exist, and both devices
3426# associated with that console and devices not associated with a
3427# console are admissible, but the former take precedence.
3428
50c6617f
MT
3429#
3430# @events: List of InputEvent union.
3431#
3432# Returns: Nothing on success.
3433#
3434# Since: 2.2
3435#
df5b2adb
GH
3436# Note: this command is experimental, and not a stable API.
3437#
50c6617f 3438##
df5b2adb 3439{ 'command': 'x-input-send-event',
51fc4476 3440 'data': { '*console':'int', 'events': [ 'InputEvent' ] } }
50c6617f 3441
0042109a
WG
3442##
3443# @NumaOptions
3444#
3445# A discriminated record of NUMA options. (for OptsVisitor)
3446#
3447# Since 2.1
3448##
3449{ 'union': 'NumaOptions',
3450 'data': {
3451 'node': 'NumaNodeOptions' }}
3452
3453##
3454# @NumaNodeOptions
3455#
3456# Create a guest NUMA node. (for OptsVisitor)
3457#
3458# @nodeid: #optional NUMA node ID (increase by 1 from 0 if omitted)
3459#
3460# @cpus: #optional VCPUs belonging to this node (assign VCPUS round-robin
3461# if omitted)
3462#
7febe36f
PB
3463# @mem: #optional memory size of this node; mutually exclusive with @memdev.
3464# Equally divide total memory among nodes if both @mem and @memdev are
3465# omitted.
3466#
3467# @memdev: #optional memory backend object. If specified for one node,
3468# it must be specified for all nodes.
0042109a
WG
3469#
3470# Since: 2.1
3471##
895a2a80 3472{ 'struct': 'NumaNodeOptions',
0042109a
WG
3473 'data': {
3474 '*nodeid': 'uint16',
3475 '*cpus': ['uint16'],
7febe36f
PB
3476 '*mem': 'size',
3477 '*memdev': 'str' }}
4cf1b76b
HT
3478
3479##
3480# @HostMemPolicy
3481#
3482# Host memory policy types
3483#
3484# @default: restore default policy, remove any nondefault policy
3485#
3486# @preferred: set the preferred host nodes for allocation
3487#
3488# @bind: a strict policy that restricts memory allocation to the
3489# host nodes specified
3490#
3491# @interleave: memory allocations are interleaved across the set
3492# of host nodes specified
3493#
3494# Since 2.1
3495##
3496{ 'enum': 'HostMemPolicy',
3497 'data': [ 'default', 'preferred', 'bind', 'interleave' ] }
76b5d850
HT
3498
3499##
3500# @Memdev:
3501#
8f4e5ac3 3502# Information about memory backend
76b5d850 3503#
8f4e5ac3 3504# @size: memory backend size
76b5d850
HT
3505#
3506# @merge: enables or disables memory merge support
3507#
8f4e5ac3 3508# @dump: includes memory backend's memory in a core dump or not
76b5d850
HT
3509#
3510# @prealloc: enables or disables memory preallocation
3511#
3512# @host-nodes: host nodes for its memory policy
3513#
8f4e5ac3 3514# @policy: memory policy of memory backend
76b5d850
HT
3515#
3516# Since: 2.1
3517##
3518
895a2a80 3519{ 'struct': 'Memdev',
76b5d850
HT
3520 'data': {
3521 'size': 'size',
3522 'merge': 'bool',
3523 'dump': 'bool',
3524 'prealloc': 'bool',
3525 'host-nodes': ['uint16'],
3526 'policy': 'HostMemPolicy' }}
3527
3528##
3529# @query-memdev:
3530#
8f4e5ac3 3531# Returns information for all memory backends.
76b5d850
HT
3532#
3533# Returns: a list of @Memdev.
3534#
3535# Since: 2.1
3536##
3537{ 'command': 'query-memdev', 'returns': ['Memdev'] }
8f4e5ac3
IM
3538
3539##
6f2e2730
IM
3540# @PCDIMMDeviceInfo:
3541#
3542# PCDIMMDevice state information
3543#
3544# @id: #optional device's ID
3545#
3546# @addr: physical address, where device is mapped
3547#
3548# @size: size of memory that the device provides
3549#
3550# @slot: slot number at which device is plugged in
3551#
3552# @node: NUMA node number where device is plugged in
3553#
3554# @memdev: memory backend linked with device
3555#
3556# @hotplugged: true if device was hotplugged
3557#
3558# @hotpluggable: true if device if could be added/removed while machine is running
3559#
3560# Since: 2.1
3561##
895a2a80 3562{ 'struct': 'PCDIMMDeviceInfo',
6f2e2730
IM
3563 'data': { '*id': 'str',
3564 'addr': 'int',
3565 'size': 'int',
3566 'slot': 'int',
3567 'node': 'int',
3568 'memdev': 'str',
3569 'hotplugged': 'bool',
3570 'hotpluggable': 'bool'
3571 }
3572}
3573
3574##
3575# @MemoryDeviceInfo:
3576#
3577# Union containing information about a memory device
3578#
3579# Since: 2.1
3580##
3581{ 'union': 'MemoryDeviceInfo', 'data': {'dimm': 'PCDIMMDeviceInfo'} }
3582
3583##
3584# @query-memory-devices
3585#
3586# Lists available memory devices and their state
3587#
3588# Since: 2.1
3589##
3590{ 'command': 'query-memory-devices', 'returns': ['MemoryDeviceInfo'] }
521b3673
IM
3591
3592## @ACPISlotType
3593#
3594# @DIMM: memory slot
3595#
3596{ 'enum': 'ACPISlotType', 'data': [ 'DIMM' ] }
3597
3598## @ACPIOSTInfo
3599#
3600# OSPM Status Indication for a device
3601# For description of possible values of @source and @status fields
3602# see "_OST (OSPM Status Indication)" chapter of ACPI5.0 spec.
3603#
3604# @device: #optional device ID associated with slot
3605#
3606# @slot: slot ID, unique per slot of a given @slot-type
3607#
3608# @slot-type: type of the slot
3609#
3610# @source: an integer containing the source event
3611#
3612# @status: an integer containing the status code
3613#
3614# Since: 2.1
3615##
895a2a80 3616{ 'struct': 'ACPIOSTInfo',
521b3673
IM
3617 'data' : { '*device': 'str',
3618 'slot': 'str',
3619 'slot-type': 'ACPISlotType',
3620 'source': 'int',
3621 'status': 'int' } }
02419bcb
IM
3622
3623##
3624# @query-acpi-ospm-status
3625#
3626# Lists ACPI OSPM status of ACPI device objects,
3627# which might be reported via _OST method
3628#
3629# Since: 2.1
3630##
3631{ 'command': 'query-acpi-ospm-status', 'returns': ['ACPIOSTInfo'] }
f668470f 3632
99eaf09c
WX
3633##
3634# @WatchdogExpirationAction
3635#
3636# An enumeration of the actions taken when the watchdog device's timer is
3637# expired
3638#
3639# @reset: system resets
3640#
3641# @shutdown: system shutdown, note that it is similar to @powerdown, which
3642# tries to set to system status and notify guest
3643#
3644# @poweroff: system poweroff, the emulator program exits
3645#
3646# @pause: system pauses, similar to @stop
3647#
3648# @debug: system enters debug state
3649#
3650# @none: nothing is done
3651#
3652# Since: 2.1
3653##
3654{ 'enum': 'WatchdogExpirationAction',
3655 'data': [ 'reset', 'shutdown', 'poweroff', 'pause', 'debug', 'none' ] }
3656
5a2d2cbd
WX
3657##
3658# @IoOperationType
3659#
3660# An enumeration of the I/O operation types
3661#
3662# @read: read operation
3663#
3664# @write: write operation
3665#
3666# Since: 2.1
3667##
3668{ 'enum': 'IoOperationType',
3669 'data': [ 'read', 'write' ] }
3670
3a449690
WX
3671##
3672# @GuestPanicAction
3673#
3674# An enumeration of the actions taken when guest OS panic is detected
3675#
3676# @pause: system pauses
3677#
3678# Since: 2.1
3679##
3680{ 'enum': 'GuestPanicAction',
3681 'data': [ 'pause' ] }
f2ae8abf
MT
3682
3683##
3684# @rtc-reset-reinjection
3685#
3686# This command will reset the RTC interrupt reinjection backlog.
3687# Can be used if another mechanism to synchronize guest time
3688# is in effect, for example QEMU guest agent's guest-set-time
3689# command.
3690#
3691# Since: 2.1
3692##
3693{ 'command': 'rtc-reset-reinjection' }