8 { 'include': 'common.json' }
13 # Policy for handling lost ticks in timer devices. Ticks end up getting
14 # lost when, for example, the guest is paused.
16 # @discard: throw away the missed ticks and continue with future injection
17 # normally. The guest OS will see the timer jump ahead by a
18 # potentially quite significant amount all at once, as if the
19 # intervening chunk of time had simply not existed; needless to
20 # say, such a sudden jump can easily confuse a guest OS which is
21 # not specifically prepared to deal with it. Assuming the guest
22 # OS can deal correctly with the time jump, the time in the guest
23 # and in the host should now match.
25 # @delay: continue to deliver ticks at the normal rate. The guest OS will
26 # not notice anything is amiss, as from its point of view time will
27 # have continued to flow normally. The time in the guest should now
28 # be behind the time in the host by exactly the amount of time during
29 # which ticks have been missed.
31 # @slew: deliver ticks at a higher rate to catch up with the missed ticks.
32 # The guest OS will not notice anything is amiss, as from its point
33 # of view time will have continued to flow normally. Once the timer
34 # has managed to catch up with all the missing ticks, the time in
35 # the guest and in the host should match.
39 { 'enum': 'LostTickPolicy',
40 'data': ['discard', 'delay', 'slew' ] }
45 # Allow client connections for VNC, Spice and socket based
46 # character devices to be passed in to QEMU via SCM_RIGHTS.
48 # @protocol: protocol name. Valid names are "vnc", "spice" or the
49 # name of a character device (eg. from -chardev id=XXXX)
51 # @fdname: file descriptor name previously passed via 'getfd' command
53 # @skipauth: whether to skip authentication. Only applies
54 # to "vnc" and "spice" protocols
56 # @tls: whether to perform TLS. Only applies to the "spice"
59 # Returns: nothing on success.
65 # -> { "execute": "add_client", "arguments": { "protocol": "vnc",
66 # "fdname": "myclient" } }
70 { 'command': 'add_client',
71 'data': { 'protocol': 'str', 'fdname': 'str', '*skipauth': 'bool',
77 # Guest name information.
79 # @name: The name of the guest
83 { 'struct': 'NameInfo', 'data': {'*name': 'str'} }
88 # Return the name information of a guest.
90 # Returns: @NameInfo of the guest
96 # -> { "execute": "query-name" }
97 # <- { "return": { "name": "qemu-name" } }
100 { 'command': 'query-name', 'returns': 'NameInfo', 'allow-preconfig': true }
105 # Information about support for KVM acceleration
107 # @enabled: true if KVM acceleration is active
109 # @present: true if KVM acceleration is built into this executable
113 { 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} }
118 # Returns information about KVM acceleration
126 # -> { "execute": "query-kvm" }
127 # <- { "return": { "enabled": true, "present": true } }
130 { 'command': 'query-kvm', 'returns': 'KvmInfo' }
135 # Guest UUID information (Universally Unique Identifier).
137 # @UUID: the UUID of the guest
141 # Notes: If no UUID was specified for the guest, a null UUID is returned.
143 { 'struct': 'UuidInfo', 'data': {'UUID': 'str'} }
148 # Query the guest UUID information.
150 # Returns: The @UuidInfo for the guest
156 # -> { "execute": "query-uuid" }
157 # <- { "return": { "UUID": "550e8400-e29b-41d4-a716-446655440000" } }
160 { 'command': 'query-uuid', 'returns': 'UuidInfo', 'allow-preconfig': true }
165 # Information about an iothread
167 # @id: the identifier of the iothread
169 # @thread-id: ID of the underlying host thread
171 # @poll-max-ns: maximum polling time in ns, 0 means polling is disabled
174 # @poll-grow: how many ns will be added to polling time, 0 means that it's not
175 # configured (since 2.9)
177 # @poll-shrink: how many ns will be removed from polling time, 0 means that
178 # it's not configured (since 2.9)
182 { 'struct': 'IOThreadInfo',
183 'data': {'id': 'str',
185 'poll-max-ns': 'int',
187 'poll-shrink': 'int' } }
192 # Returns a list of information about each iothread.
194 # Note: this list excludes the QEMU main loop thread, which is not declared
195 # using the -object iothread command-line option. It is always the main thread
198 # Returns: a list of @IOThreadInfo for each iothread
204 # -> { "execute": "query-iothreads" }
218 { 'command': 'query-iothreads', 'returns': ['IOThreadInfo'],
219 'allow-preconfig': true }
224 # Information about the guest balloon device.
226 # @actual: the number of bytes the balloon currently contains
231 { 'struct': 'BalloonInfo', 'data': {'actual': 'int' } }
236 # Return information about the balloon device.
238 # Returns: - @BalloonInfo on success
239 # - If the balloon driver is enabled but not functional because the KVM
240 # kernel module cannot support it, KvmMissingCap
241 # - If no balloon device is present, DeviceNotActive
247 # -> { "execute": "query-balloon" }
249 # "actual": 1073741824,
254 { 'command': 'query-balloon', 'returns': 'BalloonInfo' }
259 # Emitted when the guest changes the actual BALLOON level. This value is
260 # equivalent to the @actual field return by the 'query-balloon' command
262 # @actual: actual level of the guest memory balloon in bytes
264 # Note: this event is rate-limited.
270 # <- { "event": "BALLOON_CHANGE",
271 # "data": { "actual": 944766976 },
272 # "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
275 { 'event': 'BALLOON_CHANGE',
276 'data': { 'actual': 'int' } }
281 # A PCI device memory region
283 # @base: the starting address (guest physical)
285 # @limit: the ending address (guest physical)
289 { 'struct': 'PciMemoryRange', 'data': {'base': 'int', 'limit': 'int'} }
294 # Information about a PCI device I/O region.
296 # @bar: the index of the Base Address Register for this region
298 # @type: - 'io' if the region is a PIO region
299 # - 'memory' if the region is a MMIO region
303 # @prefetch: if @type is 'memory', true if the memory is prefetchable
305 # @mem_type_64: if @type is 'memory', true if the BAR is 64-bit
309 { 'struct': 'PciMemoryRegion',
310 'data': {'bar': 'int', 'type': 'str', 'address': 'int', 'size': 'int',
311 '*prefetch': 'bool', '*mem_type_64': 'bool' } }
316 # Information about a bus of a PCI Bridge device
318 # @number: primary bus interface number. This should be the number of the
319 # bus the device resides on.
321 # @secondary: secondary bus interface number. This is the number of the
322 # main bus for the bridge
324 # @subordinate: This is the highest number bus that resides below the
327 # @io_range: The PIO range for all devices on this bridge
329 # @memory_range: The MMIO range for all devices on this bridge
331 # @prefetchable_range: The range of prefetchable MMIO for all devices on
336 { 'struct': 'PciBusInfo',
337 'data': {'number': 'int', 'secondary': 'int', 'subordinate': 'int',
338 'io_range': 'PciMemoryRange',
339 'memory_range': 'PciMemoryRange',
340 'prefetchable_range': 'PciMemoryRange' } }
345 # Information about a PCI Bridge device
347 # @bus: information about the bus the device resides on
349 # @devices: a list of @PciDeviceInfo for each device on this bridge
353 { 'struct': 'PciBridgeInfo',
354 'data': {'bus': 'PciBusInfo', '*devices': ['PciDeviceInfo']} }
359 # Information about the Class of a PCI device
361 # @desc: a string description of the device's class
363 # @class: the class code of the device
367 { 'struct': 'PciDeviceClass',
368 'data': {'*desc': 'str', 'class': 'int'} }
373 # Information about the Id of a PCI device
375 # @device: the PCI device id
377 # @vendor: the PCI vendor id
379 # @subsystem: the PCI subsystem id (since 3.1)
381 # @subsystem-vendor: the PCI subsystem vendor id (since 3.1)
385 { 'struct': 'PciDeviceId',
386 'data': {'device': 'int', 'vendor': 'int', '*subsystem': 'int',
387 '*subsystem-vendor': 'int'} }
392 # Information about a PCI device
394 # @bus: the bus number of the device
396 # @slot: the slot the device is located in
398 # @function: the function of the slot used by the device
400 # @class_info: the class of the device
402 # @id: the PCI device id
404 # @irq: if an IRQ is assigned to the device, the IRQ number
406 # @qdev_id: the device name of the PCI device
408 # @pci_bridge: if the device is a PCI bridge, the bridge information
410 # @regions: a list of the PCI I/O regions associated with the device
412 # Notes: the contents of @class_info.desc are not stable and should only be
413 # treated as informational.
417 { 'struct': 'PciDeviceInfo',
418 'data': {'bus': 'int', 'slot': 'int', 'function': 'int',
419 'class_info': 'PciDeviceClass', 'id': 'PciDeviceId',
420 '*irq': 'int', 'qdev_id': 'str', '*pci_bridge': 'PciBridgeInfo',
421 'regions': ['PciMemoryRegion']} }
426 # Information about a PCI bus
428 # @bus: the bus index
430 # @devices: a list of devices on this bus
434 { 'struct': 'PciInfo', 'data': {'bus': 'int', 'devices': ['PciDeviceInfo']} }
439 # Return information about the PCI bus topology of the guest.
441 # Returns: a list of @PciInfo for each PCI bus. Each bus is
442 # represented by a json-object, which has a key with a json-array of
443 # all PCI devices attached to it. Each device is represented by a
450 # -> { "execute": "query-pci" }
461 # "desc": "Host bridge"
477 # "desc": "ISA bridge"
493 # "desc": "IDE controller"
515 # "desc": "VGA controller"
525 # "mem_type_64": false,
528 # "address": 4026531840,
533 # "mem_type_64": false,
536 # "address": 4060086272,
541 # "mem_type_64": false,
556 # "desc": "RAM controller"
577 # Note: This example has been shortened as the real response is too long.
580 { 'command': 'query-pci', 'returns': ['PciInfo'] }
585 # Stop all guest VCPU execution.
589 # Notes: This function will succeed even if the guest is already in the stopped
590 # state. In "inmigrate" state, it will ensure that the guest
591 # remains paused once migration finishes, as if the -S option was
592 # passed on the command line.
596 # -> { "execute": "stop" }
597 # <- { "return": {} }
600 { 'command': 'stop' }
605 # Performs a hard reset of a guest.
611 # -> { "execute": "system_reset" }
612 # <- { "return": {} }
615 { 'command': 'system_reset' }
620 # Requests that a guest perform a powerdown operation.
624 # Notes: A guest may or may not respond to this command. This command
625 # returning does not indicate that a guest has accepted the request or
626 # that it has shut down. Many guests will respond to this command by
627 # prompting the user in some way.
630 # -> { "execute": "system_powerdown" }
631 # <- { "return": {} }
634 { 'command': 'system_powerdown' }
639 # Save a portion of guest memory to a file.
641 # @val: the virtual address of the guest to start from
643 # @size: the size of memory region to save
645 # @filename: the file to save the memory to as binary data
647 # @cpu-index: the index of the virtual CPU to use for translating the
648 # virtual address (defaults to CPU 0)
650 # Returns: Nothing on success
654 # Notes: Errors were not reliably returned until 1.1
658 # -> { "execute": "memsave",
659 # "arguments": { "val": 10,
661 # "filename": "/tmp/virtual-mem-dump" } }
662 # <- { "return": {} }
665 { 'command': 'memsave',
666 'data': {'val': 'int', 'size': 'int', 'filename': 'str', '*cpu-index': 'int'} }
671 # Save a portion of guest physical memory to a file.
673 # @val: the physical address of the guest to start from
675 # @size: the size of memory region to save
677 # @filename: the file to save the memory to as binary data
679 # Returns: Nothing on success
683 # Notes: Errors were not reliably returned until 1.1
687 # -> { "execute": "pmemsave",
688 # "arguments": { "val": 10,
690 # "filename": "/tmp/physical-mem-dump" } }
691 # <- { "return": {} }
694 { 'command': 'pmemsave',
695 'data': {'val': 'int', 'size': 'int', 'filename': 'str'} }
700 # Resume guest VCPU execution.
704 # Returns: If successful, nothing
706 # Notes: This command will succeed if the guest is currently running. It
707 # will also succeed if the guest is in the "inmigrate" state; in
708 # this case, the effect of the command is to make sure the guest
709 # starts once migration finishes, removing the effect of the -S
710 # command line option if it was passed.
714 # -> { "execute": "cont" }
715 # <- { "return": {} }
718 { 'command': 'cont' }
723 # Exit from "preconfig" state
725 # This command makes QEMU exit the preconfig state and proceed with
726 # VM initialization using configuration data provided on the command line
727 # and via the QMP monitor during the preconfig state. The command is only
728 # available during the preconfig state (i.e. when the --preconfig command
729 # line option was in use).
737 # -> { "execute": "x-exit-preconfig" }
738 # <- { "return": {} }
741 { 'command': 'x-exit-preconfig', 'allow-preconfig': true }
746 # Wake up guest from suspend. If the guest has wake-up from suspend
747 # support enabled (wakeup-suspend-support flag from
748 # query-current-machine), wake-up guest from suspend if the guest is
749 # in SUSPENDED state. Return an error otherwise.
755 # Note: prior to 4.0, this command does nothing in case the guest
760 # -> { "execute": "system_wakeup" }
761 # <- { "return": {} }
764 { 'command': 'system_wakeup' }
769 # Injects a Non-Maskable Interrupt into the default CPU (x86/s390) or all CPUs (ppc64).
770 # The command fails when the guest doesn't support injecting.
772 # Returns: If successful, nothing
776 # Note: prior to 2.1, this command was only supported for x86 and s390 VMs
780 # -> { "execute": "inject-nmi" }
781 # <- { "return": {} }
784 { 'command': 'inject-nmi' }
789 # Request the balloon driver to change its balloon size.
791 # @value: the target size of the balloon in bytes
793 # Returns: - Nothing on success
794 # - If the balloon driver is enabled but not functional because the KVM
795 # kernel module cannot support it, KvmMissingCap
796 # - If no balloon device is present, DeviceNotActive
798 # Notes: This command just issues a request to the guest. When it returns,
799 # the balloon size may not have changed. A guest can change the balloon
800 # size independent of this command.
806 # -> { "execute": "balloon", "arguments": { "value": 536870912 } }
807 # <- { "return": {} }
810 { 'command': 'balloon', 'data': {'value': 'int'} }
813 # @human-monitor-command:
815 # Execute a command on the human monitor and return the output.
817 # @command-line: the command to execute in the human monitor
819 # @cpu-index: The CPU to use for commands that require an implicit CPU
822 # @savevm-monitor-nodes: If present, HMP command savevm only snapshots
823 # monitor-owned nodes if they have no parents.
824 # This allows the use of 'savevm' with
825 # -blockdev. (since 4.2)
827 # Returns: the output of the command as a string
831 # Notes: This command only exists as a stop-gap. Its use is highly
832 # discouraged. The semantics of this command are not
833 # guaranteed: this means that command names, arguments and
834 # responses can change or be removed at ANY time. Applications
835 # that rely on long term stability guarantees should NOT
840 # * This command is stateless, this means that commands that depend
841 # on state information (such as getfd) might not work
843 # * Commands that prompt the user for data don't currently work
847 # -> { "execute": "human-monitor-command",
848 # "arguments": { "command-line": "info kvm" } }
849 # <- { "return": "kvm support: enabled\r\n" }
852 { 'command': 'human-monitor-command',
853 'data': {'command-line': 'str', '*cpu-index': 'int'},
855 'features': [ 'savevm-monitor-nodes' ] }
860 # This command is multiple commands multiplexed together.
862 # @device: This is normally the name of a block device but it may also be 'vnc'.
863 # when it's 'vnc', then sub command depends on @target
865 # @target: If @device is a block device, then this is the new filename.
866 # If @device is 'vnc', then if the value 'password' selects the vnc
867 # change password command. Otherwise, this specifies a new server URI
868 # address to listen to for VNC connections.
870 # @arg: If @device is a block device, then this is an optional format to open
872 # If @device is 'vnc' and @target is 'password', this is the new VNC
873 # password to set. See change-vnc-password for additional notes.
876 # @deprecated: This command is deprecated. For changing block
877 # devices, use 'blockdev-change-medium' instead; for changing VNC
878 # parameters, use 'change-vnc-password' instead.
880 # Returns: - Nothing on success.
881 # - If @device is not a valid block device, DeviceNotFound
887 # 1. Change a removable medium
889 # -> { "execute": "change",
890 # "arguments": { "device": "ide1-cd0",
891 # "target": "/srv/images/Fedora-12-x86_64-DVD.iso" } }
892 # <- { "return": {} }
894 # 2. Change VNC password
896 # -> { "execute": "change",
897 # "arguments": { "device": "vnc", "target": "password",
898 # "arg": "foobar1" } }
899 # <- { "return": {} }
902 { 'command': 'change',
903 'data': {'device': 'str', 'target': 'str', '*arg': 'str'},
904 'features': [ 'deprecated' ] }
907 # @xen-set-global-dirty-log:
909 # Enable or disable the global dirty log mode.
911 # @enable: true to enable, false to disable.
919 # -> { "execute": "xen-set-global-dirty-log",
920 # "arguments": { "enable": true } }
921 # <- { "return": {} }
924 { 'command': 'xen-set-global-dirty-log', 'data': { 'enable': 'bool' } }
929 # Receive a file descriptor via SCM rights and assign it a name
931 # @fdname: file descriptor name
933 # Returns: Nothing on success
937 # Notes: If @fdname already exists, the file descriptor assigned to
938 # it will be closed and replaced by the received file
941 # The 'closefd' command can be used to explicitly close the
942 # file descriptor when it is no longer needed.
946 # -> { "execute": "getfd", "arguments": { "fdname": "fd1" } }
947 # <- { "return": {} }
950 { 'command': 'getfd', 'data': {'fdname': 'str'} }
955 # Close a file descriptor previously passed via SCM rights
957 # @fdname: file descriptor name
959 # Returns: Nothing on success
965 # -> { "execute": "closefd", "arguments": { "fdname": "fd1" } }
966 # <- { "return": {} }
969 { 'command': 'closefd', 'data': {'fdname': 'str'} }
974 # Actual memory information in bytes.
976 # @base-memory: size of "base" memory specified with command line
979 # @plugged-memory: size of memory that can be hot-unplugged. This field
980 # is omitted if target doesn't support memory hotplug
981 # (i.e. CONFIG_MEM_DEVICE not defined at build time).
985 { 'struct': 'MemoryInfo',
986 'data' : { 'base-memory': 'size', '*plugged-memory': 'size' } }
989 # @query-memory-size-summary:
991 # Return the amount of initially allocated and present hotpluggable (if
992 # enabled) memory in bytes.
996 # -> { "execute": "query-memory-size-summary" }
997 # <- { "return": { "base-memory": 4294967296, "plugged-memory": 0 } }
1001 { 'command': 'query-memory-size-summary', 'returns': 'MemoryInfo' }
1007 # Information about a file descriptor that was added to an fd set.
1009 # @fdset-id: The ID of the fd set that @fd was added to.
1011 # @fd: The file descriptor that was received via SCM rights and
1012 # added to the fd set.
1016 { 'struct': 'AddfdInfo', 'data': {'fdset-id': 'int', 'fd': 'int'} }
1021 # Add a file descriptor, that was passed via SCM rights, to an fd set.
1023 # @fdset-id: The ID of the fd set to add the file descriptor to.
1025 # @opaque: A free-form string that can be used to describe the fd.
1027 # Returns: - @AddfdInfo on success
1028 # - If file descriptor was not received, FdNotSupplied
1029 # - If @fdset-id is a negative value, InvalidParameterValue
1031 # Notes: The list of fd sets is shared by all monitor connections.
1033 # If @fdset-id is not specified, a new fd set will be created.
1039 # -> { "execute": "add-fd", "arguments": { "fdset-id": 1 } }
1040 # <- { "return": { "fdset-id": 1, "fd": 3 } }
1043 { 'command': 'add-fd',
1044 'data': { '*fdset-id': 'int',
1046 'returns': 'AddfdInfo' }
1051 # Remove a file descriptor from an fd set.
1053 # @fdset-id: The ID of the fd set that the file descriptor belongs to.
1055 # @fd: The file descriptor that is to be removed.
1057 # Returns: - Nothing on success
1058 # - If @fdset-id or @fd is not found, FdNotFound
1062 # Notes: The list of fd sets is shared by all monitor connections.
1064 # If @fd is not specified, all file descriptors in @fdset-id
1069 # -> { "execute": "remove-fd", "arguments": { "fdset-id": 1, "fd": 3 } }
1070 # <- { "return": {} }
1073 { 'command': 'remove-fd', 'data': {'fdset-id': 'int', '*fd': 'int'} }
1078 # Information about a file descriptor that belongs to an fd set.
1080 # @fd: The file descriptor value.
1082 # @opaque: A free-form string that can be used to describe the fd.
1086 { 'struct': 'FdsetFdInfo',
1087 'data': {'fd': 'int', '*opaque': 'str'} }
1092 # Information about an fd set.
1094 # @fdset-id: The ID of the fd set.
1096 # @fds: A list of file descriptors that belong to this fd set.
1100 { 'struct': 'FdsetInfo',
1101 'data': {'fdset-id': 'int', 'fds': ['FdsetFdInfo']} }
1106 # Return information describing all fd sets.
1108 # Returns: A list of @FdsetInfo
1112 # Note: The list of fd sets is shared by all monitor connections.
1116 # -> { "execute": "query-fdsets" }
1122 # "opaque": "rdonly:/path/to/file"
1126 # "opaque": "rdwr:/path/to/file"
1146 { 'command': 'query-fdsets', 'returns': ['FdsetInfo'] }
1149 # @AcpiTableOptions:
1151 # Specify an ACPI table on the command line to load.
1153 # At most one of @file and @data can be specified. The list of files specified
1154 # by any one of them is loaded and concatenated in order. If both are omitted,
1157 # Other fields / optargs can be used to override fields of the generic ACPI
1158 # table header; refer to the ACPI specification 5.0, section 5.2.6 System
1159 # Description Table Header. If a header field is not overridden, then the
1160 # corresponding value from the concatenated blob is used (in case of @file), or
1161 # it is filled in with a hard-coded value (in case of @data).
1163 # String fields are copied into the matching ACPI member from lowest address
1164 # upwards, and silently truncated / NUL-padded to length.
1166 # @sig: table signature / identifier (4 bytes)
1168 # @rev: table revision number (dependent on signature, 1 byte)
1170 # @oem_id: OEM identifier (6 bytes)
1172 # @oem_table_id: OEM table identifier (8 bytes)
1174 # @oem_rev: OEM-supplied revision number (4 bytes)
1176 # @asl_compiler_id: identifier of the utility that created the table
1179 # @asl_compiler_rev: revision number of the utility that created the
1182 # @file: colon (:) separated list of pathnames to load and
1183 # concatenate as table data. The resultant binary blob is expected to
1184 # have an ACPI table header. At least one file is required. This field
1187 # @data: colon (:) separated list of pathnames to load and
1188 # concatenate as table data. The resultant binary blob must not have an
1189 # ACPI table header. At least one file is required. This field excludes
1194 { 'struct': 'AcpiTableOptions',
1199 '*oem_table_id': 'str',
1200 '*oem_rev': 'uint32',
1201 '*asl_compiler_id': 'str',
1202 '*asl_compiler_rev': 'uint32',
1207 # @CommandLineParameterType:
1209 # Possible types for an option parameter.
1211 # @string: accepts a character string
1213 # @boolean: accepts "on" or "off"
1215 # @number: accepts a number
1217 # @size: accepts a number followed by an optional suffix (K)ilo,
1218 # (M)ega, (G)iga, (T)era
1222 { 'enum': 'CommandLineParameterType',
1223 'data': ['string', 'boolean', 'number', 'size'] }
1226 # @CommandLineParameterInfo:
1228 # Details about a single parameter of a command line option.
1230 # @name: parameter name
1232 # @type: parameter @CommandLineParameterType
1234 # @help: human readable text string, not suitable for parsing.
1236 # @default: default value string (since 2.1)
1240 { 'struct': 'CommandLineParameterInfo',
1241 'data': { 'name': 'str',
1242 'type': 'CommandLineParameterType',
1244 '*default': 'str' } }
1247 # @CommandLineOptionInfo:
1249 # Details about a command line option, including its list of parameter details
1251 # @option: option name
1253 # @parameters: an array of @CommandLineParameterInfo
1257 { 'struct': 'CommandLineOptionInfo',
1258 'data': { 'option': 'str', 'parameters': ['CommandLineParameterInfo'] } }
1261 # @query-command-line-options:
1263 # Query command line option schema.
1265 # @option: option name
1267 # Returns: list of @CommandLineOptionInfo for all options (or for the given
1268 # @option). Returns an error if the given @option doesn't exist.
1274 # -> { "execute": "query-command-line-options",
1275 # "arguments": { "option": "option-rom" } }
1280 # "name": "romfile",
1284 # "name": "bootindex",
1288 # "option": "option-rom"
1294 {'command': 'query-command-line-options',
1295 'data': { '*option': 'str' },
1296 'returns': ['CommandLineOptionInfo'],
1297 'allow-preconfig': true }
1300 # @PCDIMMDeviceInfo:
1302 # PCDIMMDevice state information
1306 # @addr: physical address, where device is mapped
1308 # @size: size of memory that the device provides
1310 # @slot: slot number at which device is plugged in
1312 # @node: NUMA node number where device is plugged in
1314 # @memdev: memory backend linked with device
1316 # @hotplugged: true if device was hotplugged
1318 # @hotpluggable: true if device if could be added/removed while machine is running
1322 { 'struct': 'PCDIMMDeviceInfo',
1323 'data': { '*id': 'str',
1329 'hotplugged': 'bool',
1330 'hotpluggable': 'bool'
1335 # @VirtioPMEMDeviceInfo:
1337 # VirtioPMEM state information
1341 # @memaddr: physical address in memory, where device is mapped
1343 # @size: size of memory that the device provides
1345 # @memdev: memory backend linked with device
1349 { 'struct': 'VirtioPMEMDeviceInfo',
1350 'data': { '*id': 'str',
1358 # @MemoryDeviceInfo:
1360 # Union containing information about a memory device
1362 # nvdimm is included since 2.12. virtio-pmem is included since 4.1.
1366 { 'union': 'MemoryDeviceInfo',
1367 'data': { 'dimm': 'PCDIMMDeviceInfo',
1368 'nvdimm': 'PCDIMMDeviceInfo',
1369 'virtio-pmem': 'VirtioPMEMDeviceInfo'
1374 # @query-memory-devices:
1376 # Lists available memory devices and their state
1382 # -> { "execute": "query-memory-devices" }
1383 # <- { "return": [ { "data":
1384 # { "addr": 5368709120,
1385 # "hotpluggable": true,
1386 # "hotplugged": true,
1388 # "memdev": "/objects/memX",
1390 # "size": 1073741824,
1396 { 'command': 'query-memory-devices', 'returns': ['MemoryDeviceInfo'] }
1399 # @MEM_UNPLUG_ERROR:
1401 # Emitted when memory hot unplug error occurs.
1403 # @device: device name
1405 # @msg: Informative message
1411 # <- { "event": "MEM_UNPLUG_ERROR"
1412 # "data": { "device": "dimm1",
1413 # "msg": "acpi: device unplug for unsupported device"
1415 # "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
1418 { 'event': 'MEM_UNPLUG_ERROR',
1419 'data': { 'device': 'str', 'msg': 'str' } }
1424 # @DIMM: memory slot
1425 # @CPU: logical CPU slot (since 2.7)
1427 { 'enum': 'ACPISlotType', 'data': [ 'DIMM', 'CPU' ] }
1432 # OSPM Status Indication for a device
1433 # For description of possible values of @source and @status fields
1434 # see "_OST (OSPM Status Indication)" chapter of ACPI5.0 spec.
1436 # @device: device ID associated with slot
1438 # @slot: slot ID, unique per slot of a given @slot-type
1440 # @slot-type: type of the slot
1442 # @source: an integer containing the source event
1444 # @status: an integer containing the status code
1448 { 'struct': 'ACPIOSTInfo',
1449 'data' : { '*device': 'str',
1451 'slot-type': 'ACPISlotType',
1456 # @query-acpi-ospm-status:
1458 # Return a list of ACPIOSTInfo for devices that support status
1459 # reporting via ACPI _OST method.
1465 # -> { "execute": "query-acpi-ospm-status" }
1466 # <- { "return": [ { "device": "d1", "slot": "0", "slot-type": "DIMM", "source": 1, "status": 0},
1467 # { "slot": "1", "slot-type": "DIMM", "source": 0, "status": 0},
1468 # { "slot": "2", "slot-type": "DIMM", "source": 0, "status": 0},
1469 # { "slot": "3", "slot-type": "DIMM", "source": 0, "status": 0}
1473 { 'command': 'query-acpi-ospm-status', 'returns': ['ACPIOSTInfo'] }
1478 # Emitted when guest executes ACPI _OST method.
1480 # @info: OSPM Status Indication
1486 # <- { "event": "ACPI_DEVICE_OST",
1487 # "data": { "device": "d1", "slot": "0",
1488 # "slot-type": "DIMM", "source": 1, "status": 0 } }
1491 { 'event': 'ACPI_DEVICE_OST',
1492 'data': { 'info': 'ACPIOSTInfo' } }
1497 # Mode of the replay subsystem.
1499 # @none: normal execution mode. Replay or record are not enabled.
1501 # @record: record mode. All non-deterministic data is written into the
1504 # @play: replay mode. Non-deterministic data required for system execution
1505 # is read from the log.
1509 { 'enum': 'ReplayMode',
1510 'data': [ 'none', 'record', 'play' ] }
1513 # @xen-load-devices-state:
1515 # Load the state of all devices from file. The RAM and the block devices
1516 # of the VM are not loaded by this command.
1518 # @filename: the file to load the state of the devices from as binary
1519 # data. See xen-save-devices-state.txt for a description of the binary
1526 # -> { "execute": "xen-load-devices-state",
1527 # "arguments": { "filename": "/tmp/resume" } }
1528 # <- { "return": {} }
1531 { 'command': 'xen-load-devices-state', 'data': {'filename': 'str'} }
1538 # @guid: the globally unique identifier
1542 { 'struct': 'GuidInfo', 'data': {'guid': 'str'} }
1545 # @query-vm-generation-id:
1547 # Show Virtual Machine Generation ID
1551 { 'command': 'query-vm-generation-id', 'returns': 'GuidInfo' }