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