8 { 'include': 'common.json' }
13 # Enable QMP capabilities.
17 # @enable: An optional list of QMPCapability values to enable. The
18 # client must not enable any capability that is not
19 # mentioned in the QMP greeting message. If the field is not
20 # provided, it means no QMP capabilities will be enabled.
25 # -> { "execute": "qmp_capabilities",
26 # "arguments": { "enable": [ "oob" ] } }
29 # Notes: This command is valid exactly when first connecting: it must be
30 # issued before any other command will be accepted, and will fail once the
31 # monitor is accepting other commands. (see qemu docs/interop/qmp-spec.txt)
33 # The QMP client needs to explicitly enable QMP capabilities, otherwise
34 # all the QMP capabilities will be turned off by default.
39 { 'command': 'qmp_capabilities',
40 'data': { '*enable': [ 'QMPCapability' ] },
41 'allow-preconfig': true }
46 # Enumeration of capabilities to be advertised during initial client
47 # connection, used for agreeing on particular QMP extension behaviors.
49 # @oob: QMP ability to support out-of-band requests.
50 # (Please refer to qmp-spec.txt for more information on OOB)
55 { 'enum': 'QMPCapability',
61 # A three-part version number.
63 # @major: The major version number.
65 # @minor: The minor version number.
67 # @micro: The micro version number.
71 { 'struct': 'VersionTriple',
72 'data': {'major': 'int', 'minor': 'int', 'micro': 'int'} }
78 # A description of QEMU's version.
80 # @qemu: The version of QEMU. By current convention, a micro
81 # version of 50 signifies a development branch. A micro version
82 # greater than or equal to 90 signifies a release candidate for
83 # the next minor version. A micro version of less than 50
84 # signifies a stable release.
86 # @package: QEMU will always set this field to an empty string. Downstream
87 # versions of QEMU should set this to a non-empty string. The
88 # exact format depends on the downstream however it highly
89 # recommended that a unique name is used.
93 { 'struct': 'VersionInfo',
94 'data': {'qemu': 'VersionTriple', 'package': 'str'} }
99 # Returns the current version of QEMU.
101 # Returns: A @VersionInfo object describing the current version of QEMU.
107 # -> { "execute": "query-version" }
120 { 'command': 'query-version', 'returns': 'VersionInfo',
121 'allow-preconfig': true }
126 # Information about a QMP command
128 # @name: The command name
132 { 'struct': 'CommandInfo', 'data': {'name': 'str'} }
137 # Return a list of supported QMP commands by this server
139 # Returns: A list of @CommandInfo for all supported commands
145 # -> { "execute": "query-commands" }
149 # "name":"query-balloon"
152 # "name":"system_powerdown"
157 # Note: This example has been shortened as the real response is too long.
160 { 'command': 'query-commands', 'returns': ['CommandInfo'],
161 'allow-preconfig': true }
166 # Policy for handling lost ticks in timer devices.
168 # @discard: throw away the missed tick(s) and continue with future injection
169 # normally. Guest time may be delayed, unless the OS has explicit
170 # handling of lost ticks
172 # @delay: continue to deliver ticks at the normal rate. Guest time will be
173 # delayed due to the late tick
175 # @slew: deliver ticks at a higher rate to catch up with the missed tick. The
176 # guest time should not be delayed once catchup is complete.
180 { 'enum': 'LostTickPolicy',
181 'data': ['discard', 'delay', 'slew' ] }
186 # Allow client connections for VNC, Spice and socket based
187 # character devices to be passed in to QEMU via SCM_RIGHTS.
189 # @protocol: protocol name. Valid names are "vnc", "spice" or the
190 # name of a character device (eg. from -chardev id=XXXX)
192 # @fdname: file descriptor name previously passed via 'getfd' command
194 # @skipauth: whether to skip authentication. Only applies
195 # to "vnc" and "spice" protocols
197 # @tls: whether to perform TLS. Only applies to the "spice"
200 # Returns: nothing on success.
206 # -> { "execute": "add_client", "arguments": { "protocol": "vnc",
207 # "fdname": "myclient" } }
208 # <- { "return": {} }
211 { 'command': 'add_client',
212 'data': { 'protocol': 'str', 'fdname': 'str', '*skipauth': 'bool',
218 # Guest name information.
220 # @name: The name of the guest
224 { 'struct': 'NameInfo', 'data': {'*name': 'str'} }
229 # Return the name information of a guest.
231 # Returns: @NameInfo of the guest
237 # -> { "execute": "query-name" }
238 # <- { "return": { "name": "qemu-name" } }
241 { 'command': 'query-name', 'returns': 'NameInfo', 'allow-preconfig': true }
246 # Information about support for KVM acceleration
248 # @enabled: true if KVM acceleration is active
250 # @present: true if KVM acceleration is built into this executable
254 { 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} }
259 # Returns information about KVM acceleration
267 # -> { "execute": "query-kvm" }
268 # <- { "return": { "enabled": true, "present": true } }
271 { 'command': 'query-kvm', 'returns': 'KvmInfo' }
276 # Guest UUID information (Universally Unique Identifier).
278 # @UUID: the UUID of the guest
282 # Notes: If no UUID was specified for the guest, a null UUID is returned.
284 { 'struct': 'UuidInfo', 'data': {'UUID': 'str'} }
289 # Query the guest UUID information.
291 # Returns: The @UuidInfo for the guest
297 # -> { "execute": "query-uuid" }
298 # <- { "return": { "UUID": "550e8400-e29b-41d4-a716-446655440000" } }
301 { 'command': 'query-uuid', 'returns': 'UuidInfo', 'allow-preconfig': true }
306 # Information about a QMP event
308 # @name: The event name
312 { 'struct': 'EventInfo', 'data': {'name': 'str'} }
317 # Return information on QMP events.
319 # Returns: A list of @EventInfo.
323 # Note: This command is deprecated, because its output doesn't reflect
324 # compile-time configuration. Use query-qmp-schema instead.
328 # -> { "execute": "query-events" }
340 # Note: This example has been shortened as the real response is too long.
343 { 'command': 'query-events', 'returns': ['EventInfo'] }
348 # Information about an iothread
350 # @id: the identifier of the iothread
352 # @thread-id: ID of the underlying host thread
354 # @poll-max-ns: maximum polling time in ns, 0 means polling is disabled
357 # @poll-grow: how many ns will be added to polling time, 0 means that it's not
358 # configured (since 2.9)
360 # @poll-shrink: how many ns will be removed from polling time, 0 means that
361 # it's not configured (since 2.9)
365 { 'struct': 'IOThreadInfo',
366 'data': {'id': 'str',
368 'poll-max-ns': 'int',
370 'poll-shrink': 'int' } }
375 # Returns a list of information about each iothread.
377 # Note: this list excludes the QEMU main loop thread, which is not declared
378 # using the -object iothread command-line option. It is always the main thread
381 # Returns: a list of @IOThreadInfo for each iothread
387 # -> { "execute": "query-iothreads" }
401 { 'command': 'query-iothreads', 'returns': ['IOThreadInfo'],
402 'allow-preconfig': true }
407 # Information about the guest balloon device.
409 # @actual: the number of bytes the balloon currently contains
414 { 'struct': 'BalloonInfo', 'data': {'actual': 'int' } }
419 # Return information about the balloon device.
421 # Returns: @BalloonInfo on success
423 # If the balloon driver is enabled but not functional because the KVM
424 # kernel module cannot support it, KvmMissingCap
426 # If no balloon device is present, DeviceNotActive
432 # -> { "execute": "query-balloon" }
434 # "actual": 1073741824,
439 { 'command': 'query-balloon', 'returns': 'BalloonInfo' }
444 # Emitted when the guest changes the actual BALLOON level. This value is
445 # equivalent to the @actual field return by the 'query-balloon' command
447 # @actual: actual level of the guest memory balloon in bytes
449 # Note: this event is rate-limited.
455 # <- { "event": "BALLOON_CHANGE",
456 # "data": { "actual": 944766976 },
457 # "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
460 { 'event': 'BALLOON_CHANGE',
461 'data': { 'actual': 'int' } }
466 # A PCI device memory region
468 # @base: the starting address (guest physical)
470 # @limit: the ending address (guest physical)
474 { 'struct': 'PciMemoryRange', 'data': {'base': 'int', 'limit': 'int'} }
479 # Information about a PCI device I/O region.
481 # @bar: the index of the Base Address Register for this region
483 # @type: 'io' if the region is a PIO region
484 # 'memory' if the region is a MMIO region
488 # @prefetch: if @type is 'memory', true if the memory is prefetchable
490 # @mem_type_64: if @type is 'memory', true if the BAR is 64-bit
494 { 'struct': 'PciMemoryRegion',
495 'data': {'bar': 'int', 'type': 'str', 'address': 'int', 'size': 'int',
496 '*prefetch': 'bool', '*mem_type_64': 'bool' } }
501 # Information about a bus of a PCI Bridge device
503 # @number: primary bus interface number. This should be the number of the
504 # bus the device resides on.
506 # @secondary: secondary bus interface number. This is the number of the
507 # main bus for the bridge
509 # @subordinate: This is the highest number bus that resides below the
512 # @io_range: The PIO range for all devices on this bridge
514 # @memory_range: The MMIO range for all devices on this bridge
516 # @prefetchable_range: The range of prefetchable MMIO for all devices on
521 { 'struct': 'PciBusInfo',
522 'data': {'number': 'int', 'secondary': 'int', 'subordinate': 'int',
523 'io_range': 'PciMemoryRange',
524 'memory_range': 'PciMemoryRange',
525 'prefetchable_range': 'PciMemoryRange' } }
530 # Information about a PCI Bridge device
532 # @bus: information about the bus the device resides on
534 # @devices: a list of @PciDeviceInfo for each device on this bridge
538 { 'struct': 'PciBridgeInfo',
539 'data': {'bus': 'PciBusInfo', '*devices': ['PciDeviceInfo']} }
544 # Information about the Class of a PCI device
546 # @desc: a string description of the device's class
548 # @class: the class code of the device
552 { 'struct': 'PciDeviceClass',
553 'data': {'*desc': 'str', 'class': 'int'} }
558 # Information about the Id of a PCI device
560 # @device: the PCI device id
562 # @vendor: the PCI vendor id
564 # @subsystem: the PCI subsystem id (since 3.1)
566 # @subsystem-vendor: the PCI subsystem vendor id (since 3.1)
570 { 'struct': 'PciDeviceId',
571 'data': {'device': 'int', 'vendor': 'int', '*subsystem': 'int',
572 '*subsystem-vendor': 'int'} }
577 # Information about a PCI device
579 # @bus: the bus number of the device
581 # @slot: the slot the device is located in
583 # @function: the function of the slot used by the device
585 # @class_info: the class of the device
587 # @id: the PCI device id
589 # @irq: if an IRQ is assigned to the device, the IRQ number
591 # @qdev_id: the device name of the PCI device
593 # @pci_bridge: if the device is a PCI bridge, the bridge information
595 # @regions: a list of the PCI I/O regions associated with the device
597 # Notes: the contents of @class_info.desc are not stable and should only be
598 # treated as informational.
602 { 'struct': 'PciDeviceInfo',
603 'data': {'bus': 'int', 'slot': 'int', 'function': 'int',
604 'class_info': 'PciDeviceClass', 'id': 'PciDeviceId',
605 '*irq': 'int', 'qdev_id': 'str', '*pci_bridge': 'PciBridgeInfo',
606 'regions': ['PciMemoryRegion']} }
611 # Information about a PCI bus
613 # @bus: the bus index
615 # @devices: a list of devices on this bus
619 { 'struct': 'PciInfo', 'data': {'bus': 'int', 'devices': ['PciDeviceInfo']} }
624 # Return information about the PCI bus topology of the guest.
626 # Returns: a list of @PciInfo for each PCI bus. Each bus is
627 # represented by a json-object, which has a key with a json-array of
628 # all PCI devices attached to it. Each device is represented by a
635 # -> { "execute": "query-pci" }
646 # "desc": "Host bridge"
662 # "desc": "ISA bridge"
678 # "desc": "IDE controller"
700 # "desc": "VGA controller"
710 # "mem_type_64": false,
713 # "address": 4026531840,
718 # "mem_type_64": false,
721 # "address": 4060086272,
726 # "mem_type_64": false,
741 # "desc": "RAM controller"
762 # Note: This example has been shortened as the real response is too long.
765 { 'command': 'query-pci', 'returns': ['PciInfo'] }
770 # This command will cause the QEMU process to exit gracefully. While every
771 # attempt is made to send the QMP response before terminating, this is not
772 # guaranteed. When using this interface, a premature EOF would not be
779 # -> { "execute": "quit" }
780 # <- { "return": {} }
782 { 'command': 'quit' }
787 # Stop all guest VCPU execution.
791 # Notes: This function will succeed even if the guest is already in the stopped
792 # state. In "inmigrate" state, it will ensure that the guest
793 # remains paused once migration finishes, as if the -S option was
794 # passed on the command line.
798 # -> { "execute": "stop" }
799 # <- { "return": {} }
802 { 'command': 'stop' }
807 # Performs a hard reset of a guest.
813 # -> { "execute": "system_reset" }
814 # <- { "return": {} }
817 { 'command': 'system_reset' }
822 # Requests that a guest perform a powerdown operation.
826 # Notes: A guest may or may not respond to this command. This command
827 # returning does not indicate that a guest has accepted the request or
828 # that it has shut down. Many guests will respond to this command by
829 # prompting the user in some way.
832 # -> { "execute": "system_powerdown" }
833 # <- { "return": {} }
836 { 'command': 'system_powerdown' }
841 # Save a portion of guest memory to a file.
843 # @val: the virtual address of the guest to start from
845 # @size: the size of memory region to save
847 # @filename: the file to save the memory to as binary data
849 # @cpu-index: the index of the virtual CPU to use for translating the
850 # virtual address (defaults to CPU 0)
852 # Returns: Nothing on success
856 # Notes: Errors were not reliably returned until 1.1
860 # -> { "execute": "memsave",
861 # "arguments": { "val": 10,
863 # "filename": "/tmp/virtual-mem-dump" } }
864 # <- { "return": {} }
867 { 'command': 'memsave',
868 'data': {'val': 'int', 'size': 'int', 'filename': 'str', '*cpu-index': 'int'} }
873 # Save a portion of guest physical memory to a file.
875 # @val: the physical address of the guest to start from
877 # @size: the size of memory region to save
879 # @filename: the file to save the memory to as binary data
881 # Returns: Nothing on success
885 # Notes: Errors were not reliably returned until 1.1
889 # -> { "execute": "pmemsave",
890 # "arguments": { "val": 10,
892 # "filename": "/tmp/physical-mem-dump" } }
893 # <- { "return": {} }
896 { 'command': 'pmemsave',
897 'data': {'val': 'int', 'size': 'int', 'filename': 'str'} }
902 # Resume guest VCPU execution.
906 # Returns: If successful, nothing
908 # Notes: This command will succeed if the guest is currently running. It
909 # will also succeed if the guest is in the "inmigrate" state; in
910 # this case, the effect of the command is to make sure the guest
911 # starts once migration finishes, removing the effect of the -S
912 # command line option if it was passed.
916 # -> { "execute": "cont" }
917 # <- { "return": {} }
920 { 'command': 'cont' }
925 # Exit from "preconfig" state
927 # This command makes QEMU exit the preconfig state and proceed with
928 # VM initialization using configuration data provided on the command line
929 # and via the QMP monitor during the preconfig state. The command is only
930 # available during the preconfig state (i.e. when the --preconfig command
931 # line option was in use).
939 # -> { "execute": "x-exit-preconfig" }
940 # <- { "return": {} }
943 { 'command': 'x-exit-preconfig', 'allow-preconfig': true }
948 # Wake up guest from suspend. If the guest has wake-up from suspend
949 # support enabled (wakeup-suspend-support flag from
950 # query-current-machine), wake-up guest from suspend if the guest is
951 # in SUSPENDED state. Return an error otherwise.
957 # Note: prior to 4.0, this command does nothing in case the guest
962 # -> { "execute": "system_wakeup" }
963 # <- { "return": {} }
966 { 'command': 'system_wakeup' }
971 # Injects a Non-Maskable Interrupt into the default CPU (x86/s390) or all CPUs (ppc64).
972 # The command fails when the guest doesn't support injecting.
974 # Returns: If successful, nothing
978 # Note: prior to 2.1, this command was only supported for x86 and s390 VMs
982 # -> { "execute": "inject-nmi" }
983 # <- { "return": {} }
986 { 'command': 'inject-nmi' }
991 # Request the balloon driver to change its balloon size.
993 # @value: the target size of the balloon in bytes
995 # Returns: Nothing on success
996 # If the balloon driver is enabled but not functional because the KVM
997 # kernel module cannot support it, KvmMissingCap
998 # If no balloon device is present, DeviceNotActive
1000 # Notes: This command just issues a request to the guest. When it returns,
1001 # the balloon size may not have changed. A guest can change the balloon
1002 # size independent of this command.
1008 # -> { "execute": "balloon", "arguments": { "value": 536870912 } }
1009 # <- { "return": {} }
1012 { 'command': 'balloon', 'data': {'value': 'int'} }
1015 # @human-monitor-command:
1017 # Execute a command on the human monitor and return the output.
1019 # @command-line: the command to execute in the human monitor
1021 # @cpu-index: The CPU to use for commands that require an implicit CPU
1023 # Returns: the output of the command as a string
1027 # Notes: This command only exists as a stop-gap. Its use is highly
1028 # discouraged. The semantics of this command are not
1029 # guaranteed: this means that command names, arguments and
1030 # responses can change or be removed at ANY time. Applications
1031 # that rely on long term stability guarantees should NOT
1034 # Known limitations:
1036 # * This command is stateless, this means that commands that depend
1037 # on state information (such as getfd) might not work
1039 # * Commands that prompt the user for data don't currently work
1043 # -> { "execute": "human-monitor-command",
1044 # "arguments": { "command-line": "info kvm" } }
1045 # <- { "return": "kvm support: enabled\r\n" }
1048 { 'command': 'human-monitor-command',
1049 'data': {'command-line': 'str', '*cpu-index': 'int'},
1055 # This command is multiple commands multiplexed together.
1057 # @device: This is normally the name of a block device but it may also be 'vnc'.
1058 # when it's 'vnc', then sub command depends on @target
1060 # @target: If @device is a block device, then this is the new filename.
1061 # If @device is 'vnc', then if the value 'password' selects the vnc
1062 # change password command. Otherwise, this specifies a new server URI
1063 # address to listen to for VNC connections.
1065 # @arg: If @device is a block device, then this is an optional format to open
1067 # If @device is 'vnc' and @target is 'password', this is the new VNC
1068 # password to set. See change-vnc-password for additional notes.
1070 # Returns: Nothing on success.
1071 # If @device is not a valid block device, DeviceNotFound
1073 # Notes: This interface is deprecated, and it is strongly recommended that you
1074 # avoid using it. For changing block devices, use
1075 # blockdev-change-medium; for changing VNC parameters, use
1076 # change-vnc-password.
1082 # 1. Change a removable medium
1084 # -> { "execute": "change",
1085 # "arguments": { "device": "ide1-cd0",
1086 # "target": "/srv/images/Fedora-12-x86_64-DVD.iso" } }
1087 # <- { "return": {} }
1089 # 2. Change VNC password
1091 # -> { "execute": "change",
1092 # "arguments": { "device": "vnc", "target": "password",
1093 # "arg": "foobar1" } }
1094 # <- { "return": {} }
1097 { 'command': 'change',
1098 'data': {'device': 'str', 'target': 'str', '*arg': 'str'} }
1101 # @xen-set-global-dirty-log:
1103 # Enable or disable the global dirty log mode.
1105 # @enable: true to enable, false to disable.
1113 # -> { "execute": "xen-set-global-dirty-log",
1114 # "arguments": { "enable": true } }
1115 # <- { "return": {} }
1118 { 'command': 'xen-set-global-dirty-log', 'data': { 'enable': 'bool' } }
1123 # Receive a file descriptor via SCM rights and assign it a name
1125 # @fdname: file descriptor name
1127 # Returns: Nothing on success
1131 # Notes: If @fdname already exists, the file descriptor assigned to
1132 # it will be closed and replaced by the received file
1135 # The 'closefd' command can be used to explicitly close the
1136 # file descriptor when it is no longer needed.
1140 # -> { "execute": "getfd", "arguments": { "fdname": "fd1" } }
1141 # <- { "return": {} }
1144 { 'command': 'getfd', 'data': {'fdname': 'str'} }
1149 # Close a file descriptor previously passed via SCM rights
1151 # @fdname: file descriptor name
1153 # Returns: Nothing on success
1159 # -> { "execute": "closefd", "arguments": { "fdname": "fd1" } }
1160 # <- { "return": {} }
1163 { 'command': 'closefd', 'data': {'fdname': 'str'} }
1168 # Actual memory information in bytes.
1170 # @base-memory: size of "base" memory specified with command line
1173 # @plugged-memory: size of memory that can be hot-unplugged. This field
1174 # is omitted if target doesn't support memory hotplug
1175 # (i.e. CONFIG_MEM_DEVICE not defined at build time).
1179 { 'struct': 'MemoryInfo',
1180 'data' : { 'base-memory': 'size', '*plugged-memory': 'size' } }
1183 # @query-memory-size-summary:
1185 # Return the amount of initially allocated and present hotpluggable (if
1186 # enabled) memory in bytes.
1190 # -> { "execute": "query-memory-size-summary" }
1191 # <- { "return": { "base-memory": 4294967296, "plugged-memory": 0 } }
1195 { 'command': 'query-memory-size-summary', 'returns': 'MemoryInfo' }
1201 # Information about a file descriptor that was added to an fd set.
1203 # @fdset-id: The ID of the fd set that @fd was added to.
1205 # @fd: The file descriptor that was received via SCM rights and
1206 # added to the fd set.
1210 { 'struct': 'AddfdInfo', 'data': {'fdset-id': 'int', 'fd': 'int'} }
1215 # Add a file descriptor, that was passed via SCM rights, to an fd set.
1217 # @fdset-id: The ID of the fd set to add the file descriptor to.
1219 # @opaque: A free-form string that can be used to describe the fd.
1221 # Returns: @AddfdInfo on success
1223 # If file descriptor was not received, FdNotSupplied
1225 # If @fdset-id is a negative value, InvalidParameterValue
1227 # Notes: The list of fd sets is shared by all monitor connections.
1229 # If @fdset-id is not specified, a new fd set will be created.
1235 # -> { "execute": "add-fd", "arguments": { "fdset-id": 1 } }
1236 # <- { "return": { "fdset-id": 1, "fd": 3 } }
1239 { 'command': 'add-fd',
1240 'data': { '*fdset-id': 'int',
1242 'returns': 'AddfdInfo' }
1247 # Remove a file descriptor from an fd set.
1249 # @fdset-id: The ID of the fd set that the file descriptor belongs to.
1251 # @fd: The file descriptor that is to be removed.
1253 # Returns: Nothing on success
1254 # If @fdset-id or @fd is not found, FdNotFound
1258 # Notes: The list of fd sets is shared by all monitor connections.
1260 # If @fd is not specified, all file descriptors in @fdset-id
1265 # -> { "execute": "remove-fd", "arguments": { "fdset-id": 1, "fd": 3 } }
1266 # <- { "return": {} }
1269 { 'command': 'remove-fd', 'data': {'fdset-id': 'int', '*fd': 'int'} }
1274 # Information about a file descriptor that belongs to an fd set.
1276 # @fd: The file descriptor value.
1278 # @opaque: A free-form string that can be used to describe the fd.
1282 { 'struct': 'FdsetFdInfo',
1283 'data': {'fd': 'int', '*opaque': 'str'} }
1288 # Information about an fd set.
1290 # @fdset-id: The ID of the fd set.
1292 # @fds: A list of file descriptors that belong to this fd set.
1296 { 'struct': 'FdsetInfo',
1297 'data': {'fdset-id': 'int', 'fds': ['FdsetFdInfo']} }
1302 # Return information describing all fd sets.
1304 # Returns: A list of @FdsetInfo
1308 # Note: The list of fd sets is shared by all monitor connections.
1312 # -> { "execute": "query-fdsets" }
1318 # "opaque": "rdonly:/path/to/file"
1322 # "opaque": "rdwr:/path/to/file"
1342 { 'command': 'query-fdsets', 'returns': ['FdsetInfo'] }
1347 # Information describing the QEMU target.
1349 # @arch: the target architecture
1353 { 'struct': 'TargetInfo',
1354 'data': { 'arch': 'SysEmuTarget' } }
1359 # Return information about the target for this QEMU
1361 # Returns: TargetInfo
1365 { 'command': 'query-target', 'returns': 'TargetInfo' }
1368 # @AcpiTableOptions:
1370 # Specify an ACPI table on the command line to load.
1372 # At most one of @file and @data can be specified. The list of files specified
1373 # by any one of them is loaded and concatenated in order. If both are omitted,
1376 # Other fields / optargs can be used to override fields of the generic ACPI
1377 # table header; refer to the ACPI specification 5.0, section 5.2.6 System
1378 # Description Table Header. If a header field is not overridden, then the
1379 # corresponding value from the concatenated blob is used (in case of @file), or
1380 # it is filled in with a hard-coded value (in case of @data).
1382 # String fields are copied into the matching ACPI member from lowest address
1383 # upwards, and silently truncated / NUL-padded to length.
1385 # @sig: table signature / identifier (4 bytes)
1387 # @rev: table revision number (dependent on signature, 1 byte)
1389 # @oem_id: OEM identifier (6 bytes)
1391 # @oem_table_id: OEM table identifier (8 bytes)
1393 # @oem_rev: OEM-supplied revision number (4 bytes)
1395 # @asl_compiler_id: identifier of the utility that created the table
1398 # @asl_compiler_rev: revision number of the utility that created the
1401 # @file: colon (:) separated list of pathnames to load and
1402 # concatenate as table data. The resultant binary blob is expected to
1403 # have an ACPI table header. At least one file is required. This field
1406 # @data: colon (:) separated list of pathnames to load and
1407 # concatenate as table data. The resultant binary blob must not have an
1408 # ACPI table header. At least one file is required. This field excludes
1413 { 'struct': 'AcpiTableOptions',
1418 '*oem_table_id': 'str',
1419 '*oem_rev': 'uint32',
1420 '*asl_compiler_id': 'str',
1421 '*asl_compiler_rev': 'uint32',
1426 # @CommandLineParameterType:
1428 # Possible types for an option parameter.
1430 # @string: accepts a character string
1432 # @boolean: accepts "on" or "off"
1434 # @number: accepts a number
1436 # @size: accepts a number followed by an optional suffix (K)ilo,
1437 # (M)ega, (G)iga, (T)era
1441 { 'enum': 'CommandLineParameterType',
1442 'data': ['string', 'boolean', 'number', 'size'] }
1445 # @CommandLineParameterInfo:
1447 # Details about a single parameter of a command line option.
1449 # @name: parameter name
1451 # @type: parameter @CommandLineParameterType
1453 # @help: human readable text string, not suitable for parsing.
1455 # @default: default value string (since 2.1)
1459 { 'struct': 'CommandLineParameterInfo',
1460 'data': { 'name': 'str',
1461 'type': 'CommandLineParameterType',
1463 '*default': 'str' } }
1466 # @CommandLineOptionInfo:
1468 # Details about a command line option, including its list of parameter details
1470 # @option: option name
1472 # @parameters: an array of @CommandLineParameterInfo
1476 { 'struct': 'CommandLineOptionInfo',
1477 'data': { 'option': 'str', 'parameters': ['CommandLineParameterInfo'] } }
1480 # @query-command-line-options:
1482 # Query command line option schema.
1484 # @option: option name
1486 # Returns: list of @CommandLineOptionInfo for all options (or for the given
1487 # @option). Returns an error if the given @option doesn't exist.
1493 # -> { "execute": "query-command-line-options",
1494 # "arguments": { "option": "option-rom" } }
1499 # "name": "romfile",
1503 # "name": "bootindex",
1507 # "option": "option-rom"
1513 {'command': 'query-command-line-options',
1514 'data': { '*option': 'str' },
1515 'returns': ['CommandLineOptionInfo'],
1516 'allow-preconfig': true }
1519 # @PCDIMMDeviceInfo:
1521 # PCDIMMDevice state information
1525 # @addr: physical address, where device is mapped
1527 # @size: size of memory that the device provides
1529 # @slot: slot number at which device is plugged in
1531 # @node: NUMA node number where device is plugged in
1533 # @memdev: memory backend linked with device
1535 # @hotplugged: true if device was hotplugged
1537 # @hotpluggable: true if device if could be added/removed while machine is running
1541 { 'struct': 'PCDIMMDeviceInfo',
1542 'data': { '*id': 'str',
1548 'hotplugged': 'bool',
1549 'hotpluggable': 'bool'
1554 # @VirtioPMEMDeviceInfo:
1556 # VirtioPMEM state information
1560 # @memaddr: physical address in memory, where device is mapped
1562 # @size: size of memory that the device provides
1564 # @memdev: memory backend linked with device
1568 { 'struct': 'VirtioPMEMDeviceInfo',
1569 'data': { '*id': 'str',
1577 # @MemoryDeviceInfo:
1579 # Union containing information about a memory device
1581 # nvdimm is included since 2.12. virtio-pmem is included since 4.1.
1585 { 'union': 'MemoryDeviceInfo',
1586 'data': { 'dimm': 'PCDIMMDeviceInfo',
1587 'nvdimm': 'PCDIMMDeviceInfo',
1588 'virtio-pmem': 'VirtioPMEMDeviceInfo'
1593 # @query-memory-devices:
1595 # Lists available memory devices and their state
1601 # -> { "execute": "query-memory-devices" }
1602 # <- { "return": [ { "data":
1603 # { "addr": 5368709120,
1604 # "hotpluggable": true,
1605 # "hotplugged": true,
1607 # "memdev": "/objects/memX",
1609 # "size": 1073741824,
1615 { 'command': 'query-memory-devices', 'returns': ['MemoryDeviceInfo'] }
1618 # @MEM_UNPLUG_ERROR:
1620 # Emitted when memory hot unplug error occurs.
1622 # @device: device name
1624 # @msg: Informative message
1630 # <- { "event": "MEM_UNPLUG_ERROR"
1631 # "data": { "device": "dimm1",
1632 # "msg": "acpi: device unplug for unsupported device"
1634 # "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
1637 { 'event': 'MEM_UNPLUG_ERROR',
1638 'data': { 'device': 'str', 'msg': 'str' } }
1643 # @DIMM: memory slot
1644 # @CPU: logical CPU slot (since 2.7)
1646 { 'enum': 'ACPISlotType', 'data': [ 'DIMM', 'CPU' ] }
1651 # OSPM Status Indication for a device
1652 # For description of possible values of @source and @status fields
1653 # see "_OST (OSPM Status Indication)" chapter of ACPI5.0 spec.
1655 # @device: device ID associated with slot
1657 # @slot: slot ID, unique per slot of a given @slot-type
1659 # @slot-type: type of the slot
1661 # @source: an integer containing the source event
1663 # @status: an integer containing the status code
1667 { 'struct': 'ACPIOSTInfo',
1668 'data' : { '*device': 'str',
1670 'slot-type': 'ACPISlotType',
1675 # @query-acpi-ospm-status:
1677 # Return a list of ACPIOSTInfo for devices that support status
1678 # reporting via ACPI _OST method.
1684 # -> { "execute": "query-acpi-ospm-status" }
1685 # <- { "return": [ { "device": "d1", "slot": "0", "slot-type": "DIMM", "source": 1, "status": 0},
1686 # { "slot": "1", "slot-type": "DIMM", "source": 0, "status": 0},
1687 # { "slot": "2", "slot-type": "DIMM", "source": 0, "status": 0},
1688 # { "slot": "3", "slot-type": "DIMM", "source": 0, "status": 0}
1692 { 'command': 'query-acpi-ospm-status', 'returns': ['ACPIOSTInfo'] }
1697 # Emitted when guest executes ACPI _OST method.
1699 # @info: OSPM Status Indication
1705 # <- { "event": "ACPI_DEVICE_OST",
1706 # "data": { "device": "d1", "slot": "0",
1707 # "slot-type": "DIMM", "source": 1, "status": 0 } }
1710 { 'event': 'ACPI_DEVICE_OST',
1711 'data': { 'info': 'ACPIOSTInfo' } }
1716 # Mode of the replay subsystem.
1718 # @none: normal execution mode. Replay or record are not enabled.
1720 # @record: record mode. All non-deterministic data is written into the
1723 # @play: replay mode. Non-deterministic data required for system execution
1724 # is read from the log.
1728 { 'enum': 'ReplayMode',
1729 'data': [ 'none', 'record', 'play' ] }
1732 # @xen-load-devices-state:
1734 # Load the state of all devices from file. The RAM and the block devices
1735 # of the VM are not loaded by this command.
1737 # @filename: the file to load the state of the devices from as binary
1738 # data. See xen-save-devices-state.txt for a description of the binary
1745 # -> { "execute": "xen-load-devices-state",
1746 # "arguments": { "filename": "/tmp/resume" } }
1747 # <- { "return": {} }
1750 { 'command': 'xen-load-devices-state', 'data': {'filename': 'str'} }
1757 # @guid: the globally unique identifier
1761 { 'struct': 'GuidInfo', 'data': {'guid': 'str'} }
1764 # @query-vm-generation-id:
1766 # Show Virtual Machine Generation ID
1770 { 'command': 'query-vm-generation-id', 'returns': 'GuidInfo' }