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' }
30 # Enable QMP capabilities.
36 # -> { "execute": "qmp_capabilities" }
39 # Notes: This command is valid exactly when first connecting: it must be
40 # issued before any other command will be accepted, and will fail once the
41 # monitor is accepting other commands. (see qemu docs/qmp-spec.txt)
46 { 'command': 'qmp_capabilities' }
51 # Policy for handling lost ticks in timer devices.
53 # @discard: throw away the missed tick(s) and continue with future injection
54 # normally. Guest time may be delayed, unless the OS has explicit
55 # handling of lost ticks
57 # @delay: continue to deliver ticks at the normal rate. Guest time will be
58 # delayed due to the late tick
60 # @merge: merge the missed tick(s) into one tick and inject. Guest time
61 # may be delayed, depending on how the OS reacts to the merging
64 # @slew: deliver ticks at a higher rate to catch up with the missed tick. The
65 # guest time should not be delayed once catchup is complete.
69 { 'enum': 'LostTickPolicy',
70 'data': ['discard', 'delay', 'merge', 'slew' ] }
75 # Allow client connections for VNC, Spice and socket based
76 # character devices to be passed in to QEMU via SCM_RIGHTS.
78 # @protocol: protocol name. Valid names are "vnc", "spice" or the
79 # name of a character device (eg. from -chardev id=XXXX)
81 # @fdname: file descriptor name previously passed via 'getfd' command
83 # @skipauth: #optional whether to skip authentication. Only applies
84 # to "vnc" and "spice" protocols
86 # @tls: #optional whether to perform TLS. Only applies to the "spice"
89 # Returns: nothing on success.
95 # -> { "execute": "add_client", "arguments": { "protocol": "vnc",
96 # "fdname": "myclient" } }
100 { 'command': 'add_client',
101 'data': { 'protocol': 'str', 'fdname': 'str', '*skipauth': 'bool',
107 # Guest name information.
109 # @name: #optional The name of the guest
113 { 'struct': 'NameInfo', 'data': {'*name': 'str'} }
118 # Return the name information of a guest.
120 # Returns: @NameInfo of the guest
126 # -> { "execute": "query-name" }
127 # <- { "return": { "name": "qemu-name" } }
130 { 'command': 'query-name', 'returns': 'NameInfo' }
135 # Information about support for KVM acceleration
137 # @enabled: true if KVM acceleration is active
139 # @present: true if KVM acceleration is built into this executable
143 { 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} }
148 # Returns information about KVM acceleration
156 # -> { "execute": "query-kvm" }
157 # <- { "return": { "enabled": true, "present": true } }
160 { 'command': 'query-kvm', 'returns': 'KvmInfo' }
165 # An enumeration of VM run states.
167 # @debug: QEMU is running on a debugger
169 # @finish-migrate: guest is paused to finish the migration process
171 # @inmigrate: guest is paused waiting for an incoming migration. Note
172 # that this state does not tell whether the machine will start at the
173 # end of the migration. This depends on the command-line -S option and
174 # any invocation of 'stop' or 'cont' that has happened since QEMU was
177 # @internal-error: An internal error that prevents further guest execution
180 # @io-error: the last IOP has failed and the device is configured to pause
183 # @paused: guest has been paused via the 'stop' command
185 # @postmigrate: guest is paused following a successful 'migrate'
187 # @prelaunch: QEMU was started with -S and guest has not started
189 # @restore-vm: guest is paused to restore VM state
191 # @running: guest is actively running
193 # @save-vm: guest is paused to save the VM state
195 # @shutdown: guest is shut down (and -no-shutdown is in use)
197 # @suspended: guest is suspended (ACPI S3)
199 # @watchdog: the watchdog action is configured to pause and has been triggered
201 # @guest-panicked: guest has been panicked as a result of guest OS panic
203 # @colo: guest is paused to save/restore VM state under colo checkpoint,
204 # VM can not get into this state unless colo capability is enabled
205 # for migration. (since 2.8)
207 { 'enum': 'RunState',
208 'data': [ 'debug', 'inmigrate', 'internal-error', 'io-error', 'paused',
209 'postmigrate', 'prelaunch', 'finish-migrate', 'restore-vm',
210 'running', 'save-vm', 'shutdown', 'suspended', 'watchdog',
211 'guest-panicked', 'colo' ] }
216 # Information about VCPU run state
218 # @running: true if all VCPUs are runnable, false if not runnable
220 # @singlestep: true if VCPUs are in single-step mode
222 # @status: the virtual machine @RunState
226 # Notes: @singlestep is enabled through the GDB stub
228 { 'struct': 'StatusInfo',
229 'data': {'running': 'bool', 'singlestep': 'bool', 'status': 'RunState'} }
234 # Query the run status of all VCPUs
236 # Returns: @StatusInfo reflecting all VCPUs
242 # -> { "execute": "query-status" }
243 # <- { "return": { "running": true,
244 # "singlestep": false,
245 # "status": "running" } }
248 { 'command': 'query-status', 'returns': 'StatusInfo' }
253 # Guest UUID information (Universally Unique Identifier).
255 # @UUID: the UUID of the guest
259 # Notes: If no UUID was specified for the guest, a null UUID is returned.
261 { 'struct': 'UuidInfo', 'data': {'UUID': 'str'} }
266 # Query the guest UUID information.
268 # Returns: The @UuidInfo for the guest
274 # -> { "execute": "query-uuid" }
275 # <- { "return": { "UUID": "550e8400-e29b-41d4-a716-446655440000" } }
278 { 'command': 'query-uuid', 'returns': 'UuidInfo' }
283 # Information about a character device.
285 # @label: the label of the character device
287 # @filename: the filename of the character device
289 # @frontend-open: shows whether the frontend device attached to this backend
290 # (eg. with the chardev=... option) is in open or closed state
293 # Notes: @filename is encoded using the QEMU command line character device
294 # encoding. See the QEMU man page for details.
298 { 'struct': 'ChardevInfo', 'data': {'label': 'str',
300 'frontend-open': 'bool'} }
305 # Returns information about current character devices.
307 # Returns: a list of @ChardevInfo
313 # -> { "execute": "query-chardev" }
317 # "label": "charchannel0",
318 # "filename": "unix:/var/lib/libvirt/qemu/seabios.rhel6.agent,server",
319 # "frontend-open": false
322 # "label": "charmonitor",
323 # "filename": "unix:/var/lib/libvirt/qemu/seabios.rhel6.monitor,server",
324 # "frontend-open": true
327 # "label": "charserial0",
328 # "filename": "pty:/dev/pts/2",
329 # "frontend-open": true
335 { 'command': 'query-chardev', 'returns': ['ChardevInfo'] }
338 # @ChardevBackendInfo:
340 # Information about a character device backend
342 # @name: The backend name
346 { 'struct': 'ChardevBackendInfo', 'data': {'name': 'str'} }
349 # @query-chardev-backends:
351 # Returns information about character device backends.
353 # Returns: a list of @ChardevBackendInfo
359 # -> { "execute": "query-chardev-backends" }
378 { 'command': 'query-chardev-backends', 'returns': ['ChardevBackendInfo'] }
383 # An enumeration of data format.
385 # @utf8: Data is a UTF-8 string (RFC 3629)
387 # @base64: Data is Base64 encoded binary (RFC 3548)
391 { 'enum': 'DataFormat',
392 'data': [ 'utf8', 'base64' ] }
397 # Write to a ring buffer character device.
399 # @device: the ring buffer character device name
401 # @data: data to write
403 # @format: #optional data encoding (default 'utf8').
404 # - base64: data must be base64 encoded text. Its binary
405 # decoding gets written.
406 # - utf8: data's UTF-8 encoding is written
407 # - data itself is always Unicode regardless of format, like
410 # Returns: Nothing on success
416 # -> { "execute": "ringbuf-write",
417 # "arguments": { "device": "foo",
418 # "data": "abcdefgh",
419 # "format": "utf8" } }
420 # <- { "return": {} }
423 { 'command': 'ringbuf-write',
424 'data': {'device': 'str', 'data': 'str',
425 '*format': 'DataFormat'} }
430 # Read from a ring buffer character device.
432 # @device: the ring buffer character device name
434 # @size: how many bytes to read at most
436 # @format: #optional data encoding (default 'utf8').
437 # - base64: the data read is returned in base64 encoding.
438 # - utf8: the data read is interpreted as UTF-8.
439 # Bug: can screw up when the buffer contains invalid UTF-8
440 # sequences, NUL characters, after the ring buffer lost
441 # data, and when reading stops because the size limit is
443 # - The return value is always Unicode regardless of format,
444 # like any other string.
446 # Returns: data read from the device
452 # -> { "execute": "ringbuf-read",
453 # "arguments": { "device": "foo",
455 # "format": "utf8" } }
456 # <- { "return": "abcdefgh" }
459 { 'command': 'ringbuf-read',
460 'data': {'device': 'str', 'size': 'int', '*format': 'DataFormat'},
466 # Information about a QMP event
468 # @name: The event name
472 { 'struct': 'EventInfo', 'data': {'name': 'str'} }
477 # Return a list of supported QMP events by this server
479 # Returns: A list of @EventInfo for all supported events
485 # -> { "execute": "query-events" }
497 # Note: This example has been shortened as the real response is too long.
500 { 'command': 'query-events', 'returns': ['EventInfo'] }
505 # Detailed migration status.
507 # @transferred: amount of bytes already transferred to the target VM
509 # @remaining: amount of bytes remaining to be transferred to the target VM
511 # @total: total amount of bytes involved in the migration process
513 # @duplicate: number of duplicate (zero) pages (since 1.2)
515 # @skipped: number of skipped zero pages (since 1.5)
517 # @normal: number of normal pages (since 1.2)
519 # @normal-bytes: number of normal bytes sent (since 1.2)
521 # @dirty-pages-rate: number of pages dirtied by second by the
524 # @mbps: throughput in megabits/sec. (since 1.6)
526 # @dirty-sync-count: number of times that dirty ram was synchronized (since 2.1)
528 # @postcopy-requests: The number of page requests received from the destination
533 { 'struct': 'MigrationStats',
534 'data': {'transferred': 'int', 'remaining': 'int', 'total': 'int' ,
535 'duplicate': 'int', 'skipped': 'int', 'normal': 'int',
536 'normal-bytes': 'int', 'dirty-pages-rate' : 'int',
537 'mbps' : 'number', 'dirty-sync-count' : 'int',
538 'postcopy-requests' : 'int' } }
543 # Detailed XBZRLE migration cache statistics
545 # @cache-size: XBZRLE cache size
547 # @bytes: amount of bytes already transferred to the target VM
549 # @pages: amount of pages transferred to the target VM
551 # @cache-miss: number of cache miss
553 # @cache-miss-rate: rate of cache miss (since 2.1)
555 # @overflow: number of overflows
559 { 'struct': 'XBZRLECacheStats',
560 'data': {'cache-size': 'int', 'bytes': 'int', 'pages': 'int',
561 'cache-miss': 'int', 'cache-miss-rate': 'number',
562 'overflow': 'int' } }
567 # An enumeration of migration status.
569 # @none: no migration has ever happened.
571 # @setup: migration process has been initiated.
573 # @cancelling: in the process of cancelling migration.
575 # @cancelled: cancelling migration is finished.
577 # @active: in the process of doing migration.
579 # @postcopy-active: like active, but now in postcopy mode. (since 2.5)
581 # @completed: migration is finished.
583 # @failed: some error occurred during migration process.
585 # @colo: VM is in the process of fault tolerance, VM can not get into this
586 # state unless colo capability is enabled for migration. (since 2.8)
591 { 'enum': 'MigrationStatus',
592 'data': [ 'none', 'setup', 'cancelling', 'cancelled',
593 'active', 'postcopy-active', 'completed', 'failed', 'colo' ] }
598 # Information about current migration process.
600 # @status: #optional @MigrationStatus describing the current migration status.
601 # If this field is not returned, no migration process
604 # @ram: #optional @MigrationStats containing detailed migration
605 # status, only returned if status is 'active' or
606 # 'completed'(since 1.2)
608 # @disk: #optional @MigrationStats containing detailed disk migration
609 # status, only returned if status is 'active' and it is a block
612 # @xbzrle-cache: #optional @XBZRLECacheStats containing detailed XBZRLE
613 # migration statistics, only returned if XBZRLE feature is on and
614 # status is 'active' or 'completed' (since 1.2)
616 # @total-time: #optional total amount of milliseconds since migration started.
617 # If migration has ended, it returns the total migration
620 # @downtime: #optional only present when migration finishes correctly
621 # total downtime in milliseconds for the guest.
624 # @expected-downtime: #optional only present while migration is active
625 # expected downtime in milliseconds for the guest in last walk
626 # of the dirty bitmap. (since 1.3)
628 # @setup-time: #optional amount of setup time in milliseconds _before_ the
629 # iterations begin but _after_ the QMP command is issued. This is designed
630 # to provide an accounting of any activities (such as RDMA pinning) which
631 # may be expensive, but do not actually occur during the iterative
632 # migration rounds themselves. (since 1.6)
634 # @cpu-throttle-percentage: #optional percentage of time guest cpus are being
635 # throttled during auto-converge. This is only present when auto-converge
636 # has started throttling guest cpus. (Since 2.7)
638 # @error-desc: #optional the human readable error description string, when
639 # @status is 'failed'. Clients should not attempt to parse the
640 # error strings. (Since 2.7)
644 { 'struct': 'MigrationInfo',
645 'data': {'*status': 'MigrationStatus', '*ram': 'MigrationStats',
646 '*disk': 'MigrationStats',
647 '*xbzrle-cache': 'XBZRLECacheStats',
648 '*total-time': 'int',
649 '*expected-downtime': 'int',
651 '*setup-time': 'int',
652 '*cpu-throttle-percentage': 'int',
653 '*error-desc': 'str'} }
658 # Returns information about current migration process. If migration
659 # is active there will be another json-object with RAM migration
660 # status and if block migration is active another one with block
663 # Returns: @MigrationInfo
669 # 1. Before the first migration
671 # -> { "execute": "query-migrate" }
672 # <- { "return": {} }
674 # 2. Migration is done and has succeeded
676 # -> { "execute": "query-migrate" }
678 # "status": "completed",
683 # "total-time":12345,
684 # "setup-time":12345,
688 # "normal-bytes":123456,
689 # "dirty-sync-count":15
694 # 3. Migration is done and has failed
696 # -> { "execute": "query-migrate" }
697 # <- { "return": { "status": "failed" } }
699 # 4. Migration is being performed and is not a block migration:
701 # -> { "execute": "query-migrate" }
709 # "total-time":12345,
710 # "setup-time":12345,
711 # "expected-downtime":12345,
714 # "normal-bytes":123456,
715 # "dirty-sync-count":15
720 # 5. Migration is being performed and is a block migration:
722 # -> { "execute": "query-migrate" }
728 # "remaining":1053304,
729 # "transferred":3720,
730 # "total-time":12345,
731 # "setup-time":12345,
732 # "expected-downtime":12345,
735 # "normal-bytes":123456,
736 # "dirty-sync-count":15
740 # "remaining":20880384,
741 # "transferred":91136
746 # 6. Migration is being performed and XBZRLE is active:
748 # -> { "execute": "query-migrate" }
752 # "capabilities" : [ { "capability": "xbzrle", "state" : true } ],
755 # "remaining":1053304,
756 # "transferred":3720,
757 # "total-time":12345,
758 # "setup-time":12345,
759 # "expected-downtime":12345,
762 # "normal-bytes":3412992,
763 # "dirty-sync-count":15
766 # "cache-size":67108864,
770 # "cache-miss-rate":0.123,
777 { 'command': 'query-migrate', 'returns': 'MigrationInfo' }
780 # @MigrationCapability:
782 # Migration capabilities enumeration
784 # @xbzrle: Migration supports xbzrle (Xor Based Zero Run Length Encoding).
785 # This feature allows us to minimize migration traffic for certain work
786 # loads, by sending compressed difference of the pages
788 # @rdma-pin-all: Controls whether or not the entire VM memory footprint is
789 # mlock()'d on demand or all at once. Refer to docs/rdma.txt for usage.
790 # Disabled by default. (since 2.0)
792 # @zero-blocks: During storage migration encode blocks of zeroes efficiently. This
793 # essentially saves 1MB of zeroes per block on the wire. Enabling requires
794 # source and target VM to support this feature. To enable it is sufficient
795 # to enable the capability on the source VM. The feature is disabled by
796 # default. (since 1.6)
798 # @compress: Use multiple compression threads to accelerate live migration.
799 # This feature can help to reduce the migration traffic, by sending
800 # compressed pages. Please note that if compress and xbzrle are both
801 # on, compress only takes effect in the ram bulk stage, after that,
802 # it will be disabled and only xbzrle takes effect, this can help to
803 # minimize migration traffic. The feature is disabled by default.
806 # @events: generate events for each migration state change
809 # @auto-converge: If enabled, QEMU will automatically throttle down the guest
810 # to speed up convergence of RAM migration. (since 1.6)
812 # @postcopy-ram: Start executing on the migration target before all of RAM has
813 # been migrated, pulling the remaining pages along as needed. NOTE: If
814 # the migration fails during postcopy the VM will fail. (since 2.6)
816 # @x-colo: If enabled, migration will never end, and the state of the VM on the
817 # primary side will be migrated continuously to the VM on secondary
818 # side, this process is called COarse-Grain LOck Stepping (COLO) for
819 # Non-stop Service. (since 2.8)
823 { 'enum': 'MigrationCapability',
824 'data': ['xbzrle', 'rdma-pin-all', 'auto-converge', 'zero-blocks',
825 'compress', 'events', 'postcopy-ram', 'x-colo'] }
828 # @MigrationCapabilityStatus:
830 # Migration capability information
832 # @capability: capability enum
834 # @state: capability state bool
838 { 'struct': 'MigrationCapabilityStatus',
839 'data': { 'capability' : 'MigrationCapability', 'state' : 'bool' } }
842 # @migrate-set-capabilities:
844 # Enable/Disable the following migration capabilities (like xbzrle)
846 # @capabilities: json array of capability modifications to make
852 # -> { "execute": "migrate-set-capabilities" , "arguments":
853 # { "capabilities": [ { "capability": "xbzrle", "state": true } ] } }
856 { 'command': 'migrate-set-capabilities',
857 'data': { 'capabilities': ['MigrationCapabilityStatus'] } }
860 # @query-migrate-capabilities:
862 # Returns information about the current migration capabilities status
864 # Returns: @MigrationCapabilitiesStatus
870 # -> { "execute": "query-migrate-capabilities" }
872 # {"state": false, "capability": "xbzrle"},
873 # {"state": false, "capability": "rdma-pin-all"},
874 # {"state": false, "capability": "auto-converge"},
875 # {"state": false, "capability": "zero-blocks"},
876 # {"state": false, "capability": "compress"},
877 # {"state": true, "capability": "events"},
878 # {"state": false, "capability": "postcopy-ram"},
879 # {"state": false, "capability": "x-colo"}
883 { 'command': 'query-migrate-capabilities', 'returns': ['MigrationCapabilityStatus']}
886 # @MigrationParameter:
888 # Migration parameters enumeration
890 # @compress-level: Set the compression level to be used in live migration,
891 # the compression level is an integer between 0 and 9, where 0 means
892 # no compression, 1 means the best compression speed, and 9 means best
893 # compression ratio which will consume more CPU.
895 # @compress-threads: Set compression thread count to be used in live migration,
896 # the compression thread count is an integer between 1 and 255.
898 # @decompress-threads: Set decompression thread count to be used in live
899 # migration, the decompression thread count is an integer between 1
900 # and 255. Usually, decompression is at least 4 times as fast as
901 # compression, so set the decompress-threads to the number about 1/4
902 # of compress-threads is adequate.
904 # @cpu-throttle-initial: Initial percentage of time guest cpus are throttled
905 # when migration auto-converge is activated. The
906 # default value is 20. (Since 2.7)
908 # @cpu-throttle-increment: throttle percentage increase each time
909 # auto-converge detects that migration is not making
910 # progress. The default value is 10. (Since 2.7)
912 # @tls-creds: ID of the 'tls-creds' object that provides credentials for
913 # establishing a TLS connection over the migration data channel.
914 # On the outgoing side of the migration, the credentials must
915 # be for a 'client' endpoint, while for the incoming side the
916 # credentials must be for a 'server' endpoint. Setting this
917 # will enable TLS for all migrations. The default is unset,
918 # resulting in unsecured migration at the QEMU level. (Since 2.7)
920 # @tls-hostname: hostname of the target host for the migration. This is
921 # required when using x509 based TLS credentials and the
922 # migration URI does not already include a hostname. For
923 # example if using fd: or exec: based migration, the
924 # hostname must be provided so that the server's x509
925 # certificate identity can be validated. (Since 2.7)
927 # @max-bandwidth: to set maximum speed for migration. maximum speed in
928 # bytes per second. (Since 2.8)
930 # @downtime-limit: set maximum tolerated downtime for migration. maximum
931 # downtime in milliseconds (Since 2.8)
933 # @x-checkpoint-delay: The delay time (in ms) between two COLO checkpoints in
934 # periodic mode. (Since 2.8)
938 { 'enum': 'MigrationParameter',
939 'data': ['compress-level', 'compress-threads', 'decompress-threads',
940 'cpu-throttle-initial', 'cpu-throttle-increment',
941 'tls-creds', 'tls-hostname', 'max-bandwidth',
942 'downtime-limit', 'x-checkpoint-delay' ] }
945 # @migrate-set-parameters:
947 # Set various migration parameters. See MigrationParameters for details.
953 # -> { "execute": "migrate-set-parameters" ,
954 # "arguments": { "compress-level": 1 } }
957 { 'command': 'migrate-set-parameters', 'boxed': true,
958 'data': 'MigrationParameters' }
961 # @MigrationParameters:
963 # Optional members can be omitted on input ('migrate-set-parameters')
964 # but most members will always be present on output
965 # ('query-migrate-parameters'), with the exception of tls-creds and
968 # @compress-level: #optional compression level
970 # @compress-threads: #optional compression thread count
972 # @decompress-threads: #optional decompression thread count
974 # @cpu-throttle-initial: #optional Initial percentage of time guest cpus are
975 # throttledwhen migration auto-converge is activated.
976 # The default value is 20. (Since 2.7)
978 # @cpu-throttle-increment: #optional throttle percentage increase each time
979 # auto-converge detects that migration is not making
980 # progress. The default value is 10. (Since 2.7)
982 # @tls-creds: #optional ID of the 'tls-creds' object that provides credentials
983 # for establishing a TLS connection over the migration data
984 # channel. On the outgoing side of the migration, the credentials
985 # must be for a 'client' endpoint, while for the incoming side the
986 # credentials must be for a 'server' endpoint. Setting this
987 # will enable TLS for all migrations. The default is unset,
988 # resulting in unsecured migration at the QEMU level. (Since 2.7)
990 # @tls-hostname: #optional hostname of the target host for the migration. This
991 # is required when using x509 based TLS credentials and the
992 # migration URI does not already include a hostname. For
993 # example if using fd: or exec: based migration, the
994 # hostname must be provided so that the server's x509
995 # certificate identity can be validated. (Since 2.7)
997 # @max-bandwidth: to set maximum speed for migration. maximum speed in
998 # bytes per second. (Since 2.8)
1000 # @downtime-limit: set maximum tolerated downtime for migration. maximum
1001 # downtime in milliseconds (Since 2.8)
1003 # @x-checkpoint-delay: the delay time between two COLO checkpoints. (Since 2.8)
1007 { 'struct': 'MigrationParameters',
1008 'data': { '*compress-level': 'int',
1009 '*compress-threads': 'int',
1010 '*decompress-threads': 'int',
1011 '*cpu-throttle-initial': 'int',
1012 '*cpu-throttle-increment': 'int',
1013 '*tls-creds': 'str',
1014 '*tls-hostname': 'str',
1015 '*max-bandwidth': 'int',
1016 '*downtime-limit': 'int',
1017 '*x-checkpoint-delay': 'int'} }
1020 # @query-migrate-parameters:
1022 # Returns information about the current migration parameters
1024 # Returns: @MigrationParameters
1030 # -> { "execute": "query-migrate-parameters" }
1032 # "decompress-threads": 2,
1033 # "cpu-throttle-increment": 10,
1034 # "compress-threads": 8,
1035 # "compress-level": 1,
1036 # "cpu-throttle-initial": 20,
1037 # "max-bandwidth": 33554432,
1038 # "downtime-limit": 300
1043 { 'command': 'query-migrate-parameters',
1044 'returns': 'MigrationParameters' }
1047 # @client_migrate_info:
1049 # Set migration information for remote display. This makes the server
1050 # ask the client to automatically reconnect using the new parameters
1051 # once migration finished successfully. Only implemented for SPICE.
1053 # @protocol: must be "spice"
1054 # @hostname: migration target hostname
1055 # @port: #optional spice tcp port for plaintext channels
1056 # @tls-port: #optional spice tcp port for tls-secured channels
1057 # @cert-subject: #optional server certificate subject
1063 # -> { "execute": "client_migrate_info",
1064 # "arguments": { "protocol": "spice",
1065 # "hostname": "virt42.lab.kraxel.org",
1067 # <- { "return": {} }
1070 { 'command': 'client_migrate_info',
1071 'data': { 'protocol': 'str', 'hostname': 'str', '*port': 'int',
1072 '*tls-port': 'int', '*cert-subject': 'str' } }
1075 # @migrate-start-postcopy:
1077 # Followup to a migration command to switch the migration to postcopy mode.
1078 # The postcopy-ram capability must be set before the original migration
1085 # -> { "execute": "migrate-start-postcopy" }
1086 # <- { "return": {} }
1089 { 'command': 'migrate-start-postcopy' }
1094 # The message transmission between Primary side and Secondary side.
1096 # @checkpoint-ready: Secondary VM (SVM) is ready for checkpointing
1098 # @checkpoint-request: Primary VM (PVM) tells SVM to prepare for checkpointing
1100 # @checkpoint-reply: SVM gets PVM's checkpoint request
1102 # @vmstate-send: VM's state will be sent by PVM.
1104 # @vmstate-size: The total size of VMstate.
1106 # @vmstate-received: VM's state has been received by SVM.
1108 # @vmstate-loaded: VM's state has been loaded by SVM.
1112 { 'enum': 'COLOMessage',
1113 'data': [ 'checkpoint-ready', 'checkpoint-request', 'checkpoint-reply',
1114 'vmstate-send', 'vmstate-size', 'vmstate-received',
1115 'vmstate-loaded' ] }
1122 # @unknown: unknown mode
1124 # @primary: master side
1126 # @secondary: slave side
1130 { 'enum': 'COLOMode',
1131 'data': [ 'unknown', 'primary', 'secondary'] }
1136 # An enumeration of COLO failover status
1138 # @none: no failover has ever happened
1140 # @require: got failover requirement but not handled
1142 # @active: in the process of doing failover
1144 # @completed: finish the process of failover
1148 { 'enum': 'FailoverStatus',
1149 'data': [ 'none', 'require', 'active', 'completed'] }
1152 # @x-colo-lost-heartbeat:
1154 # Tell qemu that heartbeat is lost, request it to do takeover procedures.
1155 # If this command is sent to the PVM, the Primary side will exit COLO mode.
1156 # If sent to the Secondary, the Secondary side will run failover work,
1157 # then takes over server operation to become the service VM.
1161 { 'command': 'x-colo-lost-heartbeat' }
1166 # Information about a mouse device.
1168 # @name: the name of the mouse device
1170 # @index: the index of the mouse device
1172 # @current: true if this device is currently receiving mouse events
1174 # @absolute: true if this device supports absolute coordinates as input
1178 { 'struct': 'MouseInfo',
1179 'data': {'name': 'str', 'index': 'int', 'current': 'bool',
1180 'absolute': 'bool'} }
1185 # Returns information about each active mouse device
1187 # Returns: a list of @MouseInfo for each device
1193 # -> { "execute": "query-mice" }
1196 # "name":"QEMU Microsoft Mouse",
1202 # "name":"QEMU PS/2 Mouse",
1211 { 'command': 'query-mice', 'returns': ['MouseInfo'] }
1216 # An enumeration of cpu types that enable additional information during
1221 { 'enum': 'CpuInfoArch',
1222 'data': ['x86', 'sparc', 'ppc', 'mips', 'tricore', 'other' ] }
1227 # Information about a virtual CPU
1229 # @CPU: the index of the virtual CPU
1231 # @current: this only exists for backwards compatibility and should be ignored
1233 # @halted: true if the virtual CPU is in the halt state. Halt usually refers
1234 # to a processor specific low power mode.
1236 # @qom_path: path to the CPU object in the QOM tree (since 2.4)
1238 # @thread_id: ID of the underlying host thread
1240 # @arch: architecture of the cpu, which determines which additional fields
1241 # will be listed (since 2.6)
1245 # Notes: @halted is a transient state that changes frequently. By the time the
1246 # data is sent to the client, the guest may no longer be halted.
1248 { 'union': 'CpuInfo',
1249 'base': {'CPU': 'int', 'current': 'bool', 'halted': 'bool',
1250 'qom_path': 'str', 'thread_id': 'int', 'arch': 'CpuInfoArch' },
1251 'discriminator': 'arch',
1252 'data': { 'x86': 'CpuInfoX86',
1253 'sparc': 'CpuInfoSPARC',
1254 'ppc': 'CpuInfoPPC',
1255 'mips': 'CpuInfoMIPS',
1256 'tricore': 'CpuInfoTricore',
1257 'other': 'CpuInfoOther' } }
1262 # Additional information about a virtual i386 or x86_64 CPU
1264 # @pc: the 64-bit instruction pointer
1268 { 'struct': 'CpuInfoX86', 'data': { 'pc': 'int' } }
1273 # Additional information about a virtual SPARC CPU
1275 # @pc: the PC component of the instruction pointer
1277 # @npc: the NPC component of the instruction pointer
1281 { 'struct': 'CpuInfoSPARC', 'data': { 'pc': 'int', 'npc': 'int' } }
1286 # Additional information about a virtual PPC CPU
1288 # @nip: the instruction pointer
1292 { 'struct': 'CpuInfoPPC', 'data': { 'nip': 'int' } }
1297 # Additional information about a virtual MIPS CPU
1299 # @PC: the instruction pointer
1303 { 'struct': 'CpuInfoMIPS', 'data': { 'PC': 'int' } }
1308 # Additional information about a virtual Tricore CPU
1310 # @PC: the instruction pointer
1314 { 'struct': 'CpuInfoTricore', 'data': { 'PC': 'int' } }
1319 # No additional information is available about the virtual CPU
1324 { 'struct': 'CpuInfoOther', 'data': { } }
1329 # Returns a list of information about each virtual CPU.
1331 # Returns: a list of @CpuInfo for each virtual CPU
1337 # -> { "execute": "query-cpus" }
1343 # "qom_path":"/machine/unattached/device[0]",
1352 # "qom_path":"/machine/unattached/device[2]",
1361 { 'command': 'query-cpus', 'returns': ['CpuInfo'] }
1366 # Information about an iothread
1368 # @id: the identifier of the iothread
1370 # @thread-id: ID of the underlying host thread
1374 { 'struct': 'IOThreadInfo',
1375 'data': {'id': 'str', 'thread-id': 'int'} }
1380 # Returns a list of information about each iothread.
1382 # Note: this list excludes the QEMU main loop thread, which is not declared
1383 # using the -object iothread command-line option. It is always the main thread
1386 # Returns: a list of @IOThreadInfo for each iothread
1392 # -> { "execute": "query-iothreads" }
1406 { 'command': 'query-iothreads', 'returns': ['IOThreadInfo'] }
1409 # @NetworkAddressFamily:
1411 # The network address family
1413 # @ipv4: IPV4 family
1415 # @ipv6: IPV6 family
1417 # @unix: unix socket
1419 # @vsock: vsock family (since 2.8)
1421 # @unknown: otherwise
1425 { 'enum': 'NetworkAddressFamily',
1426 'data': [ 'ipv4', 'ipv6', 'unix', 'vsock', 'unknown' ] }
1431 # The basic information for vnc network connection
1435 # @service: The service name of the vnc port. This may depend on the host
1436 # system's service database so symbolic names should not be relied
1439 # @family: address family
1441 # @websocket: true in case the socket is a websocket (since 2.3).
1445 { 'struct': 'VncBasicInfo',
1446 'data': { 'host': 'str',
1448 'family': 'NetworkAddressFamily',
1449 'websocket': 'bool' } }
1454 # The network connection information for server
1456 # @auth: #optional, authentication method
1460 { 'struct': 'VncServerInfo',
1461 'base': 'VncBasicInfo',
1462 'data': { '*auth': 'str' } }
1467 # Information about a connected VNC client.
1469 # @x509_dname: #optional If x509 authentication is in use, the Distinguished
1470 # Name of the client.
1472 # @sasl_username: #optional If SASL authentication is in use, the SASL username
1473 # used for authentication.
1477 { 'struct': 'VncClientInfo',
1478 'base': 'VncBasicInfo',
1479 'data': { '*x509_dname': 'str', '*sasl_username': 'str' } }
1484 # Information about the VNC session.
1486 # @enabled: true if the VNC server is enabled, false otherwise
1488 # @host: #optional The hostname the VNC server is bound to. This depends on
1489 # the name resolution on the host and may be an IP address.
1491 # @family: #optional 'ipv6' if the host is listening for IPv6 connections
1492 # 'ipv4' if the host is listening for IPv4 connections
1493 # 'unix' if the host is listening on a unix domain socket
1494 # 'unknown' otherwise
1496 # @service: #optional The service name of the server's port. This may depends
1497 # on the host system's service database so symbolic names should not
1500 # @auth: #optional the current authentication type used by the server
1501 # 'none' if no authentication is being used
1502 # 'vnc' if VNC authentication is being used
1503 # 'vencrypt+plain' if VEncrypt is used with plain text authentication
1504 # 'vencrypt+tls+none' if VEncrypt is used with TLS and no authentication
1505 # 'vencrypt+tls+vnc' if VEncrypt is used with TLS and VNC authentication
1506 # 'vencrypt+tls+plain' if VEncrypt is used with TLS and plain text auth
1507 # 'vencrypt+x509+none' if VEncrypt is used with x509 and no auth
1508 # 'vencrypt+x509+vnc' if VEncrypt is used with x509 and VNC auth
1509 # 'vencrypt+x509+plain' if VEncrypt is used with x509 and plain text auth
1510 # 'vencrypt+tls+sasl' if VEncrypt is used with TLS and SASL auth
1511 # 'vencrypt+x509+sasl' if VEncrypt is used with x509 and SASL auth
1513 # @clients: a list of @VncClientInfo of all currently connected clients
1517 { 'struct': 'VncInfo',
1518 'data': {'enabled': 'bool', '*host': 'str',
1519 '*family': 'NetworkAddressFamily',
1520 '*service': 'str', '*auth': 'str', '*clients': ['VncClientInfo']} }
1525 # vnc primary authentication method.
1529 { 'enum': 'VncPrimaryAuth',
1530 'data': [ 'none', 'vnc', 'ra2', 'ra2ne', 'tight', 'ultra',
1531 'tls', 'vencrypt', 'sasl' ] }
1534 # @VncVencryptSubAuth:
1536 # vnc sub authentication method with vencrypt.
1540 { 'enum': 'VncVencryptSubAuth',
1542 'tls-none', 'x509-none',
1543 'tls-vnc', 'x509-vnc',
1544 'tls-plain', 'x509-plain',
1545 'tls-sasl', 'x509-sasl' ] }
1550 # Information about a vnc server
1552 # @id: vnc server name.
1554 # @server: A list of @VncBasincInfo describing all listening sockets.
1555 # The list can be empty (in case the vnc server is disabled).
1556 # It also may have multiple entries: normal + websocket,
1557 # possibly also ipv4 + ipv6 in the future.
1559 # @clients: A list of @VncClientInfo of all currently connected clients.
1560 # The list can be empty, for obvious reasons.
1562 # @auth: The current authentication type used by the server
1564 # @vencrypt: #optional The vencrypt sub authentication type used by the server,
1565 # only specified in case auth == vencrypt.
1567 # @display: #optional The display device the vnc server is linked to.
1571 { 'struct': 'VncInfo2',
1572 'data': { 'id' : 'str',
1573 'server' : ['VncBasicInfo'],
1574 'clients' : ['VncClientInfo'],
1575 'auth' : 'VncPrimaryAuth',
1576 '*vencrypt' : 'VncVencryptSubAuth',
1577 '*display' : 'str' } }
1582 # Returns information about the current VNC server
1590 # -> { "execute": "query-vnc" }
1594 # "service":"50402",
1599 # "host":"127.0.0.1",
1600 # "service":"50401",
1608 { 'command': 'query-vnc', 'returns': 'VncInfo' }
1611 # @query-vnc-servers:
1613 # Returns a list of vnc servers. The list can be empty.
1615 # Returns: a list of @VncInfo2
1619 { 'command': 'query-vnc-servers', 'returns': ['VncInfo2'] }
1624 # The basic information for SPICE network connection
1628 # @port: port number
1630 # @family: address family
1634 { 'struct': 'SpiceBasicInfo',
1635 'data': { 'host': 'str',
1637 'family': 'NetworkAddressFamily' } }
1642 # Information about a SPICE server
1644 # @auth: #optional, authentication method
1648 { 'struct': 'SpiceServerInfo',
1649 'base': 'SpiceBasicInfo',
1650 'data': { '*auth': 'str' } }
1655 # Information about a SPICE client channel.
1657 # @connection-id: SPICE connection id number. All channels with the same id
1658 # belong to the same SPICE session.
1660 # @channel-type: SPICE channel type number. "1" is the main control
1661 # channel, filter for this one if you want to track spice
1664 # @channel-id: SPICE channel ID number. Usually "0", might be different when
1665 # multiple channels of the same type exist, such as multiple
1666 # display channels in a multihead setup
1668 # @tls: true if the channel is encrypted, false otherwise.
1672 { 'struct': 'SpiceChannel',
1673 'base': 'SpiceBasicInfo',
1674 'data': {'connection-id': 'int', 'channel-type': 'int', 'channel-id': 'int',
1678 # @SpiceQueryMouseMode:
1680 # An enumeration of Spice mouse states.
1682 # @client: Mouse cursor position is determined by the client.
1684 # @server: Mouse cursor position is determined by the server.
1686 # @unknown: No information is available about mouse mode used by
1689 # Note: spice/enums.h has a SpiceMouseMode already, hence the name.
1693 { 'enum': 'SpiceQueryMouseMode',
1694 'data': [ 'client', 'server', 'unknown' ] }
1699 # Information about the SPICE session.
1701 # @enabled: true if the SPICE server is enabled, false otherwise
1703 # @migrated: true if the last guest migration completed and spice
1704 # migration had completed as well. false otherwise. (since 1.4)
1706 # @host: #optional The hostname the SPICE server is bound to. This depends on
1707 # the name resolution on the host and may be an IP address.
1709 # @port: #optional The SPICE server's port number.
1711 # @compiled-version: #optional SPICE server version.
1713 # @tls-port: #optional The SPICE server's TLS port number.
1715 # @auth: #optional the current authentication type used by the server
1716 # 'none' if no authentication is being used
1717 # 'spice' uses SASL or direct TLS authentication, depending on command
1720 # @mouse-mode: The mode in which the mouse cursor is displayed currently. Can
1721 # be determined by the client or the server, or unknown if spice
1722 # server doesn't provide this information. (since: 1.1)
1724 # @channels: a list of @SpiceChannel for each active spice channel
1728 { 'struct': 'SpiceInfo',
1729 'data': {'enabled': 'bool', 'migrated': 'bool', '*host': 'str', '*port': 'int',
1730 '*tls-port': 'int', '*auth': 'str', '*compiled-version': 'str',
1731 'mouse-mode': 'SpiceQueryMouseMode', '*channels': ['SpiceChannel']} }
1736 # Returns information about the current SPICE server
1738 # Returns: @SpiceInfo
1744 # -> { "execute": "query-spice" }
1750 # "host": "0.0.0.0",
1755 # "channel-type": 1,
1756 # "connection-id": 1804289383,
1757 # "host": "127.0.0.1",
1764 # "channel-type": 4,
1765 # "connection-id": 1804289383,
1766 # "host": "127.0.0.1",
1770 # [ ... more channels follow ... ]
1776 { 'command': 'query-spice', 'returns': 'SpiceInfo' }
1781 # Information about the guest balloon device.
1783 # @actual: the number of bytes the balloon currently contains
1788 { 'struct': 'BalloonInfo', 'data': {'actual': 'int' } }
1793 # Return information about the balloon device.
1795 # Returns: @BalloonInfo on success
1797 # If the balloon driver is enabled but not functional because the KVM
1798 # kernel module cannot support it, KvmMissingCap
1800 # If no balloon device is present, DeviceNotActive
1806 # -> { "execute": "query-balloon" }
1808 # "actual": 1073741824,
1813 { 'command': 'query-balloon', 'returns': 'BalloonInfo' }
1818 # A PCI device memory region
1820 # @base: the starting address (guest physical)
1822 # @limit: the ending address (guest physical)
1826 { 'struct': 'PciMemoryRange', 'data': {'base': 'int', 'limit': 'int'} }
1831 # Information about a PCI device I/O region.
1833 # @bar: the index of the Base Address Register for this region
1835 # @type: 'io' if the region is a PIO region
1836 # 'memory' if the region is a MMIO region
1838 # @size: memory size
1840 # @prefetch: #optional if @type is 'memory', true if the memory is prefetchable
1842 # @mem_type_64: #optional if @type is 'memory', true if the BAR is 64-bit
1846 { 'struct': 'PciMemoryRegion',
1847 'data': {'bar': 'int', 'type': 'str', 'address': 'int', 'size': 'int',
1848 '*prefetch': 'bool', '*mem_type_64': 'bool' } }
1853 # Information about a bus of a PCI Bridge device
1855 # @number: primary bus interface number. This should be the number of the
1856 # bus the device resides on.
1858 # @secondary: secondary bus interface number. This is the number of the
1859 # main bus for the bridge
1861 # @subordinate: This is the highest number bus that resides below the
1864 # @io_range: The PIO range for all devices on this bridge
1866 # @memory_range: The MMIO range for all devices on this bridge
1868 # @prefetchable_range: The range of prefetchable MMIO for all devices on
1873 { 'struct': 'PciBusInfo',
1874 'data': {'number': 'int', 'secondary': 'int', 'subordinate': 'int',
1875 'io_range': 'PciMemoryRange',
1876 'memory_range': 'PciMemoryRange',
1877 'prefetchable_range': 'PciMemoryRange' } }
1882 # Information about a PCI Bridge device
1884 # @bus: information about the bus the device resides on
1886 # @devices: a list of @PciDeviceInfo for each device on this bridge
1890 { 'struct': 'PciBridgeInfo',
1891 'data': {'bus': 'PciBusInfo', '*devices': ['PciDeviceInfo']} }
1896 # Information about the Class of a PCI device
1898 # @desc: #optional a string description of the device's class
1900 # @class: the class code of the device
1904 { 'struct': 'PciDeviceClass',
1905 'data': {'*desc': 'str', 'class': 'int'} }
1910 # Information about the Id of a PCI device
1912 # @device: the PCI device id
1914 # @vendor: the PCI vendor id
1918 { 'struct': 'PciDeviceId',
1919 'data': {'device': 'int', 'vendor': 'int'} }
1924 # Information about a PCI device
1926 # @bus: the bus number of the device
1928 # @slot: the slot the device is located in
1930 # @function: the function of the slot used by the device
1932 # @class_info: the class of the device
1934 # @id: the PCI device id
1936 # @irq: #optional if an IRQ is assigned to the device, the IRQ number
1938 # @qdev_id: the device name of the PCI device
1940 # @pci_bridge: if the device is a PCI bridge, the bridge information
1942 # @regions: a list of the PCI I/O regions associated with the device
1944 # Notes: the contents of @class_info.desc are not stable and should only be
1945 # treated as informational.
1949 { 'struct': 'PciDeviceInfo',
1950 'data': {'bus': 'int', 'slot': 'int', 'function': 'int',
1951 'class_info': 'PciDeviceClass', 'id': 'PciDeviceId',
1952 '*irq': 'int', 'qdev_id': 'str', '*pci_bridge': 'PciBridgeInfo',
1953 'regions': ['PciMemoryRegion']} }
1958 # Information about a PCI bus
1960 # @bus: the bus index
1962 # @devices: a list of devices on this bus
1966 { 'struct': 'PciInfo', 'data': {'bus': 'int', 'devices': ['PciDeviceInfo']} }
1971 # Return information about the PCI bus topology of the guest.
1973 # Returns: a list of @PciInfo for each PCI bus. Each bus is
1974 # represented by a json-object, which has a key with a json-array of
1975 # all PCI devices attached to it. Each device is represented by a
1982 # -> { "execute": "query-pci" }
1993 # "desc": "Host bridge"
2009 # "desc": "ISA bridge"
2025 # "desc": "IDE controller"
2047 # "desc": "VGA controller"
2057 # "mem_type_64": false,
2060 # "address": 4026531840,
2064 # "prefetch": false,
2065 # "mem_type_64": false,
2068 # "address": 4060086272,
2072 # "prefetch": false,
2073 # "mem_type_64": false,
2088 # "desc": "RAM controller"
2109 # Note: This example has been shortened as the real response is too long.
2112 { 'command': 'query-pci', 'returns': ['PciInfo'] }
2117 # This command will cause the QEMU process to exit gracefully. While every
2118 # attempt is made to send the QMP response before terminating, this is not
2119 # guaranteed. When using this interface, a premature EOF would not be
2126 # -> { "execute": "quit" }
2127 # <- { "return": {} }
2129 { 'command': 'quit' }
2134 # Stop all guest VCPU execution.
2138 # Notes: This function will succeed even if the guest is already in the stopped
2139 # state. In "inmigrate" state, it will ensure that the guest
2140 # remains paused once migration finishes, as if the -S option was
2141 # passed on the command line.
2145 # -> { "execute": "stop" }
2146 # <- { "return": {} }
2149 { 'command': 'stop' }
2154 # Performs a hard reset of a guest.
2160 # -> { "execute": "system_reset" }
2161 # <- { "return": {} }
2164 { 'command': 'system_reset' }
2167 # @system_powerdown:
2169 # Requests that a guest perform a powerdown operation.
2173 # Notes: A guest may or may not respond to this command. This command
2174 # returning does not indicate that a guest has accepted the request or
2175 # that it has shut down. Many guests will respond to this command by
2176 # prompting the user in some way.
2179 # -> { "execute": "system_powerdown" }
2180 # <- { "return": {} }
2183 { 'command': 'system_powerdown' }
2188 # This command is a nop that is only provided for the purposes of compatibility.
2192 # Notes: Do not use this command.
2194 { 'command': 'cpu', 'data': {'index': 'int'} }
2199 # Adds CPU with specified ID
2201 # @id: ID of CPU to be created, valid values [0..max_cpus)
2203 # Returns: Nothing on success
2209 # -> { "execute": "cpu-add", "arguments": { "id": 2 } }
2210 # <- { "return": {} }
2213 { 'command': 'cpu-add', 'data': {'id': 'int'} }
2218 # Save a portion of guest memory to a file.
2220 # @val: the virtual address of the guest to start from
2222 # @size: the size of memory region to save
2224 # @filename: the file to save the memory to as binary data
2226 # @cpu-index: #optional the index of the virtual CPU to use for translating the
2227 # virtual address (defaults to CPU 0)
2229 # Returns: Nothing on success
2233 # Notes: Errors were not reliably returned until 1.1
2237 # -> { "execute": "memsave",
2238 # "arguments": { "val": 10,
2240 # "filename": "/tmp/virtual-mem-dump" } }
2241 # <- { "return": {} }
2244 { 'command': 'memsave',
2245 'data': {'val': 'int', 'size': 'int', 'filename': 'str', '*cpu-index': 'int'} }
2250 # Save a portion of guest physical memory to a file.
2252 # @val: the physical address of the guest to start from
2254 # @size: the size of memory region to save
2256 # @filename: the file to save the memory to as binary data
2258 # Returns: Nothing on success
2262 # Notes: Errors were not reliably returned until 1.1
2266 # -> { "execute": "pmemsave",
2267 # "arguments": { "val": 10,
2269 # "filename": "/tmp/physical-mem-dump" } }
2270 # <- { "return": {} }
2273 { 'command': 'pmemsave',
2274 'data': {'val': 'int', 'size': 'int', 'filename': 'str'} }
2279 # Resume guest VCPU execution.
2283 # Returns: If successful, nothing
2284 # If QEMU was started with an encrypted block device and a key has
2285 # not yet been set, DeviceEncrypted.
2287 # Notes: This command will succeed if the guest is currently running. It
2288 # will also succeed if the guest is in the "inmigrate" state; in
2289 # this case, the effect of the command is to make sure the guest
2290 # starts once migration finishes, removing the effect of the -S
2291 # command line option if it was passed.
2293 { 'command': 'cont' }
2298 # Wakeup guest from suspend. Does nothing in case the guest isn't suspended.
2304 { 'command': 'system_wakeup' }
2309 # Injects a Non-Maskable Interrupt into the default CPU (x86/s390) or all CPUs (ppc64).
2311 # Returns: If successful, nothing
2315 # Note: prior to 2.1, this command was only supported for x86 and s390 VMs
2317 { 'command': 'inject-nmi' }
2322 # Sets the link status of a virtual network adapter.
2324 # @name: the device name of the virtual network adapter
2326 # @up: true to set the link status to be up
2328 # Returns: Nothing on success
2329 # If @name is not a valid network device, DeviceNotFound
2333 # Notes: Not all network adapters support setting link status. This command
2334 # will succeed even if the network adapter does not support link status
2337 { 'command': 'set_link', 'data': {'name': 'str', 'up': 'bool'} }
2342 # Request the balloon driver to change its balloon size.
2344 # @value: the target size of the balloon in bytes
2346 # Returns: Nothing on success
2347 # If the balloon driver is enabled but not functional because the KVM
2348 # kernel module cannot support it, KvmMissingCap
2349 # If no balloon device is present, DeviceNotActive
2351 # Notes: This command just issues a request to the guest. When it returns,
2352 # the balloon size may not have changed. A guest can change the balloon
2353 # size independent of this command.
2357 { 'command': 'balloon', 'data': {'value': 'int'} }
2362 # This action can be used to test transaction failure.
2366 { 'struct': 'Abort',
2370 # @ActionCompletionMode:
2372 # An enumeration of Transactional completion modes.
2374 # @individual: Do not attempt to cancel any other Actions if any Actions fail
2375 # after the Transaction request succeeds. All Actions that
2376 # can complete successfully will do so without waiting on others.
2377 # This is the default.
2379 # @grouped: If any Action fails after the Transaction succeeds, cancel all
2380 # Actions. Actions do not complete until all Actions are ready to
2381 # complete. May be rejected by Actions that do not support this
2386 { 'enum': 'ActionCompletionMode',
2387 'data': [ 'individual', 'grouped' ] }
2390 # @TransactionAction:
2392 # A discriminated record of operations that can be performed with
2393 # @transaction. Action @type can be:
2395 # - @abort: since 1.6
2396 # - @block-dirty-bitmap-add: since 2.5
2397 # - @block-dirty-bitmap-clear: since 2.5
2398 # - @blockdev-backup: since 2.3
2399 # - @blockdev-snapshot: since 2.5
2400 # - @blockdev-snapshot-internal-sync: since 1.7
2401 # - @blockdev-snapshot-sync: since 1.1
2402 # - @drive-backup: since 1.6
2406 { 'union': 'TransactionAction',
2409 'block-dirty-bitmap-add': 'BlockDirtyBitmapAdd',
2410 'block-dirty-bitmap-clear': 'BlockDirtyBitmap',
2411 'blockdev-backup': 'BlockdevBackup',
2412 'blockdev-snapshot': 'BlockdevSnapshot',
2413 'blockdev-snapshot-internal-sync': 'BlockdevSnapshotInternal',
2414 'blockdev-snapshot-sync': 'BlockdevSnapshotSync',
2415 'drive-backup': 'DriveBackup'
2419 # @TransactionProperties:
2421 # Optional arguments to modify the behavior of a Transaction.
2423 # @completion-mode: #optional Controls how jobs launched asynchronously by
2424 # Actions will complete or fail as a group.
2425 # See @ActionCompletionMode for details.
2429 { 'struct': 'TransactionProperties',
2431 '*completion-mode': 'ActionCompletionMode'
2438 # Executes a number of transactionable QMP commands atomically. If any
2439 # operation fails, then the entire set of actions will be abandoned and the
2440 # appropriate error returned.
2442 # @actions: List of @TransactionAction;
2443 # information needed for the respective operations.
2445 # @properties: #optional structure of additional options to control the
2446 # execution of the transaction. See @TransactionProperties
2447 # for additional detail.
2449 # Returns: nothing on success
2450 # Errors depend on the operations of the transaction
2452 # Note: The transaction aborts on the first failure. Therefore, there will be
2453 # information on only one failed operation returned in an error condition, and
2454 # subsequent actions will not have been attempted.
2458 { 'command': 'transaction',
2459 'data': { 'actions': [ 'TransactionAction' ],
2460 '*properties': 'TransactionProperties'
2465 # @human-monitor-command:
2467 # Execute a command on the human monitor and return the output.
2469 # @command-line: the command to execute in the human monitor
2471 # @cpu-index: #optional The CPU to use for commands that require an implicit CPU
2473 # Returns: the output of the command as a string
2477 # Notes: This command only exists as a stop-gap. Its use is highly
2478 # discouraged. The semantics of this command are not guaranteed.
2480 # Known limitations:
2482 # * This command is stateless, this means that commands that depend
2483 # on state information (such as getfd) might not work
2485 # * Commands that prompt the user for data (eg. 'cont' when the block
2486 # device is encrypted) don't currently work
2488 { 'command': 'human-monitor-command',
2489 'data': {'command-line': 'str', '*cpu-index': 'int'},
2495 # Cancel the current executing migration process.
2497 # Returns: nothing on success
2499 # Notes: This command succeeds even if there is no migration process running.
2503 { 'command': 'migrate_cancel' }
2506 # @migrate_set_downtime:
2508 # Set maximum tolerated downtime for migration.
2510 # @value: maximum downtime in seconds
2512 # Returns: nothing on success
2514 # Notes: This command is deprecated in favor of 'migrate-set-parameters'
2518 { 'command': 'migrate_set_downtime', 'data': {'value': 'number'} }
2521 # @migrate_set_speed:
2523 # Set maximum speed for migration.
2525 # @value: maximum speed in bytes.
2527 # Returns: nothing on success
2529 # Notes: This command is deprecated in favor of 'migrate-set-parameters'
2533 { 'command': 'migrate_set_speed', 'data': {'value': 'int'} }
2536 # @migrate-set-cache-size:
2538 # Set XBZRLE cache size
2540 # @value: cache size in bytes
2542 # The size will be rounded down to the nearest power of 2.
2543 # The cache size can be modified before and during ongoing migration
2545 # Returns: nothing on success
2549 { 'command': 'migrate-set-cache-size', 'data': {'value': 'int'} }
2552 # @query-migrate-cache-size:
2554 # query XBZRLE cache size
2556 # Returns: XBZRLE cache size in bytes
2560 { 'command': 'query-migrate-cache-size', 'returns': 'int' }
2563 # @ObjectPropertyInfo:
2565 # @name: the name of the property
2567 # @type: the type of the property. This will typically come in one of four
2570 # 1) A primitive type such as 'u8', 'u16', 'bool', 'str', or 'double'.
2571 # These types are mapped to the appropriate JSON type.
2573 # 2) A child type in the form 'child<subtype>' where subtype is a qdev
2574 # device type name. Child properties create the composition tree.
2576 # 3) A link type in the form 'link<subtype>' where subtype is a qdev
2577 # device type name. Link properties form the device model graph.
2581 { 'struct': 'ObjectPropertyInfo',
2582 'data': { 'name': 'str', 'type': 'str' } }
2587 # This command will list any properties of a object given a path in the object
2590 # @path: the path within the object model. See @qom-get for a description of
2593 # Returns: a list of @ObjectPropertyInfo that describe the properties of the
2598 { 'command': 'qom-list',
2599 'data': { 'path': 'str' },
2600 'returns': [ 'ObjectPropertyInfo' ] }
2605 # This command will get a property from a object model path and return the
2608 # @path: The path within the object model. There are two forms of supported
2609 # paths--absolute and partial paths.
2611 # Absolute paths are derived from the root object and can follow child<>
2612 # or link<> properties. Since they can follow link<> properties, they
2613 # can be arbitrarily long. Absolute paths look like absolute filenames
2614 # and are prefixed with a leading slash.
2616 # Partial paths look like relative filenames. They do not begin
2617 # with a prefix. The matching rules for partial paths are subtle but
2618 # designed to make specifying objects easy. At each level of the
2619 # composition tree, the partial path is matched as an absolute path.
2620 # The first match is not returned. At least two matches are searched
2621 # for. A successful result is only returned if only one match is
2622 # found. If more than one match is found, a flag is return to
2623 # indicate that the match was ambiguous.
2625 # @property: The property name to read
2627 # Returns: The property value. The type depends on the property
2628 # type. child<> and link<> properties are returned as #str
2629 # pathnames. All integer property types (u8, u16, etc) are
2634 { 'command': 'qom-get',
2635 'data': { 'path': 'str', 'property': 'str' },
2641 # This command will set a property from a object model path.
2643 # @path: see @qom-get for a description of this parameter
2645 # @property: the property name to set
2647 # @value: a value who's type is appropriate for the property type. See @qom-get
2648 # for a description of type mapping.
2652 { 'command': 'qom-set',
2653 'data': { 'path': 'str', 'property': 'str', 'value': 'any' } }
2658 # Sets the password of a remote display session.
2660 # @protocol: `vnc' to modify the VNC server password
2661 # `spice' to modify the Spice server password
2663 # @password: the new password
2665 # @connected: #optional how to handle existing clients when changing the
2666 # password. If nothing is specified, defaults to `keep'
2667 # `fail' to fail the command if clients are connected
2668 # `disconnect' to disconnect existing clients
2669 # `keep' to maintain existing clients
2671 # Returns: Nothing on success
2672 # If Spice is not enabled, DeviceNotFound
2676 { 'command': 'set_password',
2677 'data': {'protocol': 'str', 'password': 'str', '*connected': 'str'} }
2682 # Expire the password of a remote display server.
2684 # @protocol: the name of the remote display protocol `vnc' or `spice'
2686 # @time: when to expire the password.
2687 # `now' to expire the password immediately
2688 # `never' to cancel password expiration
2689 # `+INT' where INT is the number of seconds from now (integer)
2690 # `INT' where INT is the absolute time in seconds
2692 # Returns: Nothing on success
2693 # If @protocol is `spice' and Spice is not active, DeviceNotFound
2697 # Notes: Time is relative to the server and currently there is no way to
2698 # coordinate server time with client time. It is not recommended to
2699 # use the absolute time version of the @time parameter unless you're
2700 # sure you are on the same machine as the QEMU instance.
2702 { 'command': 'expire_password', 'data': {'protocol': 'str', 'time': 'str'} }
2705 # @change-vnc-password:
2707 # Change the VNC server password.
2709 # @password: the new password to use with VNC authentication
2713 # Notes: An empty password in this command will set the password to the empty
2714 # string. Existing clients are unaffected by executing this command.
2716 { 'command': 'change-vnc-password', 'data': {'password': 'str'} }
2721 # This command is multiple commands multiplexed together.
2723 # @device: This is normally the name of a block device but it may also be 'vnc'.
2724 # when it's 'vnc', then sub command depends on @target
2726 # @target: If @device is a block device, then this is the new filename.
2727 # If @device is 'vnc', then if the value 'password' selects the vnc
2728 # change password command. Otherwise, this specifies a new server URI
2729 # address to listen to for VNC connections.
2731 # @arg: If @device is a block device, then this is an optional format to open
2733 # If @device is 'vnc' and @target is 'password', this is the new VNC
2734 # password to set. If this argument is an empty string, then no future
2735 # logins will be allowed.
2737 # Returns: Nothing on success.
2738 # If @device is not a valid block device, DeviceNotFound
2739 # If the new block device is encrypted, DeviceEncrypted. Note that
2740 # if this error is returned, the device has been opened successfully
2741 # and an additional call to @block_passwd is required to set the
2742 # device's password. The behavior of reads and writes to the block
2743 # device between when these calls are executed is undefined.
2745 # Notes: This interface is deprecated, and it is strongly recommended that you
2746 # avoid using it. For changing block devices, use
2747 # blockdev-change-medium; for changing VNC parameters, use
2748 # change-vnc-password.
2752 { 'command': 'change',
2753 'data': {'device': 'str', 'target': 'str', '*arg': 'str'} }
2758 # This structure describes a search result from @qom-list-types
2760 # @name: the type name found in the search
2764 # Notes: This command is experimental and may change syntax in future releases.
2766 { 'struct': 'ObjectTypeInfo',
2767 'data': { 'name': 'str' } }
2772 # This command will return a list of types given search parameters
2774 # @implements: if specified, only return types that implement this type name
2776 # @abstract: if true, include abstract types in the results
2778 # Returns: a list of @ObjectTypeInfo or an empty list if no results are found
2782 { 'command': 'qom-list-types',
2783 'data': { '*implements': 'str', '*abstract': 'bool' },
2784 'returns': [ 'ObjectTypeInfo' ] }
2787 # @DevicePropertyInfo:
2789 # Information about device properties.
2791 # @name: the name of the property
2792 # @type: the typename of the property
2793 # @description: #optional if specified, the description of the property.
2798 { 'struct': 'DevicePropertyInfo',
2799 'data': { 'name': 'str', 'type': 'str', '*description': 'str' } }
2802 # @device-list-properties:
2804 # List properties associated with a device.
2806 # @typename: the type name of a device
2808 # Returns: a list of DevicePropertyInfo describing a devices properties
2812 { 'command': 'device-list-properties',
2813 'data': { 'typename': 'str'},
2814 'returns': [ 'DevicePropertyInfo' ] }
2819 # Migrates the current running guest to another Virtual Machine.
2821 # @uri: the Uniform Resource Identifier of the destination VM
2823 # @blk: #optional do block migration (full disk copy)
2825 # @inc: #optional incremental disk copy migration
2827 # @detach: this argument exists only for compatibility reasons and
2828 # is ignored by QEMU
2830 # Returns: nothing on success
2834 { 'command': 'migrate',
2835 'data': {'uri': 'str', '*blk': 'bool', '*inc': 'bool', '*detach': 'bool' } }
2838 # @migrate-incoming:
2840 # Start an incoming migration, the qemu must have been started
2841 # with -incoming defer
2843 # @uri: The Uniform Resource Identifier identifying the source or
2844 # address to listen on
2846 # Returns: nothing on success
2849 # Note: It's a bad idea to use a string for the uri, but it needs to stay
2850 # compatible with -incoming and the format of the uri is already exposed
2853 { 'command': 'migrate-incoming', 'data': {'uri': 'str' } }
2856 # @xen-save-devices-state:
2858 # Save the state of all devices to file. The RAM and the block devices
2859 # of the VM are not saved by this command.
2861 # @filename: the file to save the state of the devices to as binary
2862 # data. See xen-save-devices-state.txt for a description of the binary
2865 # Returns: Nothing on success
2869 { 'command': 'xen-save-devices-state', 'data': {'filename': 'str'} }
2872 # @xen-set-global-dirty-log:
2874 # Enable or disable the global dirty log mode.
2876 # @enable: true to enable, false to disable.
2882 { 'command': 'xen-set-global-dirty-log', 'data': { 'enable': 'bool' } }
2887 # @driver: the name of the new device's driver
2889 # @bus: #optional the device's parent bus (device tree path)
2891 # @id: #optional the device's ID, must be unique
2893 # Additional arguments depend on the type.
2898 # 1. For detailed information about this command, please refer to the
2899 # 'docs/qdev-device-use.txt' file.
2901 # 2. It's possible to list device properties by running QEMU with the
2902 # "-device DEVICE,help" command-line argument, where DEVICE is the
2907 # -> { "execute": "device_add",
2908 # "arguments": { "driver": "e1000", "id": "net1",
2910 # "mac": "52:54:00:12:34:56" } }
2911 # <- { "return": {} }
2913 # TODO: This command effectively bypasses QAPI completely due to its
2914 # "additional arguments" business. It shouldn't have been added to
2915 # the schema in this form. It should be qapified properly, or
2916 # replaced by a properly qapified command.
2920 { 'command': 'device_add',
2921 'data': {'driver': 'str', '*bus': 'str', '*id': 'str'},
2922 'gen': false } # so we can get the additional arguments
2927 # Remove a device from a guest
2929 # @id: the name or QOM path of the device
2931 # Returns: Nothing on success
2932 # If @id is not a valid device, DeviceNotFound
2934 # Notes: When this command completes, the device may not be removed from the
2935 # guest. Hot removal is an operation that requires guest cooperation.
2936 # This command merely requests that the guest begin the hot removal
2937 # process. Completion of the device removal process is signaled with a
2938 # DEVICE_DELETED event. Guest reset will automatically complete removal
2943 { 'command': 'device_del', 'data': {'id': 'str'} }
2946 # @DumpGuestMemoryFormat:
2948 # An enumeration of guest-memory-dump's format.
2952 # @kdump-zlib: kdump-compressed format with zlib-compressed
2954 # @kdump-lzo: kdump-compressed format with lzo-compressed
2956 # @kdump-snappy: kdump-compressed format with snappy-compressed
2960 { 'enum': 'DumpGuestMemoryFormat',
2961 'data': [ 'elf', 'kdump-zlib', 'kdump-lzo', 'kdump-snappy' ] }
2964 # @dump-guest-memory:
2966 # Dump guest's memory to vmcore. It is a synchronous operation that can take
2967 # very long depending on the amount of guest memory.
2969 # @paging: if true, do paging to get guest's memory mapping. This allows
2970 # using gdb to process the core file.
2972 # IMPORTANT: this option can make QEMU allocate several gigabytes
2973 # of RAM. This can happen for a large guest, or a
2974 # malicious guest pretending to be large.
2976 # Also, paging=true has the following limitations:
2978 # 1. The guest may be in a catastrophic state or can have corrupted
2979 # memory, which cannot be trusted
2980 # 2. The guest can be in real-mode even if paging is enabled. For
2981 # example, the guest uses ACPI to sleep, and ACPI sleep state
2983 # 3. Currently only supported on i386 and x86_64.
2985 # @protocol: the filename or file descriptor of the vmcore. The supported
2988 # 1. file: the protocol starts with "file:", and the following
2989 # string is the file's path.
2990 # 2. fd: the protocol starts with "fd:", and the following string
2993 # @detach: #optional if true, QMP will return immediately rather than
2994 # waiting for the dump to finish. The user can track progress
2995 # using "query-dump". (since 2.6).
2997 # @begin: #optional if specified, the starting physical address.
2999 # @length: #optional if specified, the memory size, in bytes. If you don't
3000 # want to dump all guest's memory, please specify the start @begin
3003 # @format: #optional if specified, the format of guest memory dump. But non-elf
3004 # format is conflict with paging and filter, ie. @paging, @begin and
3005 # @length is not allowed to be specified with non-elf @format at the
3006 # same time (since 2.0)
3008 # Returns: nothing on success
3012 { 'command': 'dump-guest-memory',
3013 'data': { 'paging': 'bool', 'protocol': 'str', '*detach': 'bool',
3014 '*begin': 'int', '*length': 'int',
3015 '*format': 'DumpGuestMemoryFormat'} }
3020 # Describe the status of a long-running background guest memory dump.
3022 # @none: no dump-guest-memory has started yet.
3024 # @active: there is one dump running in background.
3026 # @completed: the last dump has finished successfully.
3028 # @failed: the last dump has failed.
3032 { 'enum': 'DumpStatus',
3033 'data': [ 'none', 'active', 'completed', 'failed' ] }
3038 # The result format for 'query-dump'.
3040 # @status: enum of @DumpStatus, which shows current dump status
3042 # @completed: bytes written in latest dump (uncompressed)
3044 # @total: total bytes to be written in latest dump (uncompressed)
3048 { 'struct': 'DumpQueryResult',
3049 'data': { 'status': 'DumpStatus',
3056 # Query latest dump status.
3058 # Returns: A @DumpStatus object showing the dump status.
3062 { 'command': 'query-dump', 'returns': 'DumpQueryResult' }
3065 # @DumpGuestMemoryCapability:
3067 # A list of the available formats for dump-guest-memory
3071 { 'struct': 'DumpGuestMemoryCapability',
3073 'formats': ['DumpGuestMemoryFormat'] } }
3076 # @query-dump-guest-memory-capability:
3078 # Returns the available formats for dump-guest-memory
3080 # Returns: A @DumpGuestMemoryCapability object listing available formats for
3085 { 'command': 'query-dump-guest-memory-capability',
3086 'returns': 'DumpGuestMemoryCapability' }
3091 # Dump guest's storage keys
3093 # @filename: the path to the file to dump to
3095 # This command is only supported on s390 architecture.
3099 { 'command': 'dump-skeys',
3100 'data': { 'filename': 'str' } }
3105 # Add a network backend.
3107 # @type: the type of network backend. Current valid values are 'user', 'tap',
3108 # 'vde', 'socket', 'dump' and 'bridge'
3110 # @id: the name of the new network backend
3112 # Additional arguments depend on the type.
3114 # TODO: This command effectively bypasses QAPI completely due to its
3115 # "additional arguments" business. It shouldn't have been added to
3116 # the schema in this form. It should be qapified properly, or
3117 # replaced by a properly qapified command.
3121 # Returns: Nothing on success
3122 # If @type is not a valid network backend, DeviceNotFound
3124 { 'command': 'netdev_add',
3125 'data': {'type': 'str', 'id': 'str'},
3126 'gen': false } # so we can get the additional arguments
3131 # Remove a network backend.
3133 # @id: the name of the network backend to remove
3135 # Returns: Nothing on success
3136 # If @id is not a valid network backend, DeviceNotFound
3140 { 'command': 'netdev_del', 'data': {'id': 'str'} }
3145 # Create a QOM object.
3147 # @qom-type: the class name for the object to be created
3149 # @id: the name of the new object
3151 # @props: #optional a dictionary of properties to be passed to the backend
3153 # Returns: Nothing on success
3154 # Error if @qom-type is not a valid class name
3158 { 'command': 'object-add',
3159 'data': {'qom-type': 'str', 'id': 'str', '*props': 'any'} }
3164 # Remove a QOM object.
3166 # @id: the name of the QOM object to remove
3168 # Returns: Nothing on success
3169 # Error if @id is not a valid id for a QOM object
3173 { 'command': 'object-del', 'data': {'id': 'str'} }
3176 # @NetdevNoneOptions:
3178 # Use it alone to have zero network devices.
3182 { 'struct': 'NetdevNoneOptions',
3186 # @NetLegacyNicOptions:
3188 # Create a new Network Interface Card.
3190 # @netdev: #optional id of -netdev to connect to
3192 # @macaddr: #optional MAC address
3194 # @model: #optional device model (e1000, rtl8139, virtio etc.)
3196 # @addr: #optional PCI device address
3198 # @vectors: #optional number of MSI-x vectors, 0 to disable MSI-X
3202 { 'struct': 'NetLegacyNicOptions',
3208 '*vectors': 'uint32' } }
3213 # A fat type wrapping 'str', to be embedded in lists.
3217 { 'struct': 'String',
3222 # @NetdevUserOptions:
3224 # Use the user mode network stack which requires no administrator privilege to
3227 # @hostname: #optional client hostname reported by the builtin DHCP server
3229 # @restrict: #optional isolate the guest from the host
3231 # @ipv4: #optional whether to support IPv4, default true for enabled
3234 # @ipv6: #optional whether to support IPv6, default true for enabled
3237 # @ip: #optional legacy parameter, use net= instead
3239 # @net: #optional IP network address that the guest will see, in the
3240 # form addr[/netmask] The netmask is optional, and can be
3241 # either in the form a.b.c.d or as a number of valid top-most
3242 # bits. Default is 10.0.2.0/24.
3244 # @host: #optional guest-visible address of the host
3246 # @tftp: #optional root directory of the built-in TFTP server
3248 # @bootfile: #optional BOOTP filename, for use with tftp=
3250 # @dhcpstart: #optional the first of the 16 IPs the built-in DHCP server can
3253 # @dns: #optional guest-visible address of the virtual nameserver
3255 # @dnssearch: #optional list of DNS suffixes to search, passed as DHCP option
3258 # @ipv6-prefix: #optional IPv6 network prefix (default is fec0::) (since
3259 # 2.6). The network prefix is given in the usual
3260 # hexadecimal IPv6 address notation.
3262 # @ipv6-prefixlen: #optional IPv6 network prefix length (default is 64)
3265 # @ipv6-host: #optional guest-visible IPv6 address of the host (since 2.6)
3267 # @ipv6-dns: #optional guest-visible IPv6 address of the virtual
3268 # nameserver (since 2.6)
3270 # @smb: #optional root directory of the built-in SMB server
3272 # @smbserver: #optional IP address of the built-in SMB server
3274 # @hostfwd: #optional redirect incoming TCP or UDP host connections to guest
3277 # @guestfwd: #optional forward guest TCP connections
3281 { 'struct': 'NetdevUserOptions',
3284 '*restrict': 'bool',
3292 '*dhcpstart': 'str',
3294 '*dnssearch': ['String'],
3295 '*ipv6-prefix': 'str',
3296 '*ipv6-prefixlen': 'int',
3297 '*ipv6-host': 'str',
3300 '*smbserver': 'str',
3301 '*hostfwd': ['String'],
3302 '*guestfwd': ['String'] } }
3305 # @NetdevTapOptions:
3307 # Connect the host TAP network interface name to the VLAN.
3309 # @ifname: #optional interface name
3311 # @fd: #optional file descriptor of an already opened tap
3313 # @fds: #optional multiple file descriptors of already opened multiqueue capable
3316 # @script: #optional script to initialize the interface
3318 # @downscript: #optional script to shut down the interface
3320 # @br: #optional bridge name (since 2.8)
3322 # @helper: #optional command to execute to configure bridge
3324 # @sndbuf: #optional send buffer limit. Understands [TGMKkb] suffixes.
3326 # @vnet_hdr: #optional enable the IFF_VNET_HDR flag on the tap interface
3328 # @vhost: #optional enable vhost-net network accelerator
3330 # @vhostfd: #optional file descriptor of an already opened vhost net device
3332 # @vhostfds: #optional file descriptors of multiple already opened vhost net
3335 # @vhostforce: #optional vhost on for non-MSIX virtio guests
3337 # @queues: #optional number of queues to be created for multiqueue capable tap
3339 # @poll-us: #optional maximum number of microseconds that could
3340 # be spent on busy polling for tap (since 2.7)
3344 { 'struct': 'NetdevTapOptions',
3350 '*downscript': 'str',
3354 '*vnet_hdr': 'bool',
3358 '*vhostforce': 'bool',
3359 '*queues': 'uint32',
3360 '*poll-us': 'uint32'} }
3363 # @NetdevSocketOptions:
3365 # Connect the VLAN to a remote VLAN in another QEMU virtual machine using a TCP
3366 # socket connection.
3368 # @fd: #optional file descriptor of an already opened socket
3370 # @listen: #optional port number, and optional hostname, to listen on
3372 # @connect: #optional port number, and optional hostname, to connect to
3374 # @mcast: #optional UDP multicast address and port number
3376 # @localaddr: #optional source address and port for multicast and udp packets
3378 # @udp: #optional UDP unicast address and port number
3382 { 'struct': 'NetdevSocketOptions',
3388 '*localaddr': 'str',
3392 # @NetdevL2TPv3Options:
3394 # Connect the VLAN to Ethernet over L2TPv3 Static tunnel
3396 # @src: source address
3398 # @dst: destination address
3400 # @srcport: #optional source port - mandatory for udp, optional for ip
3402 # @dstport: #optional destination port - mandatory for udp, optional for ip
3404 # @ipv6: #optional - force the use of ipv6
3406 # @udp: #optional - use the udp version of l2tpv3 encapsulation
3408 # @cookie64: #optional - use 64 bit coookies
3410 # @counter: #optional have sequence counter
3412 # @pincounter: #optional pin sequence counter to zero -
3413 # workaround for buggy implementations or
3414 # networks with packet reorder
3416 # @txcookie: #optional 32 or 64 bit transmit cookie
3418 # @rxcookie: #optional 32 or 64 bit receive cookie
3420 # @txsession: 32 bit transmit session
3422 # @rxsession: #optional 32 bit receive session - if not specified
3423 # set to the same value as transmit
3425 # @offset: #optional additional offset - allows the insertion of
3426 # additional application-specific data before the packet payload
3430 { 'struct': 'NetdevL2TPv3Options',
3438 '*cookie64': 'bool',
3440 '*pincounter': 'bool',
3441 '*txcookie': 'uint64',
3442 '*rxcookie': 'uint64',
3443 'txsession': 'uint32',
3444 '*rxsession': 'uint32',
3445 '*offset': 'uint32' } }
3448 # @NetdevVdeOptions:
3450 # Connect the VLAN to a vde switch running on the host.
3452 # @sock: #optional socket path
3454 # @port: #optional port number
3456 # @group: #optional group owner of socket
3458 # @mode: #optional permissions for socket
3462 { 'struct': 'NetdevVdeOptions',
3467 '*mode': 'uint16' } }
3470 # @NetdevDumpOptions:
3472 # Dump VLAN network traffic to a file.
3474 # @len: #optional per-packet size limit (64k default). Understands [TGMKkb]
3477 # @file: #optional dump file path (default is qemu-vlan0.pcap)
3481 { 'struct': 'NetdevDumpOptions',
3487 # @NetdevBridgeOptions:
3489 # Connect a host TAP network interface to a host bridge device.
3491 # @br: #optional bridge name
3493 # @helper: #optional command to execute to configure bridge
3497 { 'struct': 'NetdevBridgeOptions',
3500 '*helper': 'str' } }
3503 # @NetdevHubPortOptions:
3505 # Connect two or more net clients through a software hub.
3507 # @hubid: hub identifier number
3511 { 'struct': 'NetdevHubPortOptions',
3513 'hubid': 'int32' } }
3516 # @NetdevNetmapOptions:
3518 # Connect a client to a netmap-enabled NIC or to a VALE switch port
3520 # @ifname: Either the name of an existing network interface supported by
3521 # netmap, or the name of a VALE port (created on the fly).
3522 # A VALE port name is in the form 'valeXXX:YYY', where XXX and
3523 # YYY are non-negative integers. XXX identifies a switch and
3524 # YYY identifies a port of the switch. VALE ports having the
3525 # same XXX are therefore connected to the same switch.
3527 # @devname: #optional path of the netmap device (default: '/dev/netmap').
3531 { 'struct': 'NetdevNetmapOptions',
3534 '*devname': 'str' } }
3537 # @NetdevVhostUserOptions:
3539 # Vhost-user network backend
3541 # @chardev: name of a unix socket chardev
3543 # @vhostforce: #optional vhost on for non-MSIX virtio guests (default: false).
3545 # @queues: #optional number of queues to be created for multiqueue vhost-user
3546 # (default: 1) (Since 2.5)
3550 { 'struct': 'NetdevVhostUserOptions',
3553 '*vhostforce': 'bool',
3554 '*queues': 'int' } }
3559 # Available netdev drivers.
3563 { 'enum': 'NetClientDriver',
3564 'data': [ 'none', 'nic', 'user', 'tap', 'l2tpv3', 'socket', 'vde', 'dump',
3565 'bridge', 'hubport', 'netmap', 'vhost-user' ] }
3570 # Captures the configuration of a network device.
3572 # @id: identifier for monitor commands.
3574 # @type: Specify the driver used for interpreting remaining arguments.
3578 # 'l2tpv3' - since 2.1
3580 { 'union': 'Netdev',
3581 'base': { 'id': 'str', 'type': 'NetClientDriver' },
3582 'discriminator': 'type',
3584 'none': 'NetdevNoneOptions',
3585 'nic': 'NetLegacyNicOptions',
3586 'user': 'NetdevUserOptions',
3587 'tap': 'NetdevTapOptions',
3588 'l2tpv3': 'NetdevL2TPv3Options',
3589 'socket': 'NetdevSocketOptions',
3590 'vde': 'NetdevVdeOptions',
3591 'dump': 'NetdevDumpOptions',
3592 'bridge': 'NetdevBridgeOptions',
3593 'hubport': 'NetdevHubPortOptions',
3594 'netmap': 'NetdevNetmapOptions',
3595 'vhost-user': 'NetdevVhostUserOptions' } }
3600 # Captures the configuration of a network device; legacy.
3602 # @vlan: #optional vlan number
3604 # @id: #optional identifier for monitor commands
3606 # @name: #optional identifier for monitor commands, ignored if @id is present
3608 # @opts: device type specific properties (legacy)
3612 { 'struct': 'NetLegacy',
3617 'opts': 'NetLegacyOptions' } }
3620 # @NetLegacyOptions:
3622 # Like Netdev, but for use only by the legacy command line options
3626 { 'union': 'NetLegacyOptions',
3628 'none': 'NetdevNoneOptions',
3629 'nic': 'NetLegacyNicOptions',
3630 'user': 'NetdevUserOptions',
3631 'tap': 'NetdevTapOptions',
3632 'l2tpv3': 'NetdevL2TPv3Options',
3633 'socket': 'NetdevSocketOptions',
3634 'vde': 'NetdevVdeOptions',
3635 'dump': 'NetdevDumpOptions',
3636 'bridge': 'NetdevBridgeOptions',
3637 'netmap': 'NetdevNetmapOptions',
3638 'vhost-user': 'NetdevVhostUserOptions' } }
3641 # @NetFilterDirection:
3643 # Indicates whether a netfilter is attached to a netdev's transmit queue or
3644 # receive queue or both.
3646 # @all: the filter is attached both to the receive and the transmit
3647 # queue of the netdev (default).
3649 # @rx: the filter is attached to the receive queue of the netdev,
3650 # where it will receive packets sent to the netdev.
3652 # @tx: the filter is attached to the transmit queue of the netdev,
3653 # where it will receive packets sent by the netdev.
3657 { 'enum': 'NetFilterDirection',
3658 'data': [ 'all', 'rx', 'tx' ] }
3661 # @InetSocketAddress:
3663 # Captures a socket address or address range in the Internet namespace.
3665 # @host: host part of the address
3667 # @port: port part of the address, or lowest port if @to is present
3669 # @to: highest port to try
3671 # @ipv4: whether to accept IPv4 addresses, default try both IPv4 and IPv6
3674 # @ipv6: whether to accept IPv6 addresses, default try both IPv4 and IPv6
3679 { 'struct': 'InetSocketAddress',
3688 # @UnixSocketAddress:
3690 # Captures a socket address in the local ("Unix socket") namespace.
3692 # @path: filesystem path to use
3696 { 'struct': 'UnixSocketAddress',
3701 # @VsockSocketAddress:
3703 # Captures a socket address in the vsock namespace.
3705 # @cid: unique host identifier
3708 # Note: string types are used to allow for possible future hostname or
3709 # service resolution support.
3713 { 'struct': 'VsockSocketAddress',
3721 # Captures the address of a socket, which could also be a named file descriptor
3725 { 'union': 'SocketAddress',
3727 'inet': 'InetSocketAddress',
3728 'unix': 'UnixSocketAddress',
3729 'vsock': 'VsockSocketAddress',
3735 # Receive a file descriptor via SCM rights and assign it a name
3737 # @fdname: file descriptor name
3739 # Returns: Nothing on success
3743 # Notes: If @fdname already exists, the file descriptor assigned to
3744 # it will be closed and replaced by the received file
3746 # The 'closefd' command can be used to explicitly close the
3747 # file descriptor when it is no longer needed.
3749 { 'command': 'getfd', 'data': {'fdname': 'str'} }
3754 # Close a file descriptor previously passed via SCM rights
3756 # @fdname: file descriptor name
3758 # Returns: Nothing on success
3762 { 'command': 'closefd', 'data': {'fdname': 'str'} }
3767 # Information describing a machine.
3769 # @name: the name of the machine
3771 # @alias: #optional an alias for the machine name
3773 # @is-default: #optional whether the machine is default
3775 # @cpu-max: maximum number of CPUs supported by the machine type
3778 # @hotpluggable-cpus: cpu hotplug via -device is supported (since 2.7.0)
3782 { 'struct': 'MachineInfo',
3783 'data': { 'name': 'str', '*alias': 'str',
3784 '*is-default': 'bool', 'cpu-max': 'int',
3785 'hotpluggable-cpus': 'bool'} }
3790 # Return a list of supported machines
3792 # Returns: a list of MachineInfo
3796 { 'command': 'query-machines', 'returns': ['MachineInfo'] }
3799 # @CpuDefinitionInfo:
3801 # Virtual CPU definition.
3803 # @name: the name of the CPU definition
3805 # @migration-safe: #optional whether a CPU definition can be safely used for
3806 # migration in combination with a QEMU compatibility machine
3807 # when migrating between different QMU versions and between
3808 # hosts with different sets of (hardware or software)
3809 # capabilities. If not provided, information is not available
3810 # and callers should not assume the CPU definition to be
3811 # migration-safe. (since 2.8)
3813 # @static: whether a CPU definition is static and will not change depending on
3814 # QEMU version, machine type, machine options and accelerator options.
3815 # A static model is always migration-safe. (since 2.8)
3817 # @unavailable-features: #optional List of properties that prevent
3818 # the CPU model from running in the current
3820 # @typename: Type name that can be used as argument to @device-list-properties,
3821 # to introspect properties configurable using -cpu or -global.
3824 # @unavailable-features is a list of QOM property names that
3825 # represent CPU model attributes that prevent the CPU from running.
3826 # If the QOM property is read-only, that means there's no known
3827 # way to make the CPU model run in the current host. Implementations
3828 # that choose not to provide specific information return the
3829 # property name "type".
3830 # If the property is read-write, it means that it MAY be possible
3831 # to run the CPU model in the current host if that property is
3832 # changed. Management software can use it as hints to suggest or
3833 # choose an alternative for the user, or just to generate meaningful
3834 # error messages explaining why the CPU model can't be used.
3835 # If @unavailable-features is an empty list, the CPU model is
3836 # runnable using the current host and machine-type.
3837 # If @unavailable-features is not present, runnability
3838 # information for the CPU is not available.
3842 { 'struct': 'CpuDefinitionInfo',
3843 'data': { 'name': 'str', '*migration-safe': 'bool', 'static': 'bool',
3844 '*unavailable-features': [ 'str' ], 'typename': 'str' } }
3847 # @query-cpu-definitions:
3849 # Return a list of supported virtual CPU definitions
3851 # Returns: a list of CpuDefInfo
3855 { 'command': 'query-cpu-definitions', 'returns': ['CpuDefinitionInfo'] }
3860 # Virtual CPU model.
3862 # A CPU model consists of the name of a CPU definition, to which
3863 # delta changes are applied (e.g. features added/removed). Most magic values
3864 # that an architecture might require should be hidden behind the name.
3865 # However, if required, architectures can expose relevant properties.
3867 # @name: the name of the CPU definition the model is based on
3868 # @props: #optional a dictionary of QOM properties to be applied
3872 { 'struct': 'CpuModelInfo',
3873 'data': { 'name': 'str',
3877 # @CpuModelExpansionType:
3879 # An enumeration of CPU model expansion types.
3881 # @static: Expand to a static CPU model, a combination of a static base
3882 # model name and property delta changes. As the static base model will
3883 # never change, the expanded CPU model will be the same, independant of
3884 # independent of QEMU version, machine type, machine options, and
3885 # accelerator options. Therefore, the resulting model can be used by
3886 # tooling without having to specify a compatibility machine - e.g. when
3887 # displaying the "host" model. static CPU models are migration-safe.
3889 # @full: Expand all properties. The produced model is not guaranteed to be
3890 # migration-safe, but allows tooling to get an insight and work with
3895 { 'enum': 'CpuModelExpansionType',
3896 'data': [ 'static', 'full' ] }
3900 # @CpuModelExpansionInfo:
3902 # The result of a cpu model expansion.
3904 # @model: the expanded CpuModelInfo.
3908 { 'struct': 'CpuModelExpansionInfo',
3909 'data': { 'model': 'CpuModelInfo' } }
3913 # @query-cpu-model-expansion:
3915 # Expands a given CPU model (or a combination of CPU model + additional options)
3916 # to different granularities, allowing tooling to get an understanding what a
3917 # specific CPU model looks like in QEMU under a certain configuration.
3919 # This interface can be used to query the "host" CPU model.
3921 # The data returned by this command may be affected by:
3923 # * QEMU version: CPU models may look different depending on the QEMU version.
3924 # (Except for CPU models reported as "static" in query-cpu-definitions.)
3925 # * machine-type: CPU model may look different depending on the machine-type.
3926 # (Except for CPU models reported as "static" in query-cpu-definitions.)
3927 # * machine options (including accelerator): in some architectures, CPU models
3928 # may look different depending on machine and accelerator options. (Except for
3929 # CPU models reported as "static" in query-cpu-definitions.)
3930 # * "-cpu" arguments and global properties: arguments to the -cpu option and
3931 # global properties may affect expansion of CPU models. Using
3932 # query-cpu-model-expansion while using these is not advised.
3934 # Some architectures may not support all expansion types. s390x supports
3935 # "full" and "static".
3937 # Returns: a CpuModelExpansionInfo. Returns an error if expanding CPU models is
3938 # not supported, if the model cannot be expanded, if the model contains
3939 # an unknown CPU definition name, unknown properties or properties
3940 # with a wrong type. Also returns an error if an expansion type is
3945 { 'command': 'query-cpu-model-expansion',
3946 'data': { 'type': 'CpuModelExpansionType',
3947 'model': 'CpuModelInfo' },
3948 'returns': 'CpuModelExpansionInfo' }
3951 # @CpuModelCompareResult:
3953 # An enumeration of CPU model comparation results. The result is usually
3954 # calculated using e.g. CPU features or CPU generations.
3956 # @incompatible: If model A is incompatible to model B, model A is not
3957 # guaranteed to run where model B runs and the other way around.
3959 # @identical: If model A is identical to model B, model A is guaranteed to run
3960 # where model B runs and the other way around.
3962 # @superset: If model A is a superset of model B, model B is guaranteed to run
3963 # where model A runs. There are no guarantees about the other way.
3965 # @subset: If model A is a subset of model B, model A is guaranteed to run
3966 # where model B runs. There are no guarantees about the other way.
3970 { 'enum': 'CpuModelCompareResult',
3971 'data': [ 'incompatible', 'identical', 'superset', 'subset' ] }
3974 # @CpuModelCompareInfo:
3976 # The result of a CPU model comparison.
3978 # @result: The result of the compare operation.
3979 # @responsible-properties: List of properties that led to the comparison result
3980 # not being identical.
3982 # @responsible-properties is a list of QOM property names that led to
3983 # both CPUs not being detected as identical. For identical models, this
3985 # If a QOM property is read-only, that means there's no known way to make the
3986 # CPU models identical. If the special property name "type" is included, the
3987 # models are by definition not identical and cannot be made identical.
3991 { 'struct': 'CpuModelCompareInfo',
3992 'data': {'result': 'CpuModelCompareResult',
3993 'responsible-properties': ['str']
3998 # @query-cpu-model-comparison:
4000 # Compares two CPU models, returning how they compare in a specific
4001 # configuration. The results indicates how both models compare regarding
4002 # runnability. This result can be used by tooling to make decisions if a
4003 # certain CPU model will run in a certain configuration or if a compatible
4004 # CPU model has to be created by baselining.
4006 # Usually, a CPU model is compared against the maximum possible CPU model
4007 # of a certain configuration (e.g. the "host" model for KVM). If that CPU
4008 # model is identical or a subset, it will run in that configuration.
4010 # The result returned by this command may be affected by:
4012 # * QEMU version: CPU models may look different depending on the QEMU version.
4013 # (Except for CPU models reported as "static" in query-cpu-definitions.)
4014 # * machine-type: CPU model may look different depending on the machine-type.
4015 # (Except for CPU models reported as "static" in query-cpu-definitions.)
4016 # * machine options (including accelerator): in some architectures, CPU models
4017 # may look different depending on machine and accelerator options. (Except for
4018 # CPU models reported as "static" in query-cpu-definitions.)
4019 # * "-cpu" arguments and global properties: arguments to the -cpu option and
4020 # global properties may affect expansion of CPU models. Using
4021 # query-cpu-model-expansion while using these is not advised.
4023 # Some architectures may not support comparing CPU models. s390x supports
4024 # comparing CPU models.
4026 # Returns: a CpuModelBaselineInfo. Returns an error if comparing CPU models is
4027 # not supported, if a model cannot be used, if a model contains
4028 # an unknown cpu definition name, unknown properties or properties
4033 { 'command': 'query-cpu-model-comparison',
4034 'data': { 'modela': 'CpuModelInfo', 'modelb': 'CpuModelInfo' },
4035 'returns': 'CpuModelCompareInfo' }
4038 # @CpuModelBaselineInfo:
4040 # The result of a CPU model baseline.
4042 # @model: the baselined CpuModelInfo.
4046 { 'struct': 'CpuModelBaselineInfo',
4047 'data': { 'model': 'CpuModelInfo' } }
4050 # @query-cpu-model-baseline:
4052 # Baseline two CPU models, creating a compatible third model. The created
4053 # model will always be a static, migration-safe CPU model (see "static"
4054 # CPU model expansion for details).
4056 # This interface can be used by tooling to create a compatible CPU model out
4057 # two CPU models. The created CPU model will be identical to or a subset of
4058 # both CPU models when comparing them. Therefore, the created CPU model is
4059 # guaranteed to run where the given CPU models run.
4061 # The result returned by this command may be affected by:
4063 # * QEMU version: CPU models may look different depending on the QEMU version.
4064 # (Except for CPU models reported as "static" in query-cpu-definitions.)
4065 # * machine-type: CPU model may look different depending on the machine-type.
4066 # (Except for CPU models reported as "static" in query-cpu-definitions.)
4067 # * machine options (including accelerator): in some architectures, CPU models
4068 # may look different depending on machine and accelerator options. (Except for
4069 # CPU models reported as "static" in query-cpu-definitions.)
4070 # * "-cpu" arguments and global properties: arguments to the -cpu option and
4071 # global properties may affect expansion of CPU models. Using
4072 # query-cpu-model-expansion while using these is not advised.
4074 # Some architectures may not support baselining CPU models. s390x supports
4075 # baselining CPU models.
4077 # Returns: a CpuModelBaselineInfo. Returns an error if baselining CPU models is
4078 # not supported, if a model cannot be used, if a model contains
4079 # an unknown cpu definition name, unknown properties or properties
4084 { 'command': 'query-cpu-model-baseline',
4085 'data': { 'modela': 'CpuModelInfo',
4086 'modelb': 'CpuModelInfo' },
4087 'returns': 'CpuModelBaselineInfo' }
4092 # Information about a file descriptor that was added to an fd set.
4094 # @fdset-id: The ID of the fd set that @fd was added to.
4096 # @fd: The file descriptor that was received via SCM rights and
4097 # added to the fd set.
4101 { 'struct': 'AddfdInfo', 'data': {'fdset-id': 'int', 'fd': 'int'} }
4106 # Add a file descriptor, that was passed via SCM rights, to an fd set.
4108 # @fdset-id: #optional The ID of the fd set to add the file descriptor to.
4110 # @opaque: #optional A free-form string that can be used to describe the fd.
4112 # Returns: @AddfdInfo on success
4113 # If file descriptor was not received, FdNotSupplied
4114 # If @fdset-id is a negative value, InvalidParameterValue
4116 # Notes: The list of fd sets is shared by all monitor connections.
4118 # If @fdset-id is not specified, a new fd set will be created.
4122 { 'command': 'add-fd', 'data': {'*fdset-id': 'int', '*opaque': 'str'},
4123 'returns': 'AddfdInfo' }
4128 # Remove a file descriptor from an fd set.
4130 # @fdset-id: The ID of the fd set that the file descriptor belongs to.
4132 # @fd: #optional The file descriptor that is to be removed.
4134 # Returns: Nothing on success
4135 # If @fdset-id or @fd is not found, FdNotFound
4139 # Notes: The list of fd sets is shared by all monitor connections.
4141 # If @fd is not specified, all file descriptors in @fdset-id
4144 { 'command': 'remove-fd', 'data': {'fdset-id': 'int', '*fd': 'int'} }
4149 # Information about a file descriptor that belongs to an fd set.
4151 # @fd: The file descriptor value.
4153 # @opaque: #optional A free-form string that can be used to describe the fd.
4157 { 'struct': 'FdsetFdInfo',
4158 'data': {'fd': 'int', '*opaque': 'str'} }
4163 # Information about an fd set.
4165 # @fdset-id: The ID of the fd set.
4167 # @fds: A list of file descriptors that belong to this fd set.
4171 { 'struct': 'FdsetInfo',
4172 'data': {'fdset-id': 'int', 'fds': ['FdsetFdInfo']} }
4177 # Return information describing all fd sets.
4179 # Returns: A list of @FdsetInfo
4183 # Note: The list of fd sets is shared by all monitor connections.
4186 { 'command': 'query-fdsets', 'returns': ['FdsetInfo'] }
4191 # Information describing the QEMU target.
4193 # @arch: the target architecture (eg "x86_64", "i386", etc)
4197 { 'struct': 'TargetInfo',
4198 'data': { 'arch': 'str' } }
4203 # Return information about the target for this QEMU
4205 # Returns: TargetInfo
4209 { 'command': 'query-target', 'returns': 'TargetInfo' }
4214 # An enumeration of key name.
4216 # This is used by the @send-key command.
4218 # @unmapped: since 2.0
4221 # @kp_comma: since 2.4
4222 # @kp_equals: since 2.6
4224 # @hiragana: since 2.9
4225 # @henkan: since 2.9
4231 { 'enum': 'QKeyCode',
4232 'data': [ 'unmapped',
4233 'shift', 'shift_r', 'alt', 'alt_r', 'altgr', 'altgr_r', 'ctrl',
4234 'ctrl_r', 'menu', 'esc', '1', '2', '3', '4', '5', '6', '7', '8',
4235 '9', '0', 'minus', 'equal', 'backspace', 'tab', 'q', 'w', 'e',
4236 'r', 't', 'y', 'u', 'i', 'o', 'p', 'bracket_left', 'bracket_right',
4237 'ret', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'semicolon',
4238 'apostrophe', 'grave_accent', 'backslash', 'z', 'x', 'c', 'v', 'b',
4239 'n', 'm', 'comma', 'dot', 'slash', 'asterisk', 'spc', 'caps_lock',
4240 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10',
4241 'num_lock', 'scroll_lock', 'kp_divide', 'kp_multiply',
4242 'kp_subtract', 'kp_add', 'kp_enter', 'kp_decimal', 'sysrq', 'kp_0',
4243 'kp_1', 'kp_2', 'kp_3', 'kp_4', 'kp_5', 'kp_6', 'kp_7', 'kp_8',
4244 'kp_9', 'less', 'f11', 'f12', 'print', 'home', 'pgup', 'pgdn', 'end',
4245 'left', 'up', 'down', 'right', 'insert', 'delete', 'stop', 'again',
4246 'props', 'undo', 'front', 'copy', 'open', 'paste', 'find', 'cut',
4247 'lf', 'help', 'meta_l', 'meta_r', 'compose', 'pause',
4248 'ro', 'hiragana', 'henkan', 'yen',
4249 'kp_comma', 'kp_equals', 'power' ] }
4254 # Represents a keyboard key.
4258 { 'union': 'KeyValue',
4261 'qcode': 'QKeyCode' } }
4266 # Send keys to guest.
4268 # @keys: An array of @KeyValue elements. All @KeyValues in this array are
4269 # simultaneously sent to the guest. A @KeyValue.number value is sent
4270 # directly to the guest, while @KeyValue.qcode must be a valid
4273 # @hold-time: #optional time to delay key up events, milliseconds. Defaults
4276 # Returns: Nothing on success
4277 # If key is unknown or redundant, InvalidParameter
4282 { 'command': 'send-key',
4283 'data': { 'keys': ['KeyValue'], '*hold-time': 'int' } }
4288 # Write a PPM of the VGA screen to a file.
4290 # @filename: the path of a new PPM file to store the image
4292 # Returns: Nothing on success
4296 { 'command': 'screendump', 'data': {'filename': 'str'} }
4302 # Configuration shared across all chardev backends
4304 # @logfile: #optional The name of a logfile to save output
4305 # @logappend: #optional true to append instead of truncate
4306 # (default to false to truncate)
4310 { 'struct': 'ChardevCommon', 'data': { '*logfile': 'str',
4311 '*logappend': 'bool' } }
4316 # Configuration info for file chardevs.
4318 # @in: #optional The name of the input file
4319 # @out: The name of the output file
4320 # @append: #optional Open the file in append mode (default false to
4321 # truncate) (Since 2.6)
4325 { 'struct': 'ChardevFile', 'data': { '*in' : 'str',
4327 '*append': 'bool' },
4328 'base': 'ChardevCommon' }
4333 # Configuration info for device and pipe chardevs.
4335 # @device: The name of the special file for the device,
4336 # i.e. /dev/ttyS0 on Unix or COM1: on Windows
4340 { 'struct': 'ChardevHostdev', 'data': { 'device' : 'str' },
4341 'base': 'ChardevCommon' }
4346 # Configuration info for (stream) socket chardevs.
4348 # @addr: socket address to listen on (server=true)
4349 # or connect to (server=false)
4350 # @tls-creds: #optional the ID of the TLS credentials object (since 2.6)
4351 # @server: #optional create server socket (default: true)
4352 # @wait: #optional wait for incoming connection on server
4353 # sockets (default: false).
4354 # @nodelay: #optional set TCP_NODELAY socket option (default: false)
4355 # @telnet: #optional enable telnet protocol on server
4356 # sockets (default: false)
4357 # @reconnect: #optional For a client socket, if a socket is disconnected,
4358 # then attempt a reconnect after the given number of seconds.
4359 # Setting this to zero disables this function. (default: 0)
4364 { 'struct': 'ChardevSocket', 'data': { 'addr' : 'SocketAddress',
4365 '*tls-creds' : 'str',
4368 '*nodelay' : 'bool',
4370 '*reconnect' : 'int' },
4371 'base': 'ChardevCommon' }
4376 # Configuration info for datagram socket chardevs.
4378 # @remote: remote address
4379 # @local: #optional local address
4383 { 'struct': 'ChardevUdp', 'data': { 'remote' : 'SocketAddress',
4384 '*local' : 'SocketAddress' },
4385 'base': 'ChardevCommon' }
4390 # Configuration info for mux chardevs.
4392 # @chardev: name of the base chardev.
4396 { 'struct': 'ChardevMux', 'data': { 'chardev' : 'str' },
4397 'base': 'ChardevCommon' }
4402 # Configuration info for stdio chardevs.
4404 # @signal: #optional Allow signals (such as SIGINT triggered by ^C)
4405 # be delivered to qemu. Default: true in -nographic mode,
4410 { 'struct': 'ChardevStdio', 'data': { '*signal' : 'bool' },
4411 'base': 'ChardevCommon' }
4415 # @ChardevSpiceChannel:
4417 # Configuration info for spice vm channel chardevs.
4419 # @type: kind of channel (for example vdagent).
4423 { 'struct': 'ChardevSpiceChannel', 'data': { 'type' : 'str' },
4424 'base': 'ChardevCommon' }
4427 # @ChardevSpicePort:
4429 # Configuration info for spice port chardevs.
4431 # @fqdn: name of the channel (see docs/spice-port-fqdn.txt)
4435 { 'struct': 'ChardevSpicePort', 'data': { 'fqdn' : 'str' },
4436 'base': 'ChardevCommon' }
4441 # Configuration info for virtual console chardevs.
4443 # @width: console width, in pixels
4444 # @height: console height, in pixels
4445 # @cols: console width, in chars
4446 # @rows: console height, in chars
4450 { 'struct': 'ChardevVC', 'data': { '*width' : 'int',
4454 'base': 'ChardevCommon' }
4459 # Configuration info for ring buffer chardevs.
4461 # @size: #optional ring buffer size, must be power of two, default is 65536
4465 { 'struct': 'ChardevRingbuf', 'data': { '*size' : 'int' },
4466 'base': 'ChardevCommon' }
4471 # Configuration info for the new chardev backend.
4473 # Since: 1.4 (testdev since 2.2)
4475 { 'union': 'ChardevBackend', 'data': { 'file' : 'ChardevFile',
4476 'serial' : 'ChardevHostdev',
4477 'parallel': 'ChardevHostdev',
4478 'pipe' : 'ChardevHostdev',
4479 'socket' : 'ChardevSocket',
4480 'udp' : 'ChardevUdp',
4481 'pty' : 'ChardevCommon',
4482 'null' : 'ChardevCommon',
4483 'mux' : 'ChardevMux',
4484 'msmouse': 'ChardevCommon',
4485 'braille': 'ChardevCommon',
4486 'testdev': 'ChardevCommon',
4487 'stdio' : 'ChardevStdio',
4488 'console': 'ChardevCommon',
4489 'spicevmc' : 'ChardevSpiceChannel',
4490 'spiceport' : 'ChardevSpicePort',
4492 'ringbuf': 'ChardevRingbuf',
4493 # next one is just for compatibility
4494 'memory' : 'ChardevRingbuf' } }
4499 # Return info about the chardev backend just created.
4501 # @pty: #optional name of the slave pseudoterminal device, present if
4502 # and only if a chardev of type 'pty' was created
4506 { 'struct' : 'ChardevReturn', 'data': { '*pty' : 'str' } }
4511 # Add a character device backend
4513 # @id: the chardev's ID, must be unique
4514 # @backend: backend type and parameters
4516 # Returns: ChardevReturn.
4520 { 'command': 'chardev-add', 'data': {'id' : 'str',
4521 'backend' : 'ChardevBackend' },
4522 'returns': 'ChardevReturn' }
4527 # Remove a character device backend
4529 # @id: the chardev's ID, must exist and not be in use
4531 # Returns: Nothing on success
4535 { 'command': 'chardev-remove', 'data': {'id': 'str'} }
4540 # An enumeration of TPM models
4542 # @tpm-tis: TPM TIS model
4546 { 'enum': 'TpmModel', 'data': [ 'tpm-tis' ] }
4549 # @query-tpm-models:
4551 # Return a list of supported TPM models
4553 # Returns: a list of TpmModel
4557 { 'command': 'query-tpm-models', 'returns': ['TpmModel'] }
4562 # An enumeration of TPM types
4564 # @passthrough: TPM passthrough type
4568 { 'enum': 'TpmType', 'data': [ 'passthrough' ] }
4573 # Return a list of supported TPM types
4575 # Returns: a list of TpmType
4579 { 'command': 'query-tpm-types', 'returns': ['TpmType'] }
4582 # @TPMPassthroughOptions:
4584 # Information about the TPM passthrough type
4586 # @path: #optional string describing the path used for accessing the TPM device
4588 # @cancel-path: #optional string showing the TPM's sysfs cancel file
4589 # for cancellation of TPM commands while they are executing
4593 { 'struct': 'TPMPassthroughOptions', 'data': { '*path' : 'str',
4594 '*cancel-path' : 'str'} }
4599 # A union referencing different TPM backend types' configuration options
4601 # @type: 'passthrough' The configuration options for the TPM passthrough type
4605 { 'union': 'TpmTypeOptions',
4606 'data': { 'passthrough' : 'TPMPassthroughOptions' } }
4611 # Information about the TPM
4613 # @id: The Id of the TPM
4615 # @model: The TPM frontend model
4617 # @options: The TPM (backend) type configuration options
4621 { 'struct': 'TPMInfo',
4622 'data': {'id': 'str',
4623 'model': 'TpmModel',
4624 'options': 'TpmTypeOptions' } }
4629 # Return information about the TPM device
4631 # Returns: @TPMInfo on success
4635 { 'command': 'query-tpm', 'returns': ['TPMInfo'] }
4638 # @AcpiTableOptions:
4640 # Specify an ACPI table on the command line to load.
4642 # At most one of @file and @data can be specified. The list of files specified
4643 # by any one of them is loaded and concatenated in order. If both are omitted,
4646 # Other fields / optargs can be used to override fields of the generic ACPI
4647 # table header; refer to the ACPI specification 5.0, section 5.2.6 System
4648 # Description Table Header. If a header field is not overridden, then the
4649 # corresponding value from the concatenated blob is used (in case of @file), or
4650 # it is filled in with a hard-coded value (in case of @data).
4652 # String fields are copied into the matching ACPI member from lowest address
4653 # upwards, and silently truncated / NUL-padded to length.
4655 # @sig: #optional table signature / identifier (4 bytes)
4657 # @rev: #optional table revision number (dependent on signature, 1 byte)
4659 # @oem_id: #optional OEM identifier (6 bytes)
4661 # @oem_table_id: #optional OEM table identifier (8 bytes)
4663 # @oem_rev: #optional OEM-supplied revision number (4 bytes)
4665 # @asl_compiler_id: #optional identifier of the utility that created the table
4668 # @asl_compiler_rev: #optional revision number of the utility that created the
4671 # @file: #optional colon (:) separated list of pathnames to load and
4672 # concatenate as table data. The resultant binary blob is expected to
4673 # have an ACPI table header. At least one file is required. This field
4676 # @data: #optional colon (:) separated list of pathnames to load and
4677 # concatenate as table data. The resultant binary blob must not have an
4678 # ACPI table header. At least one file is required. This field excludes
4683 { 'struct': 'AcpiTableOptions',
4688 '*oem_table_id': 'str',
4689 '*oem_rev': 'uint32',
4690 '*asl_compiler_id': 'str',
4691 '*asl_compiler_rev': 'uint32',
4696 # @CommandLineParameterType:
4698 # Possible types for an option parameter.
4700 # @string: accepts a character string
4702 # @boolean: accepts "on" or "off"
4704 # @number: accepts a number
4706 # @size: accepts a number followed by an optional suffix (K)ilo,
4707 # (M)ega, (G)iga, (T)era
4711 { 'enum': 'CommandLineParameterType',
4712 'data': ['string', 'boolean', 'number', 'size'] }
4715 # @CommandLineParameterInfo:
4717 # Details about a single parameter of a command line option.
4719 # @name: parameter name
4721 # @type: parameter @CommandLineParameterType
4723 # @help: #optional human readable text string, not suitable for parsing.
4725 # @default: #optional default value string (since 2.1)
4729 { 'struct': 'CommandLineParameterInfo',
4730 'data': { 'name': 'str',
4731 'type': 'CommandLineParameterType',
4733 '*default': 'str' } }
4736 # @CommandLineOptionInfo:
4738 # Details about a command line option, including its list of parameter details
4740 # @option: option name
4742 # @parameters: an array of @CommandLineParameterInfo
4746 { 'struct': 'CommandLineOptionInfo',
4747 'data': { 'option': 'str', 'parameters': ['CommandLineParameterInfo'] } }
4750 # @query-command-line-options:
4752 # Query command line option schema.
4754 # @option: #optional option name
4756 # Returns: list of @CommandLineOptionInfo for all options (or for the given
4757 # @option). Returns an error if the given @option doesn't exist.
4761 {'command': 'query-command-line-options', 'data': { '*option': 'str' },
4762 'returns': ['CommandLineOptionInfo'] }
4765 # @X86CPURegister32:
4767 # A X86 32-bit register
4771 { 'enum': 'X86CPURegister32',
4772 'data': [ 'EAX', 'EBX', 'ECX', 'EDX', 'ESP', 'EBP', 'ESI', 'EDI' ] }
4775 # @X86CPUFeatureWordInfo:
4777 # Information about a X86 CPU feature word
4779 # @cpuid-input-eax: Input EAX value for CPUID instruction for that feature word
4781 # @cpuid-input-ecx: #optional Input ECX value for CPUID instruction for that
4784 # @cpuid-register: Output register containing the feature bits
4786 # @features: value of output register, containing the feature bits
4790 { 'struct': 'X86CPUFeatureWordInfo',
4791 'data': { 'cpuid-input-eax': 'int',
4792 '*cpuid-input-ecx': 'int',
4793 'cpuid-register': 'X86CPURegister32',
4794 'features': 'int' } }
4797 # @DummyForceArrays:
4799 # Not used by QMP; hack to let us use X86CPUFeatureWordInfoList internally
4803 { 'struct': 'DummyForceArrays',
4804 'data': { 'unused': ['X86CPUFeatureWordInfo'] } }
4810 # Packets receiving state
4812 # @normal: filter assigned packets according to the mac-table
4814 # @none: don't receive any assigned packet
4816 # @all: receive all assigned packets
4820 { 'enum': 'RxState', 'data': [ 'normal', 'none', 'all' ] }
4825 # Rx-filter information for a NIC.
4827 # @name: net client name
4829 # @promiscuous: whether promiscuous mode is enabled
4831 # @multicast: multicast receive state
4833 # @unicast: unicast receive state
4835 # @vlan: vlan receive state (Since 2.0)
4837 # @broadcast-allowed: whether to receive broadcast
4839 # @multicast-overflow: multicast table is overflowed or not
4841 # @unicast-overflow: unicast table is overflowed or not
4843 # @main-mac: the main macaddr string
4845 # @vlan-table: a list of active vlan id
4847 # @unicast-table: a list of unicast macaddr string
4849 # @multicast-table: a list of multicast macaddr string
4853 { 'struct': 'RxFilterInfo',
4856 'promiscuous': 'bool',
4857 'multicast': 'RxState',
4858 'unicast': 'RxState',
4860 'broadcast-allowed': 'bool',
4861 'multicast-overflow': 'bool',
4862 'unicast-overflow': 'bool',
4864 'vlan-table': ['int'],
4865 'unicast-table': ['str'],
4866 'multicast-table': ['str'] }}
4871 # Return rx-filter information for all NICs (or for the given NIC).
4873 # @name: #optional net client name
4875 # Returns: list of @RxFilterInfo for all NICs (or for the given NIC).
4876 # Returns an error if the given @name doesn't exist, or given
4877 # NIC doesn't support rx-filter querying, or given net client
4882 { 'command': 'query-rx-filter', 'data': { '*name': 'str' },
4883 'returns': ['RxFilterInfo'] }
4888 # Button of a pointer input device (mouse, tablet).
4892 { 'enum' : 'InputButton',
4893 'data' : [ 'left', 'middle', 'right', 'wheel-up', 'wheel-down' ] }
4898 # Position axis of a pointer input device (mouse, tablet).
4902 { 'enum' : 'InputAxis',
4903 'data' : [ 'x', 'y' ] }
4908 # Keyboard input event.
4910 # @key: Which key this event is for.
4911 # @down: True for key-down and false for key-up events.
4915 { 'struct' : 'InputKeyEvent',
4916 'data' : { 'key' : 'KeyValue',
4922 # Pointer button input event.
4924 # @button: Which button this event is for.
4925 # @down: True for key-down and false for key-up events.
4929 { 'struct' : 'InputBtnEvent',
4930 'data' : { 'button' : 'InputButton',
4936 # Pointer motion input event.
4938 # @axis: Which axis is referenced by @value.
4939 # @value: Pointer position. For absolute coordinates the
4940 # valid range is 0 -> 0x7ffff
4944 { 'struct' : 'InputMoveEvent',
4945 'data' : { 'axis' : 'InputAxis',
4951 # Input event union.
4953 # @type: the input type, one of:
4954 # - 'key': Input event of Keyboard
4955 # - 'btn': Input event of pointer buttons
4956 # - 'rel': Input event of relative pointer motion
4957 # - 'abs': Input event of absolute pointer motion
4961 { 'union' : 'InputEvent',
4962 'data' : { 'key' : 'InputKeyEvent',
4963 'btn' : 'InputBtnEvent',
4964 'rel' : 'InputMoveEvent',
4965 'abs' : 'InputMoveEvent' } }
4968 # @input-send-event:
4970 # Send input event(s) to guest.
4972 # @device: #optional display device to send event(s) to.
4973 # @head: #optional head to send event(s) to, in case the
4974 # display device supports multiple scanouts.
4975 # @events: List of InputEvent union.
4977 # Returns: Nothing on success.
4979 # The @display and @head parameters can be used to send the input
4980 # event to specific input devices in case (a) multiple input devices
4981 # of the same kind are added to the virtual machine and (b) you have
4982 # configured input routing (see docs/multiseat.txt) for those input
4983 # devices. The parameters work exactly like the device and head
4984 # properties of input devices. If @device is missing, only devices
4985 # that have no input routing config are admissible. If @device is
4986 # specified, both input devices with and without input routing config
4987 # are admissible, but devices with input routing config take
4992 { 'command': 'input-send-event',
4993 'data': { '*device': 'str',
4995 'events' : [ 'InputEvent' ] } }
5000 # A discriminated record of NUMA options. (for OptsVisitor)
5004 { 'union': 'NumaOptions',
5006 'node': 'NumaNodeOptions' }}
5011 # Create a guest NUMA node. (for OptsVisitor)
5013 # @nodeid: #optional NUMA node ID (increase by 1 from 0 if omitted)
5015 # @cpus: #optional VCPUs belonging to this node (assign VCPUS round-robin
5018 # @mem: #optional memory size of this node; mutually exclusive with @memdev.
5019 # Equally divide total memory among nodes if both @mem and @memdev are
5022 # @memdev: #optional memory backend object. If specified for one node,
5023 # it must be specified for all nodes.
5027 { 'struct': 'NumaNodeOptions',
5029 '*nodeid': 'uint16',
5030 '*cpus': ['uint16'],
5037 # Host memory policy types
5039 # @default: restore default policy, remove any nondefault policy
5041 # @preferred: set the preferred host nodes for allocation
5043 # @bind: a strict policy that restricts memory allocation to the
5044 # host nodes specified
5046 # @interleave: memory allocations are interleaved across the set
5047 # of host nodes specified
5051 { 'enum': 'HostMemPolicy',
5052 'data': [ 'default', 'preferred', 'bind', 'interleave' ] }
5057 # Information about memory backend
5059 # @id: #optional backend's ID if backend has 'id' property (since 2.9)
5061 # @size: memory backend size
5063 # @merge: enables or disables memory merge support
5065 # @dump: includes memory backend's memory in a core dump or not
5067 # @prealloc: enables or disables memory preallocation
5069 # @host-nodes: host nodes for its memory policy
5071 # @policy: memory policy of memory backend
5075 { 'struct': 'Memdev',
5082 'host-nodes': ['uint16'],
5083 'policy': 'HostMemPolicy' }}
5088 # Returns information for all memory backends.
5090 # Returns: a list of @Memdev.
5094 { 'command': 'query-memdev', 'returns': ['Memdev'] }
5097 # @PCDIMMDeviceInfo:
5099 # PCDIMMDevice state information
5101 # @id: #optional device's ID
5103 # @addr: physical address, where device is mapped
5105 # @size: size of memory that the device provides
5107 # @slot: slot number at which device is plugged in
5109 # @node: NUMA node number where device is plugged in
5111 # @memdev: memory backend linked with device
5113 # @hotplugged: true if device was hotplugged
5115 # @hotpluggable: true if device if could be added/removed while machine is running
5119 { 'struct': 'PCDIMMDeviceInfo',
5120 'data': { '*id': 'str',
5126 'hotplugged': 'bool',
5127 'hotpluggable': 'bool'
5132 # @MemoryDeviceInfo:
5134 # Union containing information about a memory device
5138 { 'union': 'MemoryDeviceInfo', 'data': {'dimm': 'PCDIMMDeviceInfo'} }
5141 # @query-memory-devices:
5143 # Lists available memory devices and their state
5147 { 'command': 'query-memory-devices', 'returns': ['MemoryDeviceInfo'] }
5152 # @DIMM: memory slot
5153 # @CPU: logical CPU slot (since 2.7)
5155 { 'enum': 'ACPISlotType', 'data': [ 'DIMM', 'CPU' ] }
5160 # OSPM Status Indication for a device
5161 # For description of possible values of @source and @status fields
5162 # see "_OST (OSPM Status Indication)" chapter of ACPI5.0 spec.
5164 # @device: #optional device ID associated with slot
5166 # @slot: slot ID, unique per slot of a given @slot-type
5168 # @slot-type: type of the slot
5170 # @source: an integer containing the source event
5172 # @status: an integer containing the status code
5176 { 'struct': 'ACPIOSTInfo',
5177 'data' : { '*device': 'str',
5179 'slot-type': 'ACPISlotType',
5184 # @query-acpi-ospm-status:
5186 # Lists ACPI OSPM status of ACPI device objects,
5187 # which might be reported via _OST method
5191 { 'command': 'query-acpi-ospm-status', 'returns': ['ACPIOSTInfo'] }
5194 # @WatchdogExpirationAction:
5196 # An enumeration of the actions taken when the watchdog device's timer is
5199 # @reset: system resets
5201 # @shutdown: system shutdown, note that it is similar to @powerdown, which
5202 # tries to set to system status and notify guest
5204 # @poweroff: system poweroff, the emulator program exits
5206 # @pause: system pauses, similar to @stop
5208 # @debug: system enters debug state
5210 # @none: nothing is done
5212 # @inject-nmi: a non-maskable interrupt is injected into the first VCPU (all
5213 # VCPUS on x86) (since 2.4)
5217 { 'enum': 'WatchdogExpirationAction',
5218 'data': [ 'reset', 'shutdown', 'poweroff', 'pause', 'debug', 'none',
5224 # An enumeration of the I/O operation types
5226 # @read: read operation
5228 # @write: write operation
5232 { 'enum': 'IoOperationType',
5233 'data': [ 'read', 'write' ] }
5236 # @GuestPanicAction:
5238 # An enumeration of the actions taken when guest OS panic is detected
5240 # @pause: system pauses
5242 # Since: 2.1 (poweroff since 2.8)
5244 { 'enum': 'GuestPanicAction',
5245 'data': [ 'pause', 'poweroff' ] }
5248 # @rtc-reset-reinjection:
5250 # This command will reset the RTC interrupt reinjection backlog.
5251 # Can be used if another mechanism to synchronize guest time
5252 # is in effect, for example QEMU guest agent's guest-set-time
5257 { 'command': 'rtc-reset-reinjection' }
5259 # Rocker ethernet network switch
5260 { 'include': 'qapi/rocker.json' }
5265 # Mode of the replay subsystem.
5267 # @none: normal execution mode. Replay or record are not enabled.
5269 # @record: record mode. All non-deterministic data is written into the
5272 # @play: replay mode. Non-deterministic data required for system execution
5273 # is read from the log.
5277 { 'enum': 'ReplayMode',
5278 'data': [ 'none', 'record', 'play' ] }
5281 # @xen-load-devices-state:
5283 # Load the state of all devices from file. The RAM and the block devices
5284 # of the VM are not loaded by this command.
5286 # @filename: the file to load the state of the devices from as binary
5287 # data. See xen-save-devices-state.txt for a description of the binary
5292 { 'command': 'xen-load-devices-state', 'data': {'filename': 'str'} }
5297 # The struct describes capability for a specific GIC (Generic
5298 # Interrupt Controller) version. These bits are not only decided by
5299 # QEMU/KVM software version, but also decided by the hardware that
5300 # the program is running upon.
5302 # @version: version of GIC to be described. Currently, only 2 and 3
5305 # @emulated: whether current QEMU/hardware supports emulated GIC
5306 # device in user space.
5308 # @kernel: whether current QEMU/hardware supports hardware
5309 # accelerated GIC device in kernel.
5313 { 'struct': 'GICCapability',
5314 'data': { 'version': 'int',
5316 'kernel': 'bool' } }
5319 # @query-gic-capabilities:
5321 # This command is ARM-only. It will return a list of GICCapability
5322 # objects that describe its capability bits.
5324 # Returns: a list of GICCapability objects.
5328 { 'command': 'query-gic-capabilities', 'returns': ['GICCapability'] }
5331 # @CpuInstanceProperties:
5333 # List of properties to be used for hotplugging a CPU instance,
5334 # it should be passed by management with device_add command when
5335 # a CPU is being hotplugged.
5337 # @node-id: #optional NUMA node ID the CPU belongs to
5338 # @socket-id: #optional socket number within node/board the CPU belongs to
5339 # @core-id: #optional core number within socket the CPU belongs to
5340 # @thread-id: #optional thread number within core the CPU belongs to
5342 # Note: currently there are 4 properties that could be present
5343 # but management should be prepared to pass through other
5344 # properties with device_add command to allow for future
5345 # interface extension. This also requires the filed names to be kept in
5346 # sync with the properties passed to -device/device_add.
5350 { 'struct': 'CpuInstanceProperties',
5351 'data': { '*node-id': 'int',
5352 '*socket-id': 'int',
5361 # @type: CPU object type for usage with device_add command
5362 # @props: list of properties to be used for hotplugging CPU
5363 # @vcpus-count: number of logical VCPU threads @HotpluggableCPU provides
5364 # @qom-path: #optional link to existing CPU object if CPU is present or
5365 # omitted if CPU is not present.
5369 { 'struct': 'HotpluggableCPU',
5370 'data': { 'type': 'str',
5371 'vcpus-count': 'int',
5372 'props': 'CpuInstanceProperties',
5378 # @query-hotpluggable-cpus:
5380 # Returns: a list of HotpluggableCPU objects.
5384 { 'command': 'query-hotpluggable-cpus', 'returns': ['HotpluggableCPU'] }