5 # QAPI common definitions
6 { 'include': 'qapi/common.json' }
8 # QAPI crypto definitions
9 { 'include': 'qapi/crypto.json' }
11 # QAPI block definitions
12 { 'include': 'qapi/block.json' }
14 # QAPI event definitions
15 { 'include': 'qapi/event.json' }
18 { 'include': 'qapi/trace.json' }
21 { 'include': 'qapi/introspect.json' }
26 # Policy for handling lost ticks in timer devices.
28 # @discard: throw away the missed tick(s) and continue with future injection
29 # normally. Guest time may be delayed, unless the OS has explicit
30 # handling of lost ticks
32 # @delay: continue to deliver ticks at the normal rate. Guest time will be
33 # delayed due to the late tick
35 # @merge: merge the missed tick(s) into one tick and inject. Guest time
36 # may be delayed, depending on how the OS reacts to the merging
39 # @slew: deliver ticks at a higher rate to catch up with the missed tick. The
40 # guest time should not be delayed once catchup is complete.
44 { 'enum': 'LostTickPolicy',
45 'data': ['discard', 'delay', 'merge', 'slew' ] }
49 # Allow client connections for VNC, Spice and socket based
50 # character devices to be passed in to QEMU via SCM_RIGHTS.
52 # @protocol: protocol name. Valid names are "vnc", "spice" or the
53 # name of a character device (eg. from -chardev id=XXXX)
55 # @fdname: file descriptor name previously passed via 'getfd' command
57 # @skipauth: #optional whether to skip authentication. Only applies
58 # to "vnc" and "spice" protocols
60 # @tls: #optional whether to perform TLS. Only applies to the "spice"
63 # Returns: nothing on success.
67 { 'command': 'add_client',
68 'data': { 'protocol': 'str', 'fdname': 'str', '*skipauth': 'bool',
74 # Guest name information.
76 # @name: #optional The name of the guest
80 { 'struct': 'NameInfo', 'data': {'*name': 'str'} }
85 # Return the name information of a guest.
87 # Returns: @NameInfo of the guest
91 { 'command': 'query-name', 'returns': 'NameInfo' }
96 # Information about support for KVM acceleration
98 # @enabled: true if KVM acceleration is active
100 # @present: true if KVM acceleration is built into this executable
104 { 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} }
109 # Returns information about KVM acceleration
115 { 'command': 'query-kvm', 'returns': 'KvmInfo' }
120 # An enumeration of VM run states.
122 # @debug: QEMU is running on a debugger
124 # @finish-migrate: guest is paused to finish the migration process
126 # @inmigrate: guest is paused waiting for an incoming migration. Note
127 # that this state does not tell whether the machine will start at the
128 # end of the migration. This depends on the command-line -S option and
129 # any invocation of 'stop' or 'cont' that has happened since QEMU was
132 # @internal-error: An internal error that prevents further guest execution
135 # @io-error: the last IOP has failed and the device is configured to pause
138 # @paused: guest has been paused via the 'stop' command
140 # @postmigrate: guest is paused following a successful 'migrate'
142 # @prelaunch: QEMU was started with -S and guest has not started
144 # @restore-vm: guest is paused to restore VM state
146 # @running: guest is actively running
148 # @save-vm: guest is paused to save the VM state
150 # @shutdown: guest is shut down (and -no-shutdown is in use)
152 # @suspended: guest is suspended (ACPI S3)
154 # @watchdog: the watchdog action is configured to pause and has been triggered
156 # @guest-panicked: guest has been panicked as a result of guest OS panic
158 { 'enum': 'RunState',
159 'data': [ 'debug', 'inmigrate', 'internal-error', 'io-error', 'paused',
160 'postmigrate', 'prelaunch', 'finish-migrate', 'restore-vm',
161 'running', 'save-vm', 'shutdown', 'suspended', 'watchdog',
167 # Information about VCPU run state
169 # @running: true if all VCPUs are runnable, false if not runnable
171 # @singlestep: true if VCPUs are in single-step mode
173 # @status: the virtual machine @RunState
177 # Notes: @singlestep is enabled through the GDB stub
179 { 'struct': 'StatusInfo',
180 'data': {'running': 'bool', 'singlestep': 'bool', 'status': 'RunState'} }
185 # Query the run status of all VCPUs
187 # Returns: @StatusInfo reflecting all VCPUs
191 { 'command': 'query-status', 'returns': 'StatusInfo' }
196 # Guest UUID information.
198 # @UUID: the UUID of the guest
202 # Notes: If no UUID was specified for the guest, a null UUID is returned.
204 { 'struct': 'UuidInfo', 'data': {'UUID': 'str'} }
209 # Query the guest UUID information.
211 # Returns: The @UuidInfo for the guest
215 { 'command': 'query-uuid', 'returns': 'UuidInfo' }
220 # Information about a character device.
222 # @label: the label of the character device
224 # @filename: the filename of the character device
226 # @frontend-open: shows whether the frontend device attached to this backend
227 # (eg. with the chardev=... option) is in open or closed state
230 # Notes: @filename is encoded using the QEMU command line character device
231 # encoding. See the QEMU man page for details.
235 { 'struct': 'ChardevInfo', 'data': {'label': 'str',
237 'frontend-open': 'bool'} }
242 # Returns information about current character devices.
244 # Returns: a list of @ChardevInfo
248 { 'command': 'query-chardev', 'returns': ['ChardevInfo'] }
251 # @ChardevBackendInfo:
253 # Information about a character device backend
255 # @name: The backend name
259 { 'struct': 'ChardevBackendInfo', 'data': {'name': 'str'} }
262 # @query-chardev-backends:
264 # Returns information about character device backends.
266 # Returns: a list of @ChardevBackendInfo
270 { 'command': 'query-chardev-backends', 'returns': ['ChardevBackendInfo'] }
275 # An enumeration of data format.
277 # @utf8: Data is a UTF-8 string (RFC 3629)
279 # @base64: Data is Base64 encoded binary (RFC 3548)
283 { 'enum': 'DataFormat',
284 'data': [ 'utf8', 'base64' ] }
289 # Write to a ring buffer character device.
291 # @device: the ring buffer character device name
293 # @data: data to write
295 # @format: #optional data encoding (default 'utf8').
296 # - base64: data must be base64 encoded text. Its binary
297 # decoding gets written.
298 # - utf8: data's UTF-8 encoding is written
299 # - data itself is always Unicode regardless of format, like
302 # Returns: Nothing on success
306 { 'command': 'ringbuf-write',
307 'data': {'device': 'str', 'data': 'str',
308 '*format': 'DataFormat'} }
313 # Read from a ring buffer character device.
315 # @device: the ring buffer character device name
317 # @size: how many bytes to read at most
319 # @format: #optional data encoding (default 'utf8').
320 # - base64: the data read is returned in base64 encoding.
321 # - utf8: the data read is interpreted as UTF-8.
322 # Bug: can screw up when the buffer contains invalid UTF-8
323 # sequences, NUL characters, after the ring buffer lost
324 # data, and when reading stops because the size limit is
326 # - The return value is always Unicode regardless of format,
327 # like any other string.
329 # Returns: data read from the device
333 { 'command': 'ringbuf-read',
334 'data': {'device': 'str', 'size': 'int', '*format': 'DataFormat'},
340 # Information about a QMP event
342 # @name: The event name
346 { 'struct': 'EventInfo', 'data': {'name': 'str'} }
351 # Return a list of supported QMP events by this server
353 # Returns: A list of @EventInfo for all supported events
357 { 'command': 'query-events', 'returns': ['EventInfo'] }
362 # Detailed migration status.
364 # @transferred: amount of bytes already transferred to the target VM
366 # @remaining: amount of bytes remaining to be transferred to the target VM
368 # @total: total amount of bytes involved in the migration process
370 # @duplicate: number of duplicate (zero) pages (since 1.2)
372 # @skipped: number of skipped zero pages (since 1.5)
374 # @normal : number of normal pages (since 1.2)
376 # @normal-bytes: number of normal bytes sent (since 1.2)
378 # @dirty-pages-rate: number of pages dirtied by second by the
381 # @mbps: throughput in megabits/sec. (since 1.6)
383 # @dirty-sync-count: number of times that dirty ram was synchronized (since 2.1)
387 { 'struct': 'MigrationStats',
388 'data': {'transferred': 'int', 'remaining': 'int', 'total': 'int' ,
389 'duplicate': 'int', 'skipped': 'int', 'normal': 'int',
390 'normal-bytes': 'int', 'dirty-pages-rate' : 'int',
391 'mbps' : 'number', 'dirty-sync-count' : 'int' } }
396 # Detailed XBZRLE migration cache statistics
398 # @cache-size: XBZRLE cache size
400 # @bytes: amount of bytes already transferred to the target VM
402 # @pages: amount of pages transferred to the target VM
404 # @cache-miss: number of cache miss
406 # @cache-miss-rate: rate of cache miss (since 2.1)
408 # @overflow: number of overflows
412 { 'struct': 'XBZRLECacheStats',
413 'data': {'cache-size': 'int', 'bytes': 'int', 'pages': 'int',
414 'cache-miss': 'int', 'cache-miss-rate': 'number',
415 'overflow': 'int' } }
419 # An enumeration of migration status.
421 # @none: no migration has ever happened.
423 # @setup: migration process has been initiated.
425 # @cancelling: in the process of cancelling migration.
427 # @cancelled: cancelling migration is finished.
429 # @active: in the process of doing migration.
431 # @postcopy-active: like active, but now in postcopy mode. (since 2.5)
433 # @completed: migration is finished.
435 # @failed: some error occurred during migration process.
440 { 'enum': 'MigrationStatus',
441 'data': [ 'none', 'setup', 'cancelling', 'cancelled',
442 'active', 'postcopy-active', 'completed', 'failed' ] }
447 # Information about current migration process.
449 # @status: #optional @MigrationStatus describing the current migration status.
450 # If this field is not returned, no migration process
453 # @ram: #optional @MigrationStats containing detailed migration
454 # status, only returned if status is 'active' or
455 # 'completed'(since 1.2)
457 # @disk: #optional @MigrationStats containing detailed disk migration
458 # status, only returned if status is 'active' and it is a block
461 # @xbzrle-cache: #optional @XBZRLECacheStats containing detailed XBZRLE
462 # migration statistics, only returned if XBZRLE feature is on and
463 # status is 'active' or 'completed' (since 1.2)
465 # @total-time: #optional total amount of milliseconds since migration started.
466 # If migration has ended, it returns the total migration
469 # @downtime: #optional only present when migration finishes correctly
470 # total downtime in milliseconds for the guest.
473 # @expected-downtime: #optional only present while migration is active
474 # expected downtime in milliseconds for the guest in last walk
475 # of the dirty bitmap. (since 1.3)
477 # @setup-time: #optional amount of setup time in milliseconds _before_ the
478 # iterations begin but _after_ the QMP command is issued. This is designed
479 # to provide an accounting of any activities (such as RDMA pinning) which
480 # may be expensive, but do not actually occur during the iterative
481 # migration rounds themselves. (since 1.6)
483 # @cpu-throttle-percentage: #optional percentage of time guest cpus are being
484 # throttled during auto-converge. This is only present when auto-converge
485 # has started throttling guest cpus. (Since 2.7)
487 # @error-desc: #optional the human readable error description string, when
488 # @status is 'failed'. Clients should not attempt to parse the
489 # error strings. (Since 2.6)
493 { 'struct': 'MigrationInfo',
494 'data': {'*status': 'MigrationStatus', '*ram': 'MigrationStats',
495 '*disk': 'MigrationStats',
496 '*xbzrle-cache': 'XBZRLECacheStats',
497 '*total-time': 'int',
498 '*expected-downtime': 'int',
500 '*setup-time': 'int',
501 '*cpu-throttle-percentage': 'int',
502 '*error-desc': 'str'} }
507 # Returns information about current migration process.
509 # Returns: @MigrationInfo
513 { 'command': 'query-migrate', 'returns': 'MigrationInfo' }
516 # @MigrationCapability
518 # Migration capabilities enumeration
520 # @xbzrle: Migration supports xbzrle (Xor Based Zero Run Length Encoding).
521 # This feature allows us to minimize migration traffic for certain work
522 # loads, by sending compressed difference of the pages
524 # @rdma-pin-all: Controls whether or not the entire VM memory footprint is
525 # mlock()'d on demand or all at once. Refer to docs/rdma.txt for usage.
526 # Disabled by default. (since 2.0)
528 # @zero-blocks: During storage migration encode blocks of zeroes efficiently. This
529 # essentially saves 1MB of zeroes per block on the wire. Enabling requires
530 # source and target VM to support this feature. To enable it is sufficient
531 # to enable the capability on the source VM. The feature is disabled by
532 # default. (since 1.6)
534 # @compress: Use multiple compression threads to accelerate live migration.
535 # This feature can help to reduce the migration traffic, by sending
536 # compressed pages. Please note that if compress and xbzrle are both
537 # on, compress only takes effect in the ram bulk stage, after that,
538 # it will be disabled and only xbzrle takes effect, this can help to
539 # minimize migration traffic. The feature is disabled by default.
542 # @events: generate events for each migration state change
545 # @auto-converge: If enabled, QEMU will automatically throttle down the guest
546 # to speed up convergence of RAM migration. (since 1.6)
548 # @postcopy-ram: Start executing on the migration target before all of RAM has
549 # been migrated, pulling the remaining pages along as needed. NOTE: If
550 # the migration fails during postcopy the VM will fail. (since 2.6)
554 { 'enum': 'MigrationCapability',
555 'data': ['xbzrle', 'rdma-pin-all', 'auto-converge', 'zero-blocks',
556 'compress', 'events', 'postcopy-ram'] }
559 # @MigrationCapabilityStatus
561 # Migration capability information
563 # @capability: capability enum
565 # @state: capability state bool
569 { 'struct': 'MigrationCapabilityStatus',
570 'data': { 'capability' : 'MigrationCapability', 'state' : 'bool' } }
573 # @migrate-set-capabilities
575 # Enable/Disable the following migration capabilities (like xbzrle)
577 # @capabilities: json array of capability modifications to make
581 { 'command': 'migrate-set-capabilities',
582 'data': { 'capabilities': ['MigrationCapabilityStatus'] } }
585 # @query-migrate-capabilities
587 # Returns information about the current migration capabilities status
589 # Returns: @MigrationCapabilitiesStatus
593 { 'command': 'query-migrate-capabilities', 'returns': ['MigrationCapabilityStatus']}
595 # @MigrationParameter
597 # Migration parameters enumeration
599 # @compress-level: Set the compression level to be used in live migration,
600 # the compression level is an integer between 0 and 9, where 0 means
601 # no compression, 1 means the best compression speed, and 9 means best
602 # compression ratio which will consume more CPU.
604 # @compress-threads: Set compression thread count to be used in live migration,
605 # the compression thread count is an integer between 1 and 255.
607 # @decompress-threads: Set decompression thread count to be used in live
608 # migration, the decompression thread count is an integer between 1
609 # and 255. Usually, decompression is at least 4 times as fast as
610 # compression, so set the decompress-threads to the number about 1/4
611 # of compress-threads is adequate.
613 # @cpu-throttle-initial: Initial percentage of time guest cpus are throttled
614 # when migration auto-converge is activated. The
615 # default value is 20. (Since 2.7)
617 # @cpu-throttle-increment: throttle percentage increase each time
618 # auto-converge detects that migration is not making
619 # progress. The default value is 10. (Since 2.7)
621 # @tls-creds: ID of the 'tls-creds' object that provides credentials for
622 # establishing a TLS connection over the migration data channel.
623 # On the outgoing side of the migration, the credentials must
624 # be for a 'client' endpoint, while for the incoming side the
625 # credentials must be for a 'server' endpoint. Setting this
626 # will enable TLS for all migrations. The default is unset,
627 # resulting in unsecured migration at the QEMU level. (Since 2.7)
629 # @tls-hostname: hostname of the target host for the migration. This is
630 # required when using x509 based TLS credentials and the
631 # migration URI does not already include a hostname. For
632 # example if using fd: or exec: based migration, the
633 # hostname must be provided so that the server's x509
634 # certificate identity canbe validated. (Since 2.7)
638 { 'enum': 'MigrationParameter',
639 'data': ['compress-level', 'compress-threads', 'decompress-threads',
640 'cpu-throttle-initial', 'cpu-throttle-increment',
641 'tls-creds', 'tls-hostname'] }
644 # @migrate-set-parameters
646 # Set the following migration parameters
648 # @compress-level: compression level
650 # @compress-threads: compression thread count
652 # @decompress-threads: decompression thread count
654 # @cpu-throttle-initial: Initial percentage of time guest cpus are throttled
655 # when migration auto-converge is activated. The
656 # default value is 20. (Since 2.7)
658 # @cpu-throttle-increment: throttle percentage increase each time
659 # auto-converge detects that migration is not making
660 # progress. The default value is 10. (Since 2.7)
662 # @tls-creds: ID of the 'tls-creds' object that provides credentials for
663 # establishing a TLS connection over the migration data channel.
664 # On the outgoing side of the migration, the credentials must
665 # be for a 'client' endpoint, while for the incoming side the
666 # credentials must be for a 'server' endpoint. Setting this
667 # will enable TLS for all migrations. The default is unset,
668 # resulting in unsecured migration at the QEMU level. (Since 2.7)
670 # @tls-hostname: hostname of the target host for the migration. This is
671 # required when using x509 based TLS credentials and the
672 # migration URI does not already include a hostname. For
673 # example if using fd: or exec: based migration, the
674 # hostname must be provided so that the server's x509
675 # certificate identity canbe validated. (Since 2.7)
679 { 'command': 'migrate-set-parameters',
680 'data': { '*compress-level': 'int',
681 '*compress-threads': 'int',
682 '*decompress-threads': 'int',
683 '*cpu-throttle-initial': 'int',
684 '*cpu-throttle-increment': 'int',
686 '*tls-hostname': 'str'} }
689 # @MigrationParameters
691 # @compress-level: compression level
693 # @compress-threads: compression thread count
695 # @decompress-threads: decompression thread count
697 # @cpu-throttle-initial: Initial percentage of time guest cpus are throttled
698 # when migration auto-converge is activated. The
699 # default value is 20. (Since 2.7)
701 # @cpu-throttle-increment: throttle percentage increase each time
702 # auto-converge detects that migration is not making
703 # progress. The default value is 10. (Since 2.7)
705 # @tls-creds: ID of the 'tls-creds' object that provides credentials for
706 # establishing a TLS connection over the migration data channel.
707 # On the outgoing side of the migration, the credentials must
708 # be for a 'client' endpoint, while for the incoming side the
709 # credentials must be for a 'server' endpoint. Setting this
710 # will enable TLS for all migrations. The default is unset,
711 # resulting in unsecured migration at the QEMU level. (Since 2.6)
713 # @tls-hostname: hostname of the target host for the migration. This is
714 # required when using x509 based TLS credentials and the
715 # migration URI does not already include a hostname. For
716 # example if using fd: or exec: based migration, the
717 # hostname must be provided so that the server's x509
718 # certificate identity canbe validated. (Since 2.6)
722 { 'struct': 'MigrationParameters',
723 'data': { 'compress-level': 'int',
724 'compress-threads': 'int',
725 'decompress-threads': 'int',
726 'cpu-throttle-initial': 'int',
727 'cpu-throttle-increment': 'int',
729 'tls-hostname': 'str'} }
731 # @query-migrate-parameters
733 # Returns information about the current migration parameters
735 # Returns: @MigrationParameters
739 { 'command': 'query-migrate-parameters',
740 'returns': 'MigrationParameters' }
743 # @client_migrate_info
745 # Set migration information for remote display. This makes the server
746 # ask the client to automatically reconnect using the new parameters
747 # once migration finished successfully. Only implemented for SPICE.
749 # @protocol: must be "spice"
750 # @hostname: migration target hostname
751 # @port: #optional spice tcp port for plaintext channels
752 # @tls-port: #optional spice tcp port for tls-secured channels
753 # @cert-subject: #optional server certificate subject
757 { 'command': 'client_migrate_info',
758 'data': { 'protocol': 'str', 'hostname': 'str', '*port': 'int',
759 '*tls-port': 'int', '*cert-subject': 'str' } }
762 # @migrate-start-postcopy
764 # Followup to a migration command to switch the migration to postcopy mode.
765 # The postcopy-ram capability must be set before the original migration
769 { 'command': 'migrate-start-postcopy' }
774 # Information about a mouse device.
776 # @name: the name of the mouse device
778 # @index: the index of the mouse device
780 # @current: true if this device is currently receiving mouse events
782 # @absolute: true if this device supports absolute coordinates as input
786 { 'struct': 'MouseInfo',
787 'data': {'name': 'str', 'index': 'int', 'current': 'bool',
788 'absolute': 'bool'} }
793 # Returns information about each active mouse device
795 # Returns: a list of @MouseInfo for each device
799 { 'command': 'query-mice', 'returns': ['MouseInfo'] }
804 # An enumeration of cpu types that enable additional information during
809 { 'enum': 'CpuInfoArch',
810 'data': ['x86', 'sparc', 'ppc', 'mips', 'tricore', 'other' ] }
815 # Information about a virtual CPU
817 # @CPU: the index of the virtual CPU
819 # @current: this only exists for backwards compatibility and should be ignored
821 # @halted: true if the virtual CPU is in the halt state. Halt usually refers
822 # to a processor specific low power mode.
824 # @qom_path: path to the CPU object in the QOM tree (since 2.4)
826 # @thread_id: ID of the underlying host thread
828 # @arch: architecture of the cpu, which determines which additional fields
829 # will be listed (since 2.6)
833 # Notes: @halted is a transient state that changes frequently. By the time the
834 # data is sent to the client, the guest may no longer be halted.
836 { 'union': 'CpuInfo',
837 'base': {'CPU': 'int', 'current': 'bool', 'halted': 'bool',
838 'qom_path': 'str', 'thread_id': 'int', 'arch': 'CpuInfoArch' },
839 'discriminator': 'arch',
840 'data': { 'x86': 'CpuInfoX86',
841 'sparc': 'CpuInfoSPARC',
843 'mips': 'CpuInfoMIPS',
844 'tricore': 'CpuInfoTricore',
845 'other': 'CpuInfoOther' } }
850 # Additional information about a virtual i386 or x86_64 CPU
852 # @pc: the 64-bit instruction pointer
856 { 'struct': 'CpuInfoX86', 'data': { 'pc': 'int' } }
861 # Additional information about a virtual SPARC CPU
863 # @pc: the PC component of the instruction pointer
865 # @npc: the NPC component of the instruction pointer
869 { 'struct': 'CpuInfoSPARC', 'data': { 'pc': 'int', 'npc': 'int' } }
874 # Additional information about a virtual PPC CPU
876 # @nip: the instruction pointer
880 { 'struct': 'CpuInfoPPC', 'data': { 'nip': 'int' } }
885 # Additional information about a virtual MIPS CPU
887 # @PC: the instruction pointer
891 { 'struct': 'CpuInfoMIPS', 'data': { 'PC': 'int' } }
896 # Additional information about a virtual Tricore CPU
898 # @PC: the instruction pointer
902 { 'struct': 'CpuInfoTricore', 'data': { 'PC': 'int' } }
907 # No additional information is available about the virtual CPU
912 { 'struct': 'CpuInfoOther', 'data': { } }
917 # Returns a list of information about each virtual CPU.
919 # Returns: a list of @CpuInfo for each virtual CPU
923 { 'command': 'query-cpus', 'returns': ['CpuInfo'] }
928 # Information about an iothread
930 # @id: the identifier of the iothread
932 # @thread-id: ID of the underlying host thread
936 { 'struct': 'IOThreadInfo',
937 'data': {'id': 'str', 'thread-id': 'int'} }
942 # Returns a list of information about each iothread.
944 # Note this list excludes the QEMU main loop thread, which is not declared
945 # using the -object iothread command-line option. It is always the main thread
948 # Returns: a list of @IOThreadInfo for each iothread
952 { 'command': 'query-iothreads', 'returns': ['IOThreadInfo'] }
955 # @NetworkAddressFamily
957 # The network address family
965 # @unknown: otherwise
969 { 'enum': 'NetworkAddressFamily',
970 'data': [ 'ipv4', 'ipv6', 'unix', 'unknown' ] }
975 # The basic information for vnc network connection
979 # @service: The service name of the vnc port. This may depend on the host
980 # system's service database so symbolic names should not be relied
983 # @family: address family
985 # @websocket: true in case the socket is a websocket (since 2.3).
989 { 'struct': 'VncBasicInfo',
990 'data': { 'host': 'str',
992 'family': 'NetworkAddressFamily',
993 'websocket': 'bool' } }
998 # The network connection information for server
1000 # @auth: #optional, authentication method
1004 { 'struct': 'VncServerInfo',
1005 'base': 'VncBasicInfo',
1006 'data': { '*auth': 'str' } }
1011 # Information about a connected VNC client.
1013 # @x509_dname: #optional If x509 authentication is in use, the Distinguished
1014 # Name of the client.
1016 # @sasl_username: #optional If SASL authentication is in use, the SASL username
1017 # used for authentication.
1021 { 'struct': 'VncClientInfo',
1022 'base': 'VncBasicInfo',
1023 'data': { '*x509_dname': 'str', '*sasl_username': 'str' } }
1028 # Information about the VNC session.
1030 # @enabled: true if the VNC server is enabled, false otherwise
1032 # @host: #optional The hostname the VNC server is bound to. This depends on
1033 # the name resolution on the host and may be an IP address.
1035 # @family: #optional 'ipv6' if the host is listening for IPv6 connections
1036 # 'ipv4' if the host is listening for IPv4 connections
1037 # 'unix' if the host is listening on a unix domain socket
1038 # 'unknown' otherwise
1040 # @service: #optional The service name of the server's port. This may depends
1041 # on the host system's service database so symbolic names should not
1044 # @auth: #optional the current authentication type used by the server
1045 # 'none' if no authentication is being used
1046 # 'vnc' if VNC authentication is being used
1047 # 'vencrypt+plain' if VEncrypt is used with plain text authentication
1048 # 'vencrypt+tls+none' if VEncrypt is used with TLS and no authentication
1049 # 'vencrypt+tls+vnc' if VEncrypt is used with TLS and VNC authentication
1050 # 'vencrypt+tls+plain' if VEncrypt is used with TLS and plain text auth
1051 # 'vencrypt+x509+none' if VEncrypt is used with x509 and no auth
1052 # 'vencrypt+x509+vnc' if VEncrypt is used with x509 and VNC auth
1053 # 'vencrypt+x509+plain' if VEncrypt is used with x509 and plain text auth
1054 # 'vencrypt+tls+sasl' if VEncrypt is used with TLS and SASL auth
1055 # 'vencrypt+x509+sasl' if VEncrypt is used with x509 and SASL auth
1057 # @clients: a list of @VncClientInfo of all currently connected clients
1061 { 'struct': 'VncInfo',
1062 'data': {'enabled': 'bool', '*host': 'str',
1063 '*family': 'NetworkAddressFamily',
1064 '*service': 'str', '*auth': 'str', '*clients': ['VncClientInfo']} }
1069 # vnc primary authentication method.
1073 { 'enum': 'VncPrimaryAuth',
1074 'data': [ 'none', 'vnc', 'ra2', 'ra2ne', 'tight', 'ultra',
1075 'tls', 'vencrypt', 'sasl' ] }
1078 # @VncVencryptSubAuth:
1080 # vnc sub authentication method with vencrypt.
1084 { 'enum': 'VncVencryptSubAuth',
1086 'tls-none', 'x509-none',
1087 'tls-vnc', 'x509-vnc',
1088 'tls-plain', 'x509-plain',
1089 'tls-sasl', 'x509-sasl' ] }
1094 # Information about a vnc server
1096 # @id: vnc server name.
1098 # @server: A list of @VncBasincInfo describing all listening sockets.
1099 # The list can be empty (in case the vnc server is disabled).
1100 # It also may have multiple entries: normal + websocket,
1101 # possibly also ipv4 + ipv6 in the future.
1103 # @clients: A list of @VncClientInfo of all currently connected clients.
1104 # The list can be empty, for obvious reasons.
1106 # @auth: The current authentication type used by the server
1108 # @vencrypt: #optional The vencrypt sub authentication type used by the server,
1109 # only specified in case auth == vencrypt.
1111 # @display: #optional The display device the vnc server is linked to.
1115 { 'struct': 'VncInfo2',
1116 'data': { 'id' : 'str',
1117 'server' : ['VncBasicInfo'],
1118 'clients' : ['VncClientInfo'],
1119 'auth' : 'VncPrimaryAuth',
1120 '*vencrypt' : 'VncVencryptSubAuth',
1121 '*display' : 'str' } }
1126 # Returns information about the current VNC server
1132 { 'command': 'query-vnc', 'returns': 'VncInfo' }
1135 # @query-vnc-servers:
1137 # Returns a list of vnc servers. The list can be empty.
1139 # Returns: a list of @VncInfo2
1143 { 'command': 'query-vnc-servers', 'returns': ['VncInfo2'] }
1148 # The basic information for SPICE network connection
1152 # @port: port number
1154 # @family: address family
1158 { 'struct': 'SpiceBasicInfo',
1159 'data': { 'host': 'str',
1161 'family': 'NetworkAddressFamily' } }
1166 # Information about a SPICE server
1168 # @auth: #optional, authentication method
1172 { 'struct': 'SpiceServerInfo',
1173 'base': 'SpiceBasicInfo',
1174 'data': { '*auth': 'str' } }
1179 # Information about a SPICE client channel.
1181 # @connection-id: SPICE connection id number. All channels with the same id
1182 # belong to the same SPICE session.
1184 # @channel-type: SPICE channel type number. "1" is the main control
1185 # channel, filter for this one if you want to track spice
1188 # @channel-id: SPICE channel ID number. Usually "0", might be different when
1189 # multiple channels of the same type exist, such as multiple
1190 # display channels in a multihead setup
1192 # @tls: true if the channel is encrypted, false otherwise.
1196 { 'struct': 'SpiceChannel',
1197 'base': 'SpiceBasicInfo',
1198 'data': {'connection-id': 'int', 'channel-type': 'int', 'channel-id': 'int',
1202 # @SpiceQueryMouseMode
1204 # An enumeration of Spice mouse states.
1206 # @client: Mouse cursor position is determined by the client.
1208 # @server: Mouse cursor position is determined by the server.
1210 # @unknown: No information is available about mouse mode used by
1213 # Note: spice/enums.h has a SpiceMouseMode already, hence the name.
1217 { 'enum': 'SpiceQueryMouseMode',
1218 'data': [ 'client', 'server', 'unknown' ] }
1223 # Information about the SPICE session.
1225 # @enabled: true if the SPICE server is enabled, false otherwise
1227 # @migrated: true if the last guest migration completed and spice
1228 # migration had completed as well. false otherwise.
1230 # @host: #optional The hostname the SPICE server is bound to. This depends on
1231 # the name resolution on the host and may be an IP address.
1233 # @port: #optional The SPICE server's port number.
1235 # @compiled-version: #optional SPICE server version.
1237 # @tls-port: #optional The SPICE server's TLS port number.
1239 # @auth: #optional the current authentication type used by the server
1240 # 'none' if no authentication is being used
1241 # 'spice' uses SASL or direct TLS authentication, depending on command
1244 # @mouse-mode: The mode in which the mouse cursor is displayed currently. Can
1245 # be determined by the client or the server, or unknown if spice
1246 # server doesn't provide this information.
1250 # @channels: a list of @SpiceChannel for each active spice channel
1254 { 'struct': 'SpiceInfo',
1255 'data': {'enabled': 'bool', 'migrated': 'bool', '*host': 'str', '*port': 'int',
1256 '*tls-port': 'int', '*auth': 'str', '*compiled-version': 'str',
1257 'mouse-mode': 'SpiceQueryMouseMode', '*channels': ['SpiceChannel']} }
1262 # Returns information about the current SPICE server
1264 # Returns: @SpiceInfo
1268 { 'command': 'query-spice', 'returns': 'SpiceInfo' }
1273 # Information about the guest balloon device.
1275 # @actual: the number of bytes the balloon currently contains
1280 { 'struct': 'BalloonInfo', 'data': {'actual': 'int' } }
1285 # Return information about the balloon device.
1287 # Returns: @BalloonInfo on success
1288 # If the balloon driver is enabled but not functional because the KVM
1289 # kernel module cannot support it, KvmMissingCap
1290 # If no balloon device is present, DeviceNotActive
1294 { 'command': 'query-balloon', 'returns': 'BalloonInfo' }
1299 # A PCI device memory region
1301 # @base: the starting address (guest physical)
1303 # @limit: the ending address (guest physical)
1307 { 'struct': 'PciMemoryRange', 'data': {'base': 'int', 'limit': 'int'} }
1312 # Information about a PCI device I/O region.
1314 # @bar: the index of the Base Address Register for this region
1316 # @type: 'io' if the region is a PIO region
1317 # 'memory' if the region is a MMIO region
1319 # @prefetch: #optional if @type is 'memory', true if the memory is prefetchable
1321 # @mem_type_64: #optional if @type is 'memory', true if the BAR is 64-bit
1325 { 'struct': 'PciMemoryRegion',
1326 'data': {'bar': 'int', 'type': 'str', 'address': 'int', 'size': 'int',
1327 '*prefetch': 'bool', '*mem_type_64': 'bool' } }
1332 # Information about a bus of a PCI Bridge device
1334 # @number: primary bus interface number. This should be the number of the
1335 # bus the device resides on.
1337 # @secondary: secondary bus interface number. This is the number of the
1338 # main bus for the bridge
1340 # @subordinate: This is the highest number bus that resides below the
1343 # @io_range: The PIO range for all devices on this bridge
1345 # @memory_range: The MMIO range for all devices on this bridge
1347 # @prefetchable_range: The range of prefetchable MMIO for all devices on
1352 { 'struct': 'PciBusInfo',
1353 'data': {'number': 'int', 'secondary': 'int', 'subordinate': 'int',
1354 'io_range': 'PciMemoryRange',
1355 'memory_range': 'PciMemoryRange',
1356 'prefetchable_range': 'PciMemoryRange' } }
1361 # Information about a PCI Bridge device
1363 # @bus: information about the bus the device resides on
1365 # @devices: a list of @PciDeviceInfo for each device on this bridge
1369 { 'struct': 'PciBridgeInfo',
1370 'data': {'bus': 'PciBusInfo', '*devices': ['PciDeviceInfo']} }
1375 # Information about the Class of a PCI device
1377 # @desc: #optional a string description of the device's class
1379 # @class: the class code of the device
1383 { 'struct': 'PciDeviceClass',
1384 'data': {'*desc': 'str', 'class': 'int'} }
1389 # Information about the Id of a PCI device
1391 # @device: the PCI device id
1393 # @vendor: the PCI vendor id
1397 { 'struct': 'PciDeviceId',
1398 'data': {'device': 'int', 'vendor': 'int'} }
1403 # Information about a PCI device
1405 # @bus: the bus number of the device
1407 # @slot: the slot the device is located in
1409 # @function: the function of the slot used by the device
1411 # @class_info: the class of the device
1413 # @id: the PCI device id
1415 # @irq: #optional if an IRQ is assigned to the device, the IRQ number
1417 # @qdev_id: the device name of the PCI device
1419 # @pci_bridge: if the device is a PCI bridge, the bridge information
1421 # @regions: a list of the PCI I/O regions associated with the device
1423 # Notes: the contents of @class_info.desc are not stable and should only be
1424 # treated as informational.
1428 { 'struct': 'PciDeviceInfo',
1429 'data': {'bus': 'int', 'slot': 'int', 'function': 'int',
1430 'class_info': 'PciDeviceClass', 'id': 'PciDeviceId',
1431 '*irq': 'int', 'qdev_id': 'str', '*pci_bridge': 'PciBridgeInfo',
1432 'regions': ['PciMemoryRegion']} }
1437 # Information about a PCI bus
1439 # @bus: the bus index
1441 # @devices: a list of devices on this bus
1445 { 'struct': 'PciInfo', 'data': {'bus': 'int', 'devices': ['PciDeviceInfo']} }
1450 # Return information about the PCI bus topology of the guest.
1452 # Returns: a list of @PciInfo for each PCI bus
1456 { 'command': 'query-pci', 'returns': ['PciInfo'] }
1461 # This command will cause the QEMU process to exit gracefully. While every
1462 # attempt is made to send the QMP response before terminating, this is not
1463 # guaranteed. When using this interface, a premature EOF would not be
1468 { 'command': 'quit' }
1473 # Stop all guest VCPU execution.
1477 # Notes: This function will succeed even if the guest is already in the stopped
1478 # state. In "inmigrate" state, it will ensure that the guest
1479 # remains paused once migration finishes, as if the -S option was
1480 # passed on the command line.
1482 { 'command': 'stop' }
1487 # Performs a hard reset of a guest.
1491 { 'command': 'system_reset' }
1494 # @system_powerdown:
1496 # Requests that a guest perform a powerdown operation.
1500 # Notes: A guest may or may not respond to this command. This command
1501 # returning does not indicate that a guest has accepted the request or
1502 # that it has shut down. Many guests will respond to this command by
1503 # prompting the user in some way.
1505 { 'command': 'system_powerdown' }
1510 # This command is a nop that is only provided for the purposes of compatibility.
1514 # Notes: Do not use this command.
1516 { 'command': 'cpu', 'data': {'index': 'int'} }
1521 # Adds CPU with specified ID
1523 # @id: ID of CPU to be created, valid values [0..max_cpus)
1525 # Returns: Nothing on success
1529 { 'command': 'cpu-add', 'data': {'id': 'int'} }
1534 # Save a portion of guest memory to a file.
1536 # @val: the virtual address of the guest to start from
1538 # @size: the size of memory region to save
1540 # @filename: the file to save the memory to as binary data
1542 # @cpu-index: #optional the index of the virtual CPU to use for translating the
1543 # virtual address (defaults to CPU 0)
1545 # Returns: Nothing on success
1549 # Notes: Errors were not reliably returned until 1.1
1551 { 'command': 'memsave',
1552 'data': {'val': 'int', 'size': 'int', 'filename': 'str', '*cpu-index': 'int'} }
1557 # Save a portion of guest physical memory to a file.
1559 # @val: the physical address of the guest to start from
1561 # @size: the size of memory region to save
1563 # @filename: the file to save the memory to as binary data
1565 # Returns: Nothing on success
1569 # Notes: Errors were not reliably returned until 1.1
1571 { 'command': 'pmemsave',
1572 'data': {'val': 'int', 'size': 'int', 'filename': 'str'} }
1577 # Resume guest VCPU execution.
1581 # Returns: If successful, nothing
1582 # If QEMU was started with an encrypted block device and a key has
1583 # not yet been set, DeviceEncrypted.
1585 # Notes: This command will succeed if the guest is currently running. It
1586 # will also succeed if the guest is in the "inmigrate" state; in
1587 # this case, the effect of the command is to make sure the guest
1588 # starts once migration finishes, removing the effect of the -S
1589 # command line option if it was passed.
1591 { 'command': 'cont' }
1596 # Wakeup guest from suspend. Does nothing in case the guest isn't suspended.
1602 { 'command': 'system_wakeup' }
1607 # Injects a Non-Maskable Interrupt into the default CPU (x86/s390) or all CPUs (ppc64).
1609 # Returns: If successful, nothing
1613 # Note: prior to 2.1, this command was only supported for x86 and s390 VMs
1615 { 'command': 'inject-nmi' }
1620 # Sets the link status of a virtual network adapter.
1622 # @name: the device name of the virtual network adapter
1624 # @up: true to set the link status to be up
1626 # Returns: Nothing on success
1627 # If @name is not a valid network device, DeviceNotFound
1631 # Notes: Not all network adapters support setting link status. This command
1632 # will succeed even if the network adapter does not support link status
1635 { 'command': 'set_link', 'data': {'name': 'str', 'up': 'bool'} }
1640 # Request the balloon driver to change its balloon size.
1642 # @value: the target size of the balloon in bytes
1644 # Returns: Nothing on success
1645 # If the balloon driver is enabled but not functional because the KVM
1646 # kernel module cannot support it, KvmMissingCap
1647 # If no balloon device is present, DeviceNotActive
1649 # Notes: This command just issues a request to the guest. When it returns,
1650 # the balloon size may not have changed. A guest can change the balloon
1651 # size independent of this command.
1655 { 'command': 'balloon', 'data': {'value': 'int'} }
1660 # This action can be used to test transaction failure.
1664 { 'struct': 'Abort',
1668 # @ActionCompletionMode
1670 # An enumeration of Transactional completion modes.
1672 # @individual: Do not attempt to cancel any other Actions if any Actions fail
1673 # after the Transaction request succeeds. All Actions that
1674 # can complete successfully will do so without waiting on others.
1675 # This is the default.
1677 # @grouped: If any Action fails after the Transaction succeeds, cancel all
1678 # Actions. Actions do not complete until all Actions are ready to
1679 # complete. May be rejected by Actions that do not support this
1684 { 'enum': 'ActionCompletionMode',
1685 'data': [ 'individual', 'grouped' ] }
1688 # @TransactionAction
1690 # A discriminated record of operations that can be performed with
1695 # drive-backup since 1.6
1697 # blockdev-snapshot-internal-sync since 1.7
1698 # blockdev-backup since 2.3
1699 # blockdev-snapshot since 2.5
1700 # block-dirty-bitmap-add since 2.5
1701 # block-dirty-bitmap-clear since 2.5
1703 { 'union': 'TransactionAction',
1705 'blockdev-snapshot': 'BlockdevSnapshot',
1706 'blockdev-snapshot-sync': 'BlockdevSnapshotSync',
1707 'drive-backup': 'DriveBackup',
1708 'blockdev-backup': 'BlockdevBackup',
1710 'blockdev-snapshot-internal-sync': 'BlockdevSnapshotInternal',
1711 'block-dirty-bitmap-add': 'BlockDirtyBitmapAdd',
1712 'block-dirty-bitmap-clear': 'BlockDirtyBitmap'
1716 # @TransactionProperties
1718 # Optional arguments to modify the behavior of a Transaction.
1720 # @completion-mode: #optional Controls how jobs launched asynchronously by
1721 # Actions will complete or fail as a group.
1722 # See @ActionCompletionMode for details.
1726 { 'struct': 'TransactionProperties',
1728 '*completion-mode': 'ActionCompletionMode'
1735 # Executes a number of transactionable QMP commands atomically. If any
1736 # operation fails, then the entire set of actions will be abandoned and the
1737 # appropriate error returned.
1739 # @actions: List of @TransactionAction;
1740 # information needed for the respective operations.
1742 # @properties: #optional structure of additional options to control the
1743 # execution of the transaction. See @TransactionProperties
1744 # for additional detail.
1746 # Returns: nothing on success
1747 # Errors depend on the operations of the transaction
1749 # Note: The transaction aborts on the first failure. Therefore, there will be
1750 # information on only one failed operation returned in an error condition, and
1751 # subsequent actions will not have been attempted.
1755 { 'command': 'transaction',
1756 'data': { 'actions': [ 'TransactionAction' ],
1757 '*properties': 'TransactionProperties'
1762 # @human-monitor-command:
1764 # Execute a command on the human monitor and return the output.
1766 # @command-line: the command to execute in the human monitor
1768 # @cpu-index: #optional The CPU to use for commands that require an implicit CPU
1770 # Returns: the output of the command as a string
1774 # Notes: This command only exists as a stop-gap. Its use is highly
1775 # discouraged. The semantics of this command are not guaranteed.
1777 # Known limitations:
1779 # o This command is stateless, this means that commands that depend
1780 # on state information (such as getfd) might not work
1782 # o Commands that prompt the user for data (eg. 'cont' when the block
1783 # device is encrypted) don't currently work
1785 { 'command': 'human-monitor-command',
1786 'data': {'command-line': 'str', '*cpu-index': 'int'},
1792 # Cancel the current executing migration process.
1794 # Returns: nothing on success
1796 # Notes: This command succeeds even if there is no migration process running.
1800 { 'command': 'migrate_cancel' }
1803 # @migrate_set_downtime
1805 # Set maximum tolerated downtime for migration.
1807 # @value: maximum downtime in seconds
1809 # Returns: nothing on success
1813 { 'command': 'migrate_set_downtime', 'data': {'value': 'number'} }
1816 # @migrate_set_speed
1818 # Set maximum speed for migration.
1820 # @value: maximum speed in bytes.
1822 # Returns: nothing on success
1824 # Notes: A value lesser than zero will be automatically round up to zero.
1828 { 'command': 'migrate_set_speed', 'data': {'value': 'int'} }
1831 # @migrate-set-cache-size
1833 # Set XBZRLE cache size
1835 # @value: cache size in bytes
1837 # The size will be rounded down to the nearest power of 2.
1838 # The cache size can be modified before and during ongoing migration
1840 # Returns: nothing on success
1844 { 'command': 'migrate-set-cache-size', 'data': {'value': 'int'} }
1847 # @query-migrate-cache-size
1849 # query XBZRLE cache size
1851 # Returns: XBZRLE cache size in bytes
1855 { 'command': 'query-migrate-cache-size', 'returns': 'int' }
1858 # @ObjectPropertyInfo:
1860 # @name: the name of the property
1862 # @type: the type of the property. This will typically come in one of four
1865 # 1) A primitive type such as 'u8', 'u16', 'bool', 'str', or 'double'.
1866 # These types are mapped to the appropriate JSON type.
1868 # 2) A child type in the form 'child<subtype>' where subtype is a qdev
1869 # device type name. Child properties create the composition tree.
1871 # 3) A link type in the form 'link<subtype>' where subtype is a qdev
1872 # device type name. Link properties form the device model graph.
1876 { 'struct': 'ObjectPropertyInfo',
1877 'data': { 'name': 'str', 'type': 'str' } }
1882 # This command will list any properties of a object given a path in the object
1885 # @path: the path within the object model. See @qom-get for a description of
1888 # Returns: a list of @ObjectPropertyInfo that describe the properties of the
1893 { 'command': 'qom-list',
1894 'data': { 'path': 'str' },
1895 'returns': [ 'ObjectPropertyInfo' ] }
1900 # This command will get a property from a object model path and return the
1903 # @path: The path within the object model. There are two forms of supported
1904 # paths--absolute and partial paths.
1906 # Absolute paths are derived from the root object and can follow child<>
1907 # or link<> properties. Since they can follow link<> properties, they
1908 # can be arbitrarily long. Absolute paths look like absolute filenames
1909 # and are prefixed with a leading slash.
1911 # Partial paths look like relative filenames. They do not begin
1912 # with a prefix. The matching rules for partial paths are subtle but
1913 # designed to make specifying objects easy. At each level of the
1914 # composition tree, the partial path is matched as an absolute path.
1915 # The first match is not returned. At least two matches are searched
1916 # for. A successful result is only returned if only one match is
1917 # found. If more than one match is found, a flag is return to
1918 # indicate that the match was ambiguous.
1920 # @property: The property name to read
1922 # Returns: The property value. The type depends on the property
1923 # type. child<> and link<> properties are returned as #str
1924 # pathnames. All integer property types (u8, u16, etc) are
1929 { 'command': 'qom-get',
1930 'data': { 'path': 'str', 'property': 'str' },
1936 # This command will set a property from a object model path.
1938 # @path: see @qom-get for a description of this parameter
1940 # @property: the property name to set
1942 # @value: a value who's type is appropriate for the property type. See @qom-get
1943 # for a description of type mapping.
1947 { 'command': 'qom-set',
1948 'data': { 'path': 'str', 'property': 'str', 'value': 'any' } }
1953 # Sets the password of a remote display session.
1955 # @protocol: `vnc' to modify the VNC server password
1956 # `spice' to modify the Spice server password
1958 # @password: the new password
1960 # @connected: #optional how to handle existing clients when changing the
1961 # password. If nothing is specified, defaults to `keep'
1962 # `fail' to fail the command if clients are connected
1963 # `disconnect' to disconnect existing clients
1964 # `keep' to maintain existing clients
1966 # Returns: Nothing on success
1967 # If Spice is not enabled, DeviceNotFound
1971 { 'command': 'set_password',
1972 'data': {'protocol': 'str', 'password': 'str', '*connected': 'str'} }
1977 # Expire the password of a remote display server.
1979 # @protocol: the name of the remote display protocol `vnc' or `spice'
1981 # @time: when to expire the password.
1982 # `now' to expire the password immediately
1983 # `never' to cancel password expiration
1984 # `+INT' where INT is the number of seconds from now (integer)
1985 # `INT' where INT is the absolute time in seconds
1987 # Returns: Nothing on success
1988 # If @protocol is `spice' and Spice is not active, DeviceNotFound
1992 # Notes: Time is relative to the server and currently there is no way to
1993 # coordinate server time with client time. It is not recommended to
1994 # use the absolute time version of the @time parameter unless you're
1995 # sure you are on the same machine as the QEMU instance.
1997 { 'command': 'expire_password', 'data': {'protocol': 'str', 'time': 'str'} }
2000 # @change-vnc-password:
2002 # Change the VNC server password.
2004 # @password: the new password to use with VNC authentication
2008 # Notes: An empty password in this command will set the password to the empty
2009 # string. Existing clients are unaffected by executing this command.
2011 { 'command': 'change-vnc-password', 'data': {'password': 'str'} }
2016 # This command is multiple commands multiplexed together.
2018 # @device: This is normally the name of a block device but it may also be 'vnc'.
2019 # when it's 'vnc', then sub command depends on @target
2021 # @target: If @device is a block device, then this is the new filename.
2022 # If @device is 'vnc', then if the value 'password' selects the vnc
2023 # change password command. Otherwise, this specifies a new server URI
2024 # address to listen to for VNC connections.
2026 # @arg: If @device is a block device, then this is an optional format to open
2028 # If @device is 'vnc' and @target is 'password', this is the new VNC
2029 # password to set. If this argument is an empty string, then no future
2030 # logins will be allowed.
2032 # Returns: Nothing on success.
2033 # If @device is not a valid block device, DeviceNotFound
2034 # If the new block device is encrypted, DeviceEncrypted. Note that
2035 # if this error is returned, the device has been opened successfully
2036 # and an additional call to @block_passwd is required to set the
2037 # device's password. The behavior of reads and writes to the block
2038 # device between when these calls are executed is undefined.
2040 # Notes: This interface is deprecated, and it is strongly recommended that you
2041 # avoid using it. For changing block devices, use
2042 # blockdev-change-medium; for changing VNC parameters, use
2043 # change-vnc-password.
2047 { 'command': 'change',
2048 'data': {'device': 'str', 'target': 'str', '*arg': 'str'} }
2053 # This structure describes a search result from @qom-list-types
2055 # @name: the type name found in the search
2059 # Notes: This command is experimental and may change syntax in future releases.
2061 { 'struct': 'ObjectTypeInfo',
2062 'data': { 'name': 'str' } }
2067 # This command will return a list of types given search parameters
2069 # @implements: if specified, only return types that implement this type name
2071 # @abstract: if true, include abstract types in the results
2073 # Returns: a list of @ObjectTypeInfo or an empty list if no results are found
2077 { 'command': 'qom-list-types',
2078 'data': { '*implements': 'str', '*abstract': 'bool' },
2079 'returns': [ 'ObjectTypeInfo' ] }
2082 # @DevicePropertyInfo:
2084 # Information about device properties.
2086 # @name: the name of the property
2087 # @type: the typename of the property
2088 # @description: #optional if specified, the description of the property.
2093 { 'struct': 'DevicePropertyInfo',
2094 'data': { 'name': 'str', 'type': 'str', '*description': 'str' } }
2097 # @device-list-properties:
2099 # List properties associated with a device.
2101 # @typename: the type name of a device
2103 # Returns: a list of DevicePropertyInfo describing a devices properties
2107 { 'command': 'device-list-properties',
2108 'data': { 'typename': 'str'},
2109 'returns': [ 'DevicePropertyInfo' ] }
2114 # Migrates the current running guest to another Virtual Machine.
2116 # @uri: the Uniform Resource Identifier of the destination VM
2118 # @blk: #optional do block migration (full disk copy)
2120 # @inc: #optional incremental disk copy migration
2122 # @detach: this argument exists only for compatibility reasons and
2123 # is ignored by QEMU
2125 # Returns: nothing on success
2129 { 'command': 'migrate',
2130 'data': {'uri': 'str', '*blk': 'bool', '*inc': 'bool', '*detach': 'bool' } }
2135 # Start an incoming migration, the qemu must have been started
2136 # with -incoming defer
2138 # @uri: The Uniform Resource Identifier identifying the source or
2139 # address to listen on
2141 # Returns: nothing on success
2144 # Note: It's a bad idea to use a string for the uri, but it needs to stay
2145 # compatible with -incoming and the format of the uri is already exposed
2148 { 'command': 'migrate-incoming', 'data': {'uri': 'str' } }
2150 # @xen-save-devices-state:
2152 # Save the state of all devices to file. The RAM and the block devices
2153 # of the VM are not saved by this command.
2155 # @filename: the file to save the state of the devices to as binary
2156 # data. See xen-save-devices-state.txt for a description of the binary
2159 # Returns: Nothing on success
2163 { 'command': 'xen-save-devices-state', 'data': {'filename': 'str'} }
2166 # @xen-set-global-dirty-log
2168 # Enable or disable the global dirty log mode.
2170 # @enable: true to enable, false to disable.
2176 { 'command': 'xen-set-global-dirty-log', 'data': { 'enable': 'bool' } }
2181 # Remove a device from a guest
2183 # @id: the name or QOM path of the device
2185 # Returns: Nothing on success
2186 # If @id is not a valid device, DeviceNotFound
2188 # Notes: When this command completes, the device may not be removed from the
2189 # guest. Hot removal is an operation that requires guest cooperation.
2190 # This command merely requests that the guest begin the hot removal
2191 # process. Completion of the device removal process is signaled with a
2192 # DEVICE_DELETED event. Guest reset will automatically complete removal
2197 { 'command': 'device_del', 'data': {'id': 'str'} }
2200 # @DumpGuestMemoryFormat:
2202 # An enumeration of guest-memory-dump's format.
2206 # @kdump-zlib: kdump-compressed format with zlib-compressed
2208 # @kdump-lzo: kdump-compressed format with lzo-compressed
2210 # @kdump-snappy: kdump-compressed format with snappy-compressed
2214 { 'enum': 'DumpGuestMemoryFormat',
2215 'data': [ 'elf', 'kdump-zlib', 'kdump-lzo', 'kdump-snappy' ] }
2218 # @dump-guest-memory
2220 # Dump guest's memory to vmcore. It is a synchronous operation that can take
2221 # very long depending on the amount of guest memory.
2223 # @paging: if true, do paging to get guest's memory mapping. This allows
2224 # using gdb to process the core file.
2226 # IMPORTANT: this option can make QEMU allocate several gigabytes
2227 # of RAM. This can happen for a large guest, or a
2228 # malicious guest pretending to be large.
2230 # Also, paging=true has the following limitations:
2232 # 1. The guest may be in a catastrophic state or can have corrupted
2233 # memory, which cannot be trusted
2234 # 2. The guest can be in real-mode even if paging is enabled. For
2235 # example, the guest uses ACPI to sleep, and ACPI sleep state
2237 # 3. Currently only supported on i386 and x86_64.
2239 # @protocol: the filename or file descriptor of the vmcore. The supported
2242 # 1. file: the protocol starts with "file:", and the following
2243 # string is the file's path.
2244 # 2. fd: the protocol starts with "fd:", and the following string
2247 # @detach: #optional if true, QMP will return immediately rather than
2248 # waiting for the dump to finish. The user can track progress
2249 # using "query-dump". (since 2.6).
2251 # @begin: #optional if specified, the starting physical address.
2253 # @length: #optional if specified, the memory size, in bytes. If you don't
2254 # want to dump all guest's memory, please specify the start @begin
2257 # @format: #optional if specified, the format of guest memory dump. But non-elf
2258 # format is conflict with paging and filter, ie. @paging, @begin and
2259 # @length is not allowed to be specified with non-elf @format at the
2260 # same time (since 2.0)
2262 # Returns: nothing on success
2266 { 'command': 'dump-guest-memory',
2267 'data': { 'paging': 'bool', 'protocol': 'str', '*detach': 'bool',
2268 '*begin': 'int', '*length': 'int',
2269 '*format': 'DumpGuestMemoryFormat'} }
2274 # Describe the status of a long-running background guest memory dump.
2276 # @none: no dump-guest-memory has started yet.
2278 # @active: there is one dump running in background.
2280 # @completed: the last dump has finished successfully.
2282 # @failed: the last dump has failed.
2286 { 'enum': 'DumpStatus',
2287 'data': [ 'none', 'active', 'completed', 'failed' ] }
2292 # The result format for 'query-dump'.
2294 # @status: enum of @DumpStatus, which shows current dump status
2296 # @completed: bytes written in latest dump (uncompressed)
2298 # @total: total bytes to be written in latest dump (uncompressed)
2302 { 'struct': 'DumpQueryResult',
2303 'data': { 'status': 'DumpStatus',
2310 # Query latest dump status.
2312 # Returns: A @DumpStatus object showing the dump status.
2316 { 'command': 'query-dump', 'returns': 'DumpQueryResult' }
2319 # @DumpGuestMemoryCapability:
2321 # A list of the available formats for dump-guest-memory
2325 { 'struct': 'DumpGuestMemoryCapability',
2327 'formats': ['DumpGuestMemoryFormat'] } }
2330 # @query-dump-guest-memory-capability:
2332 # Returns the available formats for dump-guest-memory
2334 # Returns: A @DumpGuestMemoryCapability object listing available formats for
2339 { 'command': 'query-dump-guest-memory-capability',
2340 'returns': 'DumpGuestMemoryCapability' }
2345 # Dump guest's storage keys
2347 # @filename: the path to the file to dump to
2349 # This command is only supported on s390 architecture.
2353 { 'command': 'dump-skeys',
2354 'data': { 'filename': 'str' } }
2359 # Add a network backend.
2361 # @type: the type of network backend. Current valid values are 'user', 'tap',
2362 # 'vde', 'socket', 'dump' and 'bridge'
2364 # @id: the name of the new network backend
2366 # Additional arguments depend on the type.
2368 # TODO This command effectively bypasses QAPI completely due to its
2369 # "additional arguments" business. It shouldn't have been added to
2370 # the schema in this form. It should be qapified properly, or
2371 # replaced by a properly qapified command.
2375 # Returns: Nothing on success
2376 # If @type is not a valid network backend, DeviceNotFound
2378 { 'command': 'netdev_add',
2379 'data': {'type': 'str', 'id': 'str'},
2380 'gen': false } # so we can get the additional arguments
2385 # Remove a network backend.
2387 # @id: the name of the network backend to remove
2389 # Returns: Nothing on success
2390 # If @id is not a valid network backend, DeviceNotFound
2394 { 'command': 'netdev_del', 'data': {'id': 'str'} }
2399 # Create a QOM object.
2401 # @qom-type: the class name for the object to be created
2403 # @id: the name of the new object
2405 # @props: #optional a dictionary of properties to be passed to the backend
2407 # Returns: Nothing on success
2408 # Error if @qom-type is not a valid class name
2412 { 'command': 'object-add',
2413 'data': {'qom-type': 'str', 'id': 'str', '*props': 'any'} }
2418 # Remove a QOM object.
2420 # @id: the name of the QOM object to remove
2422 # Returns: Nothing on success
2423 # Error if @id is not a valid id for a QOM object
2427 { 'command': 'object-del', 'data': {'id': 'str'} }
2430 # @NetdevNoneOptions
2432 # Use it alone to have zero network devices.
2436 { 'struct': 'NetdevNoneOptions',
2440 # @NetLegacyNicOptions
2442 # Create a new Network Interface Card.
2444 # @netdev: #optional id of -netdev to connect to
2446 # @macaddr: #optional MAC address
2448 # @model: #optional device model (e1000, rtl8139, virtio etc.)
2450 # @addr: #optional PCI device address
2452 # @vectors: #optional number of MSI-x vectors, 0 to disable MSI-X
2456 { 'struct': 'NetLegacyNicOptions',
2462 '*vectors': 'uint32' } }
2467 # A fat type wrapping 'str', to be embedded in lists.
2471 { 'struct': 'String',
2476 # @NetdevUserOptions
2478 # Use the user mode network stack which requires no administrator privilege to
2481 # @hostname: #optional client hostname reported by the builtin DHCP server
2483 # @restrict: #optional isolate the guest from the host
2485 # @ipv4: #optional whether to support IPv4, default true for enabled
2488 # @ipv6: #optional whether to support IPv6, default true for enabled
2491 # @ip: #optional legacy parameter, use net= instead
2493 # @net: #optional IP network address that the guest will see, in the
2494 # form addr[/netmask] The netmask is optional, and can be
2495 # either in the form a.b.c.d or as a number of valid top-most
2496 # bits. Default is 10.0.2.0/24.
2498 # @host: #optional guest-visible address of the host
2500 # @tftp: #optional root directory of the built-in TFTP server
2502 # @bootfile: #optional BOOTP filename, for use with tftp=
2504 # @dhcpstart: #optional the first of the 16 IPs the built-in DHCP server can
2507 # @dns: #optional guest-visible address of the virtual nameserver
2509 # @dnssearch: #optional list of DNS suffixes to search, passed as DHCP option
2512 # @ipv6-prefix: #optional IPv6 network prefix (default is fec0::) (since
2513 # 2.6). The network prefix is given in the usual
2514 # hexadecimal IPv6 address notation.
2516 # @ipv6-prefixlen: #optional IPv6 network prefix length (default is 64)
2519 # @ipv6-host: #optional guest-visible IPv6 address of the host (since 2.6)
2521 # @ipv6-dns: #optional guest-visible IPv6 address of the virtual
2522 # nameserver (since 2.6)
2524 # @smb: #optional root directory of the built-in SMB server
2526 # @smbserver: #optional IP address of the built-in SMB server
2528 # @hostfwd: #optional redirect incoming TCP or UDP host connections to guest
2531 # @guestfwd: #optional forward guest TCP connections
2535 { 'struct': 'NetdevUserOptions',
2538 '*restrict': 'bool',
2546 '*dhcpstart': 'str',
2548 '*dnssearch': ['String'],
2549 '*ipv6-prefix': 'str',
2550 '*ipv6-prefixlen': 'int',
2551 '*ipv6-host': 'str',
2554 '*smbserver': 'str',
2555 '*hostfwd': ['String'],
2556 '*guestfwd': ['String'] } }
2561 # Connect the host TAP network interface name to the VLAN.
2563 # @ifname: #optional interface name
2565 # @fd: #optional file descriptor of an already opened tap
2567 # @fds: #optional multiple file descriptors of already opened multiqueue capable
2570 # @script: #optional script to initialize the interface
2572 # @downscript: #optional script to shut down the interface
2574 # @helper: #optional command to execute to configure bridge
2576 # @sndbuf: #optional send buffer limit. Understands [TGMKkb] suffixes.
2578 # @vnet_hdr: #optional enable the IFF_VNET_HDR flag on the tap interface
2580 # @vhost: #optional enable vhost-net network accelerator
2582 # @vhostfd: #optional file descriptor of an already opened vhost net device
2584 # @vhostfds: #optional file descriptors of multiple already opened vhost net
2587 # @vhostforce: #optional vhost on for non-MSIX virtio guests
2589 # @queues: #optional number of queues to be created for multiqueue capable tap
2593 { 'struct': 'NetdevTapOptions',
2599 '*downscript': 'str',
2602 '*vnet_hdr': 'bool',
2606 '*vhostforce': 'bool',
2607 '*queues': 'uint32'} }
2610 # @NetdevSocketOptions
2612 # Connect the VLAN to a remote VLAN in another QEMU virtual machine using a TCP
2613 # socket connection.
2615 # @fd: #optional file descriptor of an already opened socket
2617 # @listen: #optional port number, and optional hostname, to listen on
2619 # @connect: #optional port number, and optional hostname, to connect to
2621 # @mcast: #optional UDP multicast address and port number
2623 # @localaddr: #optional source address and port for multicast and udp packets
2625 # @udp: #optional UDP unicast address and port number
2629 { 'struct': 'NetdevSocketOptions',
2635 '*localaddr': 'str',
2639 # @NetdevL2TPv3Options
2641 # Connect the VLAN to Ethernet over L2TPv3 Static tunnel
2643 # @src: source address
2645 # @dst: destination address
2647 # @srcport: #optional source port - mandatory for udp, optional for ip
2649 # @dstport: #optional destination port - mandatory for udp, optional for ip
2651 # @ipv6: #optional - force the use of ipv6
2653 # @udp: #optional - use the udp version of l2tpv3 encapsulation
2655 # @cookie64: #optional - use 64 bit coookies
2657 # @counter: #optional have sequence counter
2659 # @pincounter: #optional pin sequence counter to zero -
2660 # workaround for buggy implementations or
2661 # networks with packet reorder
2663 # @txcookie: #optional 32 or 64 bit transmit cookie
2665 # @rxcookie: #optional 32 or 64 bit receive cookie
2667 # @txsession: 32 bit transmit session
2669 # @rxsession: #optional 32 bit receive session - if not specified
2670 # set to the same value as transmit
2672 # @offset: #optional additional offset - allows the insertion of
2673 # additional application-specific data before the packet payload
2677 { 'struct': 'NetdevL2TPv3Options',
2685 '*cookie64': 'bool',
2687 '*pincounter': 'bool',
2688 '*txcookie': 'uint64',
2689 '*rxcookie': 'uint64',
2690 'txsession': 'uint32',
2691 '*rxsession': 'uint32',
2692 '*offset': 'uint32' } }
2697 # Connect the VLAN to a vde switch running on the host.
2699 # @sock: #optional socket path
2701 # @port: #optional port number
2703 # @group: #optional group owner of socket
2705 # @mode: #optional permissions for socket
2709 { 'struct': 'NetdevVdeOptions',
2714 '*mode': 'uint16' } }
2717 # @NetdevDumpOptions
2719 # Dump VLAN network traffic to a file.
2721 # @len: #optional per-packet size limit (64k default). Understands [TGMKkb]
2724 # @file: #optional dump file path (default is qemu-vlan0.pcap)
2728 { 'struct': 'NetdevDumpOptions',
2734 # @NetdevBridgeOptions
2736 # Connect a host TAP network interface to a host bridge device.
2738 # @br: #optional bridge name
2740 # @helper: #optional command to execute to configure bridge
2744 { 'struct': 'NetdevBridgeOptions',
2747 '*helper': 'str' } }
2750 # @NetdevHubPortOptions
2752 # Connect two or more net clients through a software hub.
2754 # @hubid: hub identifier number
2758 { 'struct': 'NetdevHubPortOptions',
2760 'hubid': 'int32' } }
2763 # @NetdevNetmapOptions
2765 # Connect a client to a netmap-enabled NIC or to a VALE switch port
2767 # @ifname: Either the name of an existing network interface supported by
2768 # netmap, or the name of a VALE port (created on the fly).
2769 # A VALE port name is in the form 'valeXXX:YYY', where XXX and
2770 # YYY are non-negative integers. XXX identifies a switch and
2771 # YYY identifies a port of the switch. VALE ports having the
2772 # same XXX are therefore connected to the same switch.
2774 # @devname: #optional path of the netmap device (default: '/dev/netmap').
2778 { 'struct': 'NetdevNetmapOptions',
2781 '*devname': 'str' } }
2784 # @NetdevVhostUserOptions
2786 # Vhost-user network backend
2788 # @chardev: name of a unix socket chardev
2790 # @vhostforce: #optional vhost on for non-MSIX virtio guests (default: false).
2792 # @queues: #optional number of queues to be created for multiqueue vhost-user
2793 # (default: 1) (Since 2.5)
2797 { 'struct': 'NetdevVhostUserOptions',
2800 '*vhostforce': 'bool',
2801 '*queues': 'int' } }
2806 # A discriminated record of network device traits.
2810 # 'l2tpv3' - since 2.1
2813 { 'union': 'NetClientOptions',
2815 'none': 'NetdevNoneOptions',
2816 'nic': 'NetLegacyNicOptions',
2817 'user': 'NetdevUserOptions',
2818 'tap': 'NetdevTapOptions',
2819 'l2tpv3': 'NetdevL2TPv3Options',
2820 'socket': 'NetdevSocketOptions',
2821 'vde': 'NetdevVdeOptions',
2822 'dump': 'NetdevDumpOptions',
2823 'bridge': 'NetdevBridgeOptions',
2824 'hubport': 'NetdevHubPortOptions',
2825 'netmap': 'NetdevNetmapOptions',
2826 'vhost-user': 'NetdevVhostUserOptions' } }
2831 # Captures the configuration of a network device; legacy.
2833 # @vlan: #optional vlan number
2835 # @id: #optional identifier for monitor commands
2837 # @name: #optional identifier for monitor commands, ignored if @id is present
2839 # @opts: device type specific properties (legacy)
2843 { 'struct': 'NetLegacy',
2848 'opts': 'NetClientOptions' } }
2853 # Captures the configuration of a network device.
2855 # @id: identifier for monitor commands.
2857 # @opts: device type specific properties
2861 { 'struct': 'Netdev',
2864 'opts': 'NetClientOptions' } }
2867 # @NetFilterDirection
2869 # Indicates whether a netfilter is attached to a netdev's transmit queue or
2870 # receive queue or both.
2872 # @all: the filter is attached both to the receive and the transmit
2873 # queue of the netdev (default).
2875 # @rx: the filter is attached to the receive queue of the netdev,
2876 # where it will receive packets sent to the netdev.
2878 # @tx: the filter is attached to the transmit queue of the netdev,
2879 # where it will receive packets sent by the netdev.
2883 { 'enum': 'NetFilterDirection',
2884 'data': [ 'all', 'rx', 'tx' ] }
2887 # @InetSocketAddress
2889 # Captures a socket address or address range in the Internet namespace.
2891 # @host: host part of the address
2893 # @port: port part of the address, or lowest port if @to is present
2895 # @to: highest port to try
2897 # @ipv4: whether to accept IPv4 addresses, default try both IPv4 and IPv6
2900 # @ipv6: whether to accept IPv6 addresses, default try both IPv4 and IPv6
2905 { 'struct': 'InetSocketAddress',
2914 # @UnixSocketAddress
2916 # Captures a socket address in the local ("Unix socket") namespace.
2918 # @path: filesystem path to use
2922 { 'struct': 'UnixSocketAddress',
2929 # Captures the address of a socket, which could also be a named file descriptor
2933 { 'union': 'SocketAddress',
2935 'inet': 'InetSocketAddress',
2936 'unix': 'UnixSocketAddress',
2942 # Receive a file descriptor via SCM rights and assign it a name
2944 # @fdname: file descriptor name
2946 # Returns: Nothing on success
2950 # Notes: If @fdname already exists, the file descriptor assigned to
2951 # it will be closed and replaced by the received file
2953 # The 'closefd' command can be used to explicitly close the
2954 # file descriptor when it is no longer needed.
2956 { 'command': 'getfd', 'data': {'fdname': 'str'} }
2961 # Close a file descriptor previously passed via SCM rights
2963 # @fdname: file descriptor name
2965 # Returns: Nothing on success
2969 { 'command': 'closefd', 'data': {'fdname': 'str'} }
2974 # Information describing a machine.
2976 # @name: the name of the machine
2978 # @alias: #optional an alias for the machine name
2980 # @default: #optional whether the machine is default
2982 # @cpu-max: maximum number of CPUs supported by the machine type
2987 { 'struct': 'MachineInfo',
2988 'data': { 'name': 'str', '*alias': 'str',
2989 '*is-default': 'bool', 'cpu-max': 'int' } }
2994 # Return a list of supported machines
2996 # Returns: a list of MachineInfo
3000 { 'command': 'query-machines', 'returns': ['MachineInfo'] }
3003 # @CpuDefinitionInfo:
3005 # Virtual CPU definition.
3007 # @name: the name of the CPU definition
3011 { 'struct': 'CpuDefinitionInfo',
3012 'data': { 'name': 'str' } }
3015 # @query-cpu-definitions:
3017 # Return a list of supported virtual CPU definitions
3019 # Returns: a list of CpuDefInfo
3023 { 'command': 'query-cpu-definitions', 'returns': ['CpuDefinitionInfo'] }
3027 # Information about a file descriptor that was added to an fd set.
3029 # @fdset-id: The ID of the fd set that @fd was added to.
3031 # @fd: The file descriptor that was received via SCM rights and
3032 # added to the fd set.
3036 { 'struct': 'AddfdInfo', 'data': {'fdset-id': 'int', 'fd': 'int'} }
3041 # Add a file descriptor, that was passed via SCM rights, to an fd set.
3043 # @fdset-id: #optional The ID of the fd set to add the file descriptor to.
3045 # @opaque: #optional A free-form string that can be used to describe the fd.
3047 # Returns: @AddfdInfo on success
3048 # If file descriptor was not received, FdNotSupplied
3049 # If @fdset-id is a negative value, InvalidParameterValue
3051 # Notes: The list of fd sets is shared by all monitor connections.
3053 # If @fdset-id is not specified, a new fd set will be created.
3057 { 'command': 'add-fd', 'data': {'*fdset-id': 'int', '*opaque': 'str'},
3058 'returns': 'AddfdInfo' }
3063 # Remove a file descriptor from an fd set.
3065 # @fdset-id: The ID of the fd set that the file descriptor belongs to.
3067 # @fd: #optional The file descriptor that is to be removed.
3069 # Returns: Nothing on success
3070 # If @fdset-id or @fd is not found, FdNotFound
3074 # Notes: The list of fd sets is shared by all monitor connections.
3076 # If @fd is not specified, all file descriptors in @fdset-id
3079 { 'command': 'remove-fd', 'data': {'fdset-id': 'int', '*fd': 'int'} }
3084 # Information about a file descriptor that belongs to an fd set.
3086 # @fd: The file descriptor value.
3088 # @opaque: #optional A free-form string that can be used to describe the fd.
3092 { 'struct': 'FdsetFdInfo',
3093 'data': {'fd': 'int', '*opaque': 'str'} }
3098 # Information about an fd set.
3100 # @fdset-id: The ID of the fd set.
3102 # @fds: A list of file descriptors that belong to this fd set.
3106 { 'struct': 'FdsetInfo',
3107 'data': {'fdset-id': 'int', 'fds': ['FdsetFdInfo']} }
3112 # Return information describing all fd sets.
3114 # Returns: A list of @FdsetInfo
3118 # Note: The list of fd sets is shared by all monitor connections.
3121 { 'command': 'query-fdsets', 'returns': ['FdsetInfo'] }
3126 # Information describing the QEMU target.
3128 # @arch: the target architecture (eg "x86_64", "i386", etc)
3132 { 'struct': 'TargetInfo',
3133 'data': { 'arch': 'str' } }
3138 # Return information about the target for this QEMU
3140 # Returns: TargetInfo
3144 { 'command': 'query-target', 'returns': 'TargetInfo' }
3149 # An enumeration of key name.
3151 # This is used by the send-key command.
3155 # 'unmapped' and 'pause' since 2.0
3156 # 'ro' and 'kp_comma' since 2.4
3157 # 'kp_equals' and 'power' since 2.6
3159 { 'enum': 'QKeyCode',
3160 'data': [ 'unmapped',
3161 'shift', 'shift_r', 'alt', 'alt_r', 'altgr', 'altgr_r', 'ctrl',
3162 'ctrl_r', 'menu', 'esc', '1', '2', '3', '4', '5', '6', '7', '8',
3163 '9', '0', 'minus', 'equal', 'backspace', 'tab', 'q', 'w', 'e',
3164 'r', 't', 'y', 'u', 'i', 'o', 'p', 'bracket_left', 'bracket_right',
3165 'ret', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'semicolon',
3166 'apostrophe', 'grave_accent', 'backslash', 'z', 'x', 'c', 'v', 'b',
3167 'n', 'm', 'comma', 'dot', 'slash', 'asterisk', 'spc', 'caps_lock',
3168 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10',
3169 'num_lock', 'scroll_lock', 'kp_divide', 'kp_multiply',
3170 'kp_subtract', 'kp_add', 'kp_enter', 'kp_decimal', 'sysrq', 'kp_0',
3171 'kp_1', 'kp_2', 'kp_3', 'kp_4', 'kp_5', 'kp_6', 'kp_7', 'kp_8',
3172 'kp_9', 'less', 'f11', 'f12', 'print', 'home', 'pgup', 'pgdn', 'end',
3173 'left', 'up', 'down', 'right', 'insert', 'delete', 'stop', 'again',
3174 'props', 'undo', 'front', 'copy', 'open', 'paste', 'find', 'cut',
3175 'lf', 'help', 'meta_l', 'meta_r', 'compose', 'pause', 'ro',
3176 'kp_comma', 'kp_equals', 'power' ] }
3181 # Represents a keyboard key.
3185 { 'union': 'KeyValue',
3188 'qcode': 'QKeyCode' } }
3193 # Send keys to guest.
3195 # @keys: An array of @KeyValue elements. All @KeyValues in this array are
3196 # simultaneously sent to the guest. A @KeyValue.number value is sent
3197 # directly to the guest, while @KeyValue.qcode must be a valid
3200 # @hold-time: #optional time to delay key up events, milliseconds. Defaults
3203 # Returns: Nothing on success
3204 # If key is unknown or redundant, InvalidParameter
3209 { 'command': 'send-key',
3210 'data': { 'keys': ['KeyValue'], '*hold-time': 'int' } }
3215 # Write a PPM of the VGA screen to a file.
3217 # @filename: the path of a new PPM file to store the image
3219 # Returns: Nothing on success
3223 { 'command': 'screendump', 'data': {'filename': 'str'} }
3229 # Configuration shared across all chardev backends
3231 # @logfile: #optional The name of a logfile to save output
3232 # @logappend: #optional true to append instead of truncate
3233 # (default to false to truncate)
3237 { 'struct': 'ChardevCommon', 'data': { '*logfile': 'str',
3238 '*logappend': 'bool' } }
3243 # Configuration info for file chardevs.
3245 # @in: #optional The name of the input file
3246 # @out: The name of the output file
3247 # @append: #optional Open the file in append mode (default false to
3248 # truncate) (Since 2.6)
3252 { 'struct': 'ChardevFile', 'data': { '*in' : 'str',
3254 '*append': 'bool' },
3255 'base': 'ChardevCommon' }
3260 # Configuration info for device and pipe chardevs.
3262 # @device: The name of the special file for the device,
3263 # i.e. /dev/ttyS0 on Unix or COM1: on Windows
3264 # @type: What kind of device this is.
3268 { 'struct': 'ChardevHostdev', 'data': { 'device' : 'str' },
3269 'base': 'ChardevCommon' }
3274 # Configuration info for (stream) socket chardevs.
3276 # @addr: socket address to listen on (server=true)
3277 # or connect to (server=false)
3278 # @tls-creds: #optional the ID of the TLS credentials object (since 2.6)
3279 # @server: #optional create server socket (default: true)
3280 # @wait: #optional wait for incoming connection on server
3281 # sockets (default: false).
3282 # @nodelay: #optional set TCP_NODELAY socket option (default: false)
3283 # @telnet: #optional enable telnet protocol on server
3284 # sockets (default: false)
3285 # @reconnect: #optional For a client socket, if a socket is disconnected,
3286 # then attempt a reconnect after the given number of seconds.
3287 # Setting this to zero disables this function. (default: 0)
3292 { 'struct': 'ChardevSocket', 'data': { 'addr' : 'SocketAddress',
3293 '*tls-creds' : 'str',
3296 '*nodelay' : 'bool',
3298 '*reconnect' : 'int' },
3299 'base': 'ChardevCommon' }
3304 # Configuration info for datagram socket chardevs.
3306 # @remote: remote address
3307 # @local: #optional local address
3311 { 'struct': 'ChardevUdp', 'data': { 'remote' : 'SocketAddress',
3312 '*local' : 'SocketAddress' },
3313 'base': 'ChardevCommon' }
3318 # Configuration info for mux chardevs.
3320 # @chardev: name of the base chardev.
3324 { 'struct': 'ChardevMux', 'data': { 'chardev' : 'str' },
3325 'base': 'ChardevCommon' }
3330 # Configuration info for stdio chardevs.
3332 # @signal: #optional Allow signals (such as SIGINT triggered by ^C)
3333 # be delivered to qemu. Default: true in -nographic mode,
3338 { 'struct': 'ChardevStdio', 'data': { '*signal' : 'bool' },
3339 'base': 'ChardevCommon' }
3343 # @ChardevSpiceChannel:
3345 # Configuration info for spice vm channel chardevs.
3347 # @type: kind of channel (for example vdagent).
3351 { 'struct': 'ChardevSpiceChannel', 'data': { 'type' : 'str' },
3352 'base': 'ChardevCommon' }
3355 # @ChardevSpicePort:
3357 # Configuration info for spice port chardevs.
3359 # @fqdn: name of the channel (see docs/spice-port-fqdn.txt)
3363 { 'struct': 'ChardevSpicePort', 'data': { 'fqdn' : 'str' },
3364 'base': 'ChardevCommon' }
3369 # Configuration info for virtual console chardevs.
3371 # @width: console width, in pixels
3372 # @height: console height, in pixels
3373 # @cols: console width, in chars
3374 # @rows: console height, in chars
3378 { 'struct': 'ChardevVC', 'data': { '*width' : 'int',
3382 'base': 'ChardevCommon' }
3387 # Configuration info for ring buffer chardevs.
3389 # @size: #optional ring buffer size, must be power of two, default is 65536
3393 { 'struct': 'ChardevRingbuf', 'data': { '*size' : 'int' },
3394 'base': 'ChardevCommon' }
3399 # Configuration info for the new chardev backend.
3401 # Since: 1.4 (testdev since 2.2)
3403 { 'union': 'ChardevBackend', 'data': { 'file' : 'ChardevFile',
3404 'serial' : 'ChardevHostdev',
3405 'parallel': 'ChardevHostdev',
3406 'pipe' : 'ChardevHostdev',
3407 'socket' : 'ChardevSocket',
3408 'udp' : 'ChardevUdp',
3409 'pty' : 'ChardevCommon',
3410 'null' : 'ChardevCommon',
3411 'mux' : 'ChardevMux',
3412 'msmouse': 'ChardevCommon',
3413 'braille': 'ChardevCommon',
3414 'testdev': 'ChardevCommon',
3415 'stdio' : 'ChardevStdio',
3416 'console': 'ChardevCommon',
3417 'spicevmc' : 'ChardevSpiceChannel',
3418 'spiceport' : 'ChardevSpicePort',
3420 'ringbuf': 'ChardevRingbuf',
3421 # next one is just for compatibility
3422 'memory' : 'ChardevRingbuf' } }
3427 # Return info about the chardev backend just created.
3429 # @pty: #optional name of the slave pseudoterminal device, present if
3430 # and only if a chardev of type 'pty' was created
3434 { 'struct' : 'ChardevReturn', 'data': { '*pty' : 'str' } }
3439 # Add a character device backend
3441 # @id: the chardev's ID, must be unique
3442 # @backend: backend type and parameters
3444 # Returns: ChardevReturn.
3448 { 'command': 'chardev-add', 'data': {'id' : 'str',
3449 'backend' : 'ChardevBackend' },
3450 'returns': 'ChardevReturn' }
3455 # Remove a character device backend
3457 # @id: the chardev's ID, must exist and not be in use
3459 # Returns: Nothing on success
3463 { 'command': 'chardev-remove', 'data': {'id': 'str'} }
3468 # An enumeration of TPM models
3470 # @tpm-tis: TPM TIS model
3474 { 'enum': 'TpmModel', 'data': [ 'tpm-tis' ] }
3477 # @query-tpm-models:
3479 # Return a list of supported TPM models
3481 # Returns: a list of TpmModel
3485 { 'command': 'query-tpm-models', 'returns': ['TpmModel'] }
3490 # An enumeration of TPM types
3492 # @passthrough: TPM passthrough type
3496 { 'enum': 'TpmType', 'data': [ 'passthrough' ] }
3501 # Return a list of supported TPM types
3503 # Returns: a list of TpmType
3507 { 'command': 'query-tpm-types', 'returns': ['TpmType'] }
3510 # @TPMPassthroughOptions:
3512 # Information about the TPM passthrough type
3514 # @path: #optional string describing the path used for accessing the TPM device
3516 # @cancel-path: #optional string showing the TPM's sysfs cancel file
3517 # for cancellation of TPM commands while they are executing
3521 { 'struct': 'TPMPassthroughOptions', 'data': { '*path' : 'str',
3522 '*cancel-path' : 'str'} }
3527 # A union referencing different TPM backend types' configuration options
3529 # @passthrough: The configuration options for the TPM passthrough type
3533 { 'union': 'TpmTypeOptions',
3534 'data': { 'passthrough' : 'TPMPassthroughOptions' } }
3539 # Information about the TPM
3541 # @id: The Id of the TPM
3543 # @model: The TPM frontend model
3545 # @options: The TPM (backend) type configuration options
3549 { 'struct': 'TPMInfo',
3550 'data': {'id': 'str',
3551 'model': 'TpmModel',
3552 'options': 'TpmTypeOptions' } }
3557 # Return information about the TPM device
3559 # Returns: @TPMInfo on success
3563 { 'command': 'query-tpm', 'returns': ['TPMInfo'] }
3568 # Specify an ACPI table on the command line to load.
3570 # At most one of @file and @data can be specified. The list of files specified
3571 # by any one of them is loaded and concatenated in order. If both are omitted,
3574 # Other fields / optargs can be used to override fields of the generic ACPI
3575 # table header; refer to the ACPI specification 5.0, section 5.2.6 System
3576 # Description Table Header. If a header field is not overridden, then the
3577 # corresponding value from the concatenated blob is used (in case of @file), or
3578 # it is filled in with a hard-coded value (in case of @data).
3580 # String fields are copied into the matching ACPI member from lowest address
3581 # upwards, and silently truncated / NUL-padded to length.
3583 # @sig: #optional table signature / identifier (4 bytes)
3585 # @rev: #optional table revision number (dependent on signature, 1 byte)
3587 # @oem_id: #optional OEM identifier (6 bytes)
3589 # @oem_table_id: #optional OEM table identifier (8 bytes)
3591 # @oem_rev: #optional OEM-supplied revision number (4 bytes)
3593 # @asl_compiler_id: #optional identifier of the utility that created the table
3596 # @asl_compiler_rev: #optional revision number of the utility that created the
3599 # @file: #optional colon (:) separated list of pathnames to load and
3600 # concatenate as table data. The resultant binary blob is expected to
3601 # have an ACPI table header. At least one file is required. This field
3604 # @data: #optional colon (:) separated list of pathnames to load and
3605 # concatenate as table data. The resultant binary blob must not have an
3606 # ACPI table header. At least one file is required. This field excludes
3611 { 'struct': 'AcpiTableOptions',
3616 '*oem_table_id': 'str',
3617 '*oem_rev': 'uint32',
3618 '*asl_compiler_id': 'str',
3619 '*asl_compiler_rev': 'uint32',
3624 # @CommandLineParameterType:
3626 # Possible types for an option parameter.
3628 # @string: accepts a character string
3630 # @boolean: accepts "on" or "off"
3632 # @number: accepts a number
3634 # @size: accepts a number followed by an optional suffix (K)ilo,
3635 # (M)ega, (G)iga, (T)era
3639 { 'enum': 'CommandLineParameterType',
3640 'data': ['string', 'boolean', 'number', 'size'] }
3643 # @CommandLineParameterInfo:
3645 # Details about a single parameter of a command line option.
3647 # @name: parameter name
3649 # @type: parameter @CommandLineParameterType
3651 # @help: #optional human readable text string, not suitable for parsing.
3653 # @default: #optional default value string (since 2.1)
3657 { 'struct': 'CommandLineParameterInfo',
3658 'data': { 'name': 'str',
3659 'type': 'CommandLineParameterType',
3661 '*default': 'str' } }
3664 # @CommandLineOptionInfo:
3666 # Details about a command line option, including its list of parameter details
3668 # @option: option name
3670 # @parameters: an array of @CommandLineParameterInfo
3674 { 'struct': 'CommandLineOptionInfo',
3675 'data': { 'option': 'str', 'parameters': ['CommandLineParameterInfo'] } }
3678 # @query-command-line-options:
3680 # Query command line option schema.
3682 # @option: #optional option name
3684 # Returns: list of @CommandLineOptionInfo for all options (or for the given
3685 # @option). Returns an error if the given @option doesn't exist.
3689 {'command': 'query-command-line-options', 'data': { '*option': 'str' },
3690 'returns': ['CommandLineOptionInfo'] }
3695 # A X86 32-bit register
3699 { 'enum': 'X86CPURegister32',
3700 'data': [ 'EAX', 'EBX', 'ECX', 'EDX', 'ESP', 'EBP', 'ESI', 'EDI' ] }
3703 # @X86CPUFeatureWordInfo
3705 # Information about a X86 CPU feature word
3707 # @cpuid-input-eax: Input EAX value for CPUID instruction for that feature word
3709 # @cpuid-input-ecx: #optional Input ECX value for CPUID instruction for that
3712 # @cpuid-register: Output register containing the feature bits
3714 # @features: value of output register, containing the feature bits
3718 { 'struct': 'X86CPUFeatureWordInfo',
3719 'data': { 'cpuid-input-eax': 'int',
3720 '*cpuid-input-ecx': 'int',
3721 'cpuid-register': 'X86CPURegister32',
3722 'features': 'int' } }
3727 # Not used by QMP; hack to let us use X86CPUFeatureWordInfoList internally
3731 { 'struct': 'DummyForceArrays',
3732 'data': { 'unused': ['X86CPUFeatureWordInfo'] } }
3738 # Packets receiving state
3740 # @normal: filter assigned packets according to the mac-table
3742 # @none: don't receive any assigned packet
3744 # @all: receive all assigned packets
3748 { 'enum': 'RxState', 'data': [ 'normal', 'none', 'all' ] }
3753 # Rx-filter information for a NIC.
3755 # @name: net client name
3757 # @promiscuous: whether promiscuous mode is enabled
3759 # @multicast: multicast receive state
3761 # @unicast: unicast receive state
3763 # @vlan: vlan receive state (Since 2.0)
3765 # @broadcast-allowed: whether to receive broadcast
3767 # @multicast-overflow: multicast table is overflowed or not
3769 # @unicast-overflow: unicast table is overflowed or not
3771 # @main-mac: the main macaddr string
3773 # @vlan-table: a list of active vlan id
3775 # @unicast-table: a list of unicast macaddr string
3777 # @multicast-table: a list of multicast macaddr string
3782 { 'struct': 'RxFilterInfo',
3785 'promiscuous': 'bool',
3786 'multicast': 'RxState',
3787 'unicast': 'RxState',
3789 'broadcast-allowed': 'bool',
3790 'multicast-overflow': 'bool',
3791 'unicast-overflow': 'bool',
3793 'vlan-table': ['int'],
3794 'unicast-table': ['str'],
3795 'multicast-table': ['str'] }}
3800 # Return rx-filter information for all NICs (or for the given NIC).
3802 # @name: #optional net client name
3804 # Returns: list of @RxFilterInfo for all NICs (or for the given NIC).
3805 # Returns an error if the given @name doesn't exist, or given
3806 # NIC doesn't support rx-filter querying, or given net client
3811 { 'command': 'query-rx-filter', 'data': { '*name': 'str' },
3812 'returns': ['RxFilterInfo'] }
3817 # Button of a pointer input device (mouse, tablet).
3821 { 'enum' : 'InputButton',
3822 'data' : [ 'left', 'middle', 'right', 'wheel-up', 'wheel-down' ] }
3827 # Position axis of a pointer input device (mouse, tablet).
3831 { 'enum' : 'InputAxis',
3832 'data' : [ 'x', 'y' ] }
3837 # Keyboard input event.
3839 # @key: Which key this event is for.
3840 # @down: True for key-down and false for key-up events.
3844 { 'struct' : 'InputKeyEvent',
3845 'data' : { 'key' : 'KeyValue',
3851 # Pointer button input event.
3853 # @button: Which button this event is for.
3854 # @down: True for key-down and false for key-up events.
3858 { 'struct' : 'InputBtnEvent',
3859 'data' : { 'button' : 'InputButton',
3865 # Pointer motion input event.
3867 # @axis: Which axis is referenced by @value.
3868 # @value: Pointer position. For absolute coordinates the
3869 # valid range is 0 -> 0x7ffff
3873 { 'struct' : 'InputMoveEvent',
3874 'data' : { 'axis' : 'InputAxis',
3880 # Input event union.
3882 # @key: Input event of Keyboard
3883 # @btn: Input event of pointer buttons
3884 # @rel: Input event of relative pointer motion
3885 # @abs: Input event of absolute pointer motion
3889 { 'union' : 'InputEvent',
3890 'data' : { 'key' : 'InputKeyEvent',
3891 'btn' : 'InputBtnEvent',
3892 'rel' : 'InputMoveEvent',
3893 'abs' : 'InputMoveEvent' } }
3898 # Send input event(s) to guest.
3900 # @device: #optional display device to send event(s) to.
3901 # @head: #optional head to send event(s) to, in case the
3902 # display device supports multiple scanouts.
3903 # @events: List of InputEvent union.
3905 # Returns: Nothing on success.
3907 # The @display and @head parameters can be used to send the input
3908 # event to specific input devices in case (a) multiple input devices
3909 # of the same kind are added to the virtual machine and (b) you have
3910 # configured input routing (see docs/multiseat.txt) for those input
3911 # devices. The parameters work exactly like the device and head
3912 # properties of input devices. If @device is missing, only devices
3913 # that have no input routing config are admissible. If @device is
3914 # specified, both input devices with and without input routing config
3915 # are admissible, but devices with input routing config take
3920 { 'command': 'input-send-event',
3921 'data': { '*device': 'str',
3923 'events' : [ 'InputEvent' ] } }
3928 # A discriminated record of NUMA options. (for OptsVisitor)
3932 { 'union': 'NumaOptions',
3934 'node': 'NumaNodeOptions' }}
3939 # Create a guest NUMA node. (for OptsVisitor)
3941 # @nodeid: #optional NUMA node ID (increase by 1 from 0 if omitted)
3943 # @cpus: #optional VCPUs belonging to this node (assign VCPUS round-robin
3946 # @mem: #optional memory size of this node; mutually exclusive with @memdev.
3947 # Equally divide total memory among nodes if both @mem and @memdev are
3950 # @memdev: #optional memory backend object. If specified for one node,
3951 # it must be specified for all nodes.
3955 { 'struct': 'NumaNodeOptions',
3957 '*nodeid': 'uint16',
3958 '*cpus': ['uint16'],
3965 # Host memory policy types
3967 # @default: restore default policy, remove any nondefault policy
3969 # @preferred: set the preferred host nodes for allocation
3971 # @bind: a strict policy that restricts memory allocation to the
3972 # host nodes specified
3974 # @interleave: memory allocations are interleaved across the set
3975 # of host nodes specified
3979 { 'enum': 'HostMemPolicy',
3980 'data': [ 'default', 'preferred', 'bind', 'interleave' ] }
3985 # Information about memory backend
3987 # @size: memory backend size
3989 # @merge: enables or disables memory merge support
3991 # @dump: includes memory backend's memory in a core dump or not
3993 # @prealloc: enables or disables memory preallocation
3995 # @host-nodes: host nodes for its memory policy
3997 # @policy: memory policy of memory backend
4002 { 'struct': 'Memdev',
4008 'host-nodes': ['uint16'],
4009 'policy': 'HostMemPolicy' }}
4014 # Returns information for all memory backends.
4016 # Returns: a list of @Memdev.
4020 { 'command': 'query-memdev', 'returns': ['Memdev'] }
4023 # @PCDIMMDeviceInfo:
4025 # PCDIMMDevice state information
4027 # @id: #optional device's ID
4029 # @addr: physical address, where device is mapped
4031 # @size: size of memory that the device provides
4033 # @slot: slot number at which device is plugged in
4035 # @node: NUMA node number where device is plugged in
4037 # @memdev: memory backend linked with device
4039 # @hotplugged: true if device was hotplugged
4041 # @hotpluggable: true if device if could be added/removed while machine is running
4045 { 'struct': 'PCDIMMDeviceInfo',
4046 'data': { '*id': 'str',
4052 'hotplugged': 'bool',
4053 'hotpluggable': 'bool'
4058 # @MemoryDeviceInfo:
4060 # Union containing information about a memory device
4064 { 'union': 'MemoryDeviceInfo', 'data': {'dimm': 'PCDIMMDeviceInfo'} }
4067 # @query-memory-devices
4069 # Lists available memory devices and their state
4073 { 'command': 'query-memory-devices', 'returns': ['MemoryDeviceInfo'] }
4077 # @DIMM: memory slot
4079 { 'enum': 'ACPISlotType', 'data': [ 'DIMM' ] }
4083 # OSPM Status Indication for a device
4084 # For description of possible values of @source and @status fields
4085 # see "_OST (OSPM Status Indication)" chapter of ACPI5.0 spec.
4087 # @device: #optional device ID associated with slot
4089 # @slot: slot ID, unique per slot of a given @slot-type
4091 # @slot-type: type of the slot
4093 # @source: an integer containing the source event
4095 # @status: an integer containing the status code
4099 { 'struct': 'ACPIOSTInfo',
4100 'data' : { '*device': 'str',
4102 'slot-type': 'ACPISlotType',
4107 # @query-acpi-ospm-status
4109 # Lists ACPI OSPM status of ACPI device objects,
4110 # which might be reported via _OST method
4114 { 'command': 'query-acpi-ospm-status', 'returns': ['ACPIOSTInfo'] }
4117 # @WatchdogExpirationAction
4119 # An enumeration of the actions taken when the watchdog device's timer is
4122 # @reset: system resets
4124 # @shutdown: system shutdown, note that it is similar to @powerdown, which
4125 # tries to set to system status and notify guest
4127 # @poweroff: system poweroff, the emulator program exits
4129 # @pause: system pauses, similar to @stop
4131 # @debug: system enters debug state
4133 # @none: nothing is done
4135 # @inject-nmi: a non-maskable interrupt is injected into the first VCPU (all
4136 # VCPUS on x86) (since 2.4)
4140 { 'enum': 'WatchdogExpirationAction',
4141 'data': [ 'reset', 'shutdown', 'poweroff', 'pause', 'debug', 'none',
4147 # An enumeration of the I/O operation types
4149 # @read: read operation
4151 # @write: write operation
4155 { 'enum': 'IoOperationType',
4156 'data': [ 'read', 'write' ] }
4161 # An enumeration of the actions taken when guest OS panic is detected
4163 # @pause: system pauses
4167 { 'enum': 'GuestPanicAction',
4168 'data': [ 'pause' ] }
4171 # @rtc-reset-reinjection
4173 # This command will reset the RTC interrupt reinjection backlog.
4174 # Can be used if another mechanism to synchronize guest time
4175 # is in effect, for example QEMU guest agent's guest-set-time
4180 { 'command': 'rtc-reset-reinjection' }
4182 # Rocker ethernet network switch
4183 { 'include': 'qapi/rocker.json' }
4188 # Mode of the replay subsystem.
4190 # @none: normal execution mode. Replay or record are not enabled.
4192 # @record: record mode. All non-deterministic data is written into the
4195 # @play: replay mode. Non-deterministic data required for system execution
4196 # is read from the log.
4200 { 'enum': 'ReplayMode',
4201 'data': [ 'none', 'record', 'play' ] }
4204 # @xen-load-devices-state:
4206 # Load the state of all devices from file. The RAM and the block devices
4207 # of the VM are not loaded by this command.
4209 # @filename: the file to load the state of the devices from as binary
4210 # data. See xen-save-devices-state.txt for a description of the binary
4215 { 'command': 'xen-load-devices-state', 'data': {'filename': 'str'} }
4220 # The struct describes capability for a specific GIC (Generic
4221 # Interrupt Controller) version. These bits are not only decided by
4222 # QEMU/KVM software version, but also decided by the hardware that
4223 # the program is running upon.
4225 # @version: version of GIC to be described. Currently, only 2 and 3
4228 # @emulated: whether current QEMU/hardware supports emulated GIC
4229 # device in user space.
4231 # @kernel: whether current QEMU/hardware supports hardware
4232 # accelerated GIC device in kernel.
4236 { 'struct': 'GICCapability',
4237 'data': { 'version': 'int',
4239 'kernel': 'bool' } }
4242 # @query-gic-capabilities:
4244 # This command is ARM-only. It will return a list of GICCapability
4245 # objects that describe its capability bits.
4247 # Returns: a list of GICCapability objects.
4251 { 'command': 'query-gic-capabilities', 'returns': ['GICCapability'] }