qapi: Reject multiple and empty feature descriptions
[qemu/kevin.git] / qapi / machine.json
blob93b46772869ef5568ceab2926f2f1dedf8a2b035
1 # -*- Mode: Python -*-
2 # vim: filetype=python
4 # This work is licensed under the terms of the GNU GPL, version 2 or later.
5 # See the COPYING file in the top-level directory.
7 ##
8 # = Machines
9 ##
11 { 'include': 'common.json' }
12 { 'include': 'machine-common.json' }
15 # @SysEmuTarget:
17 # The comprehensive enumeration of QEMU system emulation ("softmmu")
18 # targets.  Run "./configure --help" in the project root directory,
19 # and look for the \*-softmmu targets near the "--target-list" option.
20 # The individual target constants are not documented here, for the
21 # time being.
23 # @rx: since 5.0
25 # @avr: since 5.1
27 # Notes: The resulting QMP strings can be appended to the
28 #     "qemu-system-" prefix to produce the corresponding QEMU
29 #     executable name.  This is true even for "qemu-system-x86_64".
31 # Since: 3.0
33 { 'enum' : 'SysEmuTarget',
34   'data' : [ 'aarch64', 'alpha', 'arm', 'avr', 'cris', 'hppa', 'i386',
35              'loongarch64', 'm68k', 'microblaze', 'microblazeel', 'mips', 'mips64',
36              'mips64el', 'mipsel', 'nios2', 'or1k', 'ppc',
37              'ppc64', 'riscv32', 'riscv64', 'rx', 's390x', 'sh4',
38              'sh4eb', 'sparc', 'sparc64', 'tricore',
39              'x86_64', 'xtensa', 'xtensaeb' ] }
42 # @CpuS390State:
44 # An enumeration of cpu states that can be assumed by a virtual S390
45 # CPU
47 # Since: 2.12
49 { 'enum': 'CpuS390State',
50   'prefix': 'S390_CPU_STATE',
51   'data': [ 'uninitialized', 'stopped', 'check-stop', 'operating', 'load' ] }
54 # @CpuInfoS390:
56 # Additional information about a virtual S390 CPU
58 # @cpu-state: the virtual CPU's state
60 # @dedicated: the virtual CPU's dedication (since 8.2)
62 # @entitlement: the virtual CPU's entitlement (since 8.2)
64 # Since: 2.12
66 { 'struct': 'CpuInfoS390',
67   'data': { 'cpu-state': 'CpuS390State',
68             '*dedicated': 'bool',
69             '*entitlement': 'CpuS390Entitlement' } }
72 # @CpuInfoFast:
74 # Information about a virtual CPU
76 # @cpu-index: index of the virtual CPU
78 # @qom-path: path to the CPU object in the QOM tree
80 # @thread-id: ID of the underlying host thread
82 # @props: properties associated with a virtual CPU, e.g. the socket id
84 # @target: the QEMU system emulation target, which determines which
85 #     additional fields will be listed (since 3.0)
87 # Since: 2.12
89 { 'union'         : 'CpuInfoFast',
90   'base'          : { 'cpu-index'    : 'int',
91                       'qom-path'     : 'str',
92                       'thread-id'    : 'int',
93                       '*props'       : 'CpuInstanceProperties',
94                       'target'       : 'SysEmuTarget' },
95   'discriminator' : 'target',
96   'data'          : { 's390x'        : 'CpuInfoS390' } }
99 # @query-cpus-fast:
101 # Returns information about all virtual CPUs.
103 # Returns: list of @CpuInfoFast
105 # Since: 2.12
107 # Example:
109 #     -> { "execute": "query-cpus-fast" }
110 #     <- { "return": [
111 #             {
112 #                 "thread-id": 25627,
113 #                 "props": {
114 #                     "core-id": 0,
115 #                     "thread-id": 0,
116 #                     "socket-id": 0
117 #                 },
118 #                 "qom-path": "/machine/unattached/device[0]",
119 #                 "target":"x86_64",
120 #                 "cpu-index": 0
121 #             },
122 #             {
123 #                 "thread-id": 25628,
124 #                 "props": {
125 #                     "core-id": 0,
126 #                     "thread-id": 0,
127 #                     "socket-id": 1
128 #                 },
129 #                 "qom-path": "/machine/unattached/device[2]",
130 #                 "target":"x86_64",
131 #                 "cpu-index": 1
132 #             }
133 #         ]
134 #     }
136 { 'command': 'query-cpus-fast', 'returns': [ 'CpuInfoFast' ] }
139 # @MachineInfo:
141 # Information describing a machine.
143 # @name: the name of the machine
145 # @alias: an alias for the machine name
147 # @is-default: whether the machine is default
149 # @cpu-max: maximum number of CPUs supported by the machine type
150 #     (since 1.5)
152 # @hotpluggable-cpus: cpu hotplug via -device is supported (since 2.7)
154 # @numa-mem-supported: true if '-numa node,mem' option is supported by
155 #     the machine type and false otherwise (since 4.1)
157 # @deprecated: if true, the machine type is deprecated and may be
158 #     removed in future versions of QEMU according to the QEMU
159 #     deprecation policy (since 4.1)
161 # @default-cpu-type: default CPU model typename if none is requested
162 #     via the -cpu argument.  (since 4.2)
164 # @default-ram-id: the default ID of initial RAM memory backend (since
165 #     5.2)
167 # @acpi: machine type supports ACPI (since 8.0)
169 # Since: 1.2
171 { 'struct': 'MachineInfo',
172   'data': { 'name': 'str', '*alias': 'str',
173             '*is-default': 'bool', 'cpu-max': 'int',
174             'hotpluggable-cpus': 'bool',  'numa-mem-supported': 'bool',
175             'deprecated': 'bool', '*default-cpu-type': 'str',
176             '*default-ram-id': 'str', 'acpi': 'bool' } }
179 # @query-machines:
181 # Return a list of supported machines
183 # Returns: a list of MachineInfo
185 # Since: 1.2
187 { 'command': 'query-machines', 'returns': ['MachineInfo'] }
190 # @CurrentMachineParams:
192 # Information describing the running machine parameters.
194 # @wakeup-suspend-support: true if the machine supports wake up from
195 #     suspend
197 # Since: 4.0
199 { 'struct': 'CurrentMachineParams',
200   'data': { 'wakeup-suspend-support': 'bool'} }
203 # @query-current-machine:
205 # Return information on the current virtual machine.
207 # Returns: CurrentMachineParams
209 # Since: 4.0
211 { 'command': 'query-current-machine', 'returns': 'CurrentMachineParams' }
214 # @TargetInfo:
216 # Information describing the QEMU target.
218 # @arch: the target architecture
220 # Since: 1.2
222 { 'struct': 'TargetInfo',
223   'data': { 'arch': 'SysEmuTarget' } }
226 # @query-target:
228 # Return information about the target for this QEMU
230 # Returns: TargetInfo
232 # Since: 1.2
234 { 'command': 'query-target', 'returns': 'TargetInfo' }
237 # @UuidInfo:
239 # Guest UUID information (Universally Unique Identifier).
241 # @UUID: the UUID of the guest
243 # Since: 0.14
245 # Notes: If no UUID was specified for the guest, a null UUID is
246 #     returned.
248 { 'struct': 'UuidInfo', 'data': {'UUID': 'str'} }
251 # @query-uuid:
253 # Query the guest UUID information.
255 # Returns: The @UuidInfo for the guest
257 # Since: 0.14
259 # Example:
261 #     -> { "execute": "query-uuid" }
262 #     <- { "return": { "UUID": "550e8400-e29b-41d4-a716-446655440000" } }
264 { 'command': 'query-uuid', 'returns': 'UuidInfo', 'allow-preconfig': true }
267 # @GuidInfo:
269 # GUID information.
271 # @guid: the globally unique identifier
273 # Since: 2.9
275 { 'struct': 'GuidInfo', 'data': {'guid': 'str'} }
278 # @query-vm-generation-id:
280 # Show Virtual Machine Generation ID
282 # Since: 2.9
284 { 'command': 'query-vm-generation-id', 'returns': 'GuidInfo' }
287 # @system_reset:
289 # Performs a hard reset of a guest.
291 # Since: 0.14
293 # Example:
295 #     -> { "execute": "system_reset" }
296 #     <- { "return": {} }
298 { 'command': 'system_reset' }
301 # @system_powerdown:
303 # Requests that a guest perform a powerdown operation.
305 # Since: 0.14
307 # Notes: A guest may or may not respond to this command.  This command
308 #     returning does not indicate that a guest has accepted the
309 #     request or that it has shut down.  Many guests will respond to
310 #     this command by prompting the user in some way.
312 # Example:
314 #     -> { "execute": "system_powerdown" }
315 #     <- { "return": {} }
317 { 'command': 'system_powerdown' }
320 # @system_wakeup:
322 # Wake up guest from suspend.  If the guest has wake-up from suspend
323 # support enabled (wakeup-suspend-support flag from
324 # query-current-machine), wake-up guest from suspend if the guest is
325 # in SUSPENDED state.  Return an error otherwise.
327 # Since: 1.1
329 # Returns: nothing.
331 # Note: prior to 4.0, this command does nothing in case the guest
332 #     isn't suspended.
334 # Example:
336 #     -> { "execute": "system_wakeup" }
337 #     <- { "return": {} }
339 { 'command': 'system_wakeup' }
342 # @LostTickPolicy:
344 # Policy for handling lost ticks in timer devices.  Ticks end up
345 # getting lost when, for example, the guest is paused.
347 # @discard: throw away the missed ticks and continue with future
348 #     injection normally.  The guest OS will see the timer jump ahead
349 #     by a potentially quite significant amount all at once, as if the
350 #     intervening chunk of time had simply not existed; needless to
351 #     say, such a sudden jump can easily confuse a guest OS which is
352 #     not specifically prepared to deal with it.  Assuming the guest
353 #     OS can deal correctly with the time jump, the time in the guest
354 #     and in the host should now match.
356 # @delay: continue to deliver ticks at the normal rate.  The guest OS
357 #     will not notice anything is amiss, as from its point of view
358 #     time will have continued to flow normally.  The time in the
359 #     guest should now be behind the time in the host by exactly the
360 #     amount of time during which ticks have been missed.
362 # @slew: deliver ticks at a higher rate to catch up with the missed
363 #     ticks.  The guest OS will not notice anything is amiss, as from
364 #     its point of view time will have continued to flow normally.
365 #     Once the timer has managed to catch up with all the missing
366 #     ticks, the time in the guest and in the host should match.
368 # Since: 2.0
370 { 'enum': 'LostTickPolicy',
371   'data': ['discard', 'delay', 'slew' ] }
374 # @inject-nmi:
376 # Injects a Non-Maskable Interrupt into the default CPU (x86/s390) or
377 # all CPUs (ppc64). The command fails when the guest doesn't support
378 # injecting.
380 # Returns: If successful, nothing
382 # Since: 0.14
384 # Note: prior to 2.1, this command was only supported for x86 and s390
385 #     VMs
387 # Example:
389 #     -> { "execute": "inject-nmi" }
390 #     <- { "return": {} }
392 { 'command': 'inject-nmi' }
395 # @KvmInfo:
397 # Information about support for KVM acceleration
399 # @enabled: true if KVM acceleration is active
401 # @present: true if KVM acceleration is built into this executable
403 # Since: 0.14
405 { 'struct': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} }
408 # @query-kvm:
410 # Returns information about KVM acceleration
412 # Returns: @KvmInfo
414 # Since: 0.14
416 # Example:
418 #     -> { "execute": "query-kvm" }
419 #     <- { "return": { "enabled": true, "present": true } }
421 { 'command': 'query-kvm', 'returns': 'KvmInfo' }
424 # @NumaOptionsType:
426 # @node: NUMA nodes configuration
428 # @dist: NUMA distance configuration (since 2.10)
430 # @cpu: property based CPU(s) to node mapping (Since: 2.10)
432 # @hmat-lb: memory latency and bandwidth information (Since: 5.0)
434 # @hmat-cache: memory side cache information (Since: 5.0)
436 # Since: 2.1
438 { 'enum': 'NumaOptionsType',
439   'data': [ 'node', 'dist', 'cpu', 'hmat-lb', 'hmat-cache' ] }
442 # @NumaOptions:
444 # A discriminated record of NUMA options.  (for OptsVisitor)
446 # @type: NUMA option type
448 # Since: 2.1
450 { 'union': 'NumaOptions',
451   'base': { 'type': 'NumaOptionsType' },
452   'discriminator': 'type',
453   'data': {
454     'node': 'NumaNodeOptions',
455     'dist': 'NumaDistOptions',
456     'cpu': 'NumaCpuOptions',
457     'hmat-lb': 'NumaHmatLBOptions',
458     'hmat-cache': 'NumaHmatCacheOptions' }}
461 # @NumaNodeOptions:
463 # Create a guest NUMA node.  (for OptsVisitor)
465 # @nodeid: NUMA node ID (increase by 1 from 0 if omitted)
467 # @cpus: VCPUs belonging to this node (assign VCPUS round-robin if
468 #     omitted)
470 # @mem: memory size of this node; mutually exclusive with @memdev.
471 #     Equally divide total memory among nodes if both @mem and @memdev
472 #     are omitted.
474 # @memdev: memory backend object.  If specified for one node, it must
475 #     be specified for all nodes.
477 # @initiator: defined in ACPI 6.3 Chapter 5.2.27.3 Table 5-145, points
478 #     to the nodeid which has the memory controller responsible for
479 #     this NUMA node.  This field provides additional information as
480 #     to the initiator node that is closest (as in directly attached)
481 #     to this node, and therefore has the best performance (since 5.0)
483 # Since: 2.1
485 { 'struct': 'NumaNodeOptions',
486   'data': {
487    '*nodeid': 'uint16',
488    '*cpus':   ['uint16'],
489    '*mem':    'size',
490    '*memdev': 'str',
491    '*initiator': 'uint16' }}
494 # @NumaDistOptions:
496 # Set the distance between 2 NUMA nodes.
498 # @src: source NUMA node.
500 # @dst: destination NUMA node.
502 # @val: NUMA distance from source node to destination node.  When a
503 #     node is unreachable from another node, set the distance between
504 #     them to 255.
506 # Since: 2.10
508 { 'struct': 'NumaDistOptions',
509   'data': {
510    'src': 'uint16',
511    'dst': 'uint16',
512    'val': 'uint8' }}
515 # @CXLFixedMemoryWindowOptions:
517 # Create a CXL Fixed Memory Window
519 # @size: Size of the Fixed Memory Window in bytes.  Must be a multiple
520 #     of 256MiB.
522 # @interleave-granularity: Number of contiguous bytes for which
523 #     accesses will go to a given interleave target.  Accepted values
524 #     [256, 512, 1k, 2k, 4k, 8k, 16k]
526 # @targets: Target root bridge IDs from -device ...,id=<ID> for each
527 #     root bridge.
529 # Since: 7.1
531 { 'struct': 'CXLFixedMemoryWindowOptions',
532   'data': {
533       'size': 'size',
534       '*interleave-granularity': 'size',
535       'targets': ['str'] }}
538 # @CXLFMWProperties:
540 # List of CXL Fixed Memory Windows.
542 # @cxl-fmw: List of CXLFixedMemoryWindowOptions
544 # Since: 7.1
546 { 'struct' : 'CXLFMWProperties',
547   'data': { 'cxl-fmw': ['CXLFixedMemoryWindowOptions'] }
551 # @X86CPURegister32:
553 # A X86 32-bit register
555 # Since: 1.5
557 { 'enum': 'X86CPURegister32',
558   'data': [ 'EAX', 'EBX', 'ECX', 'EDX', 'ESP', 'EBP', 'ESI', 'EDI' ] }
561 # @X86CPUFeatureWordInfo:
563 # Information about a X86 CPU feature word
565 # @cpuid-input-eax: Input EAX value for CPUID instruction for that
566 #     feature word
568 # @cpuid-input-ecx: Input ECX value for CPUID instruction for that
569 #     feature word
571 # @cpuid-register: Output register containing the feature bits
573 # @features: value of output register, containing the feature bits
575 # Since: 1.5
577 { 'struct': 'X86CPUFeatureWordInfo',
578   'data': { 'cpuid-input-eax': 'int',
579             '*cpuid-input-ecx': 'int',
580             'cpuid-register': 'X86CPURegister32',
581             'features': 'int' } }
584 # @DummyForceArrays:
586 # Not used by QMP; hack to let us use X86CPUFeatureWordInfoList
587 # internally
589 # Since: 2.5
591 { 'struct': 'DummyForceArrays',
592   'data': { 'unused': ['X86CPUFeatureWordInfo'] } }
595 # @NumaCpuOptions:
597 # Option "-numa cpu" overrides default cpu to node mapping.  It
598 # accepts the same set of cpu properties as returned by
599 # query-hotpluggable-cpus[].props, where node-id could be used to
600 # override default node mapping.
602 # Since: 2.10
604 { 'struct': 'NumaCpuOptions',
605    'base': 'CpuInstanceProperties',
606    'data' : {} }
609 # @HmatLBMemoryHierarchy:
611 # The memory hierarchy in the System Locality Latency and Bandwidth
612 # Information Structure of HMAT (Heterogeneous Memory Attribute Table)
614 # For more information about @HmatLBMemoryHierarchy, see chapter
615 # 5.2.27.4: Table 5-146: Field "Flags" of ACPI 6.3 spec.
617 # @memory: the structure represents the memory performance
619 # @first-level: first level of memory side cache
621 # @second-level: second level of memory side cache
623 # @third-level: third level of memory side cache
625 # Since: 5.0
627 { 'enum': 'HmatLBMemoryHierarchy',
628   'data': [ 'memory', 'first-level', 'second-level', 'third-level' ] }
631 # @HmatLBDataType:
633 # Data type in the System Locality Latency and Bandwidth Information
634 # Structure of HMAT (Heterogeneous Memory Attribute Table)
636 # For more information about @HmatLBDataType, see chapter 5.2.27.4:
637 # Table 5-146:  Field "Data Type" of ACPI 6.3 spec.
639 # @access-latency: access latency (nanoseconds)
641 # @read-latency: read latency (nanoseconds)
643 # @write-latency: write latency (nanoseconds)
645 # @access-bandwidth: access bandwidth (Bytes per second)
647 # @read-bandwidth: read bandwidth (Bytes per second)
649 # @write-bandwidth: write bandwidth (Bytes per second)
651 # Since: 5.0
653 { 'enum': 'HmatLBDataType',
654   'data': [ 'access-latency', 'read-latency', 'write-latency',
655             'access-bandwidth', 'read-bandwidth', 'write-bandwidth' ] }
658 # @NumaHmatLBOptions:
660 # Set the system locality latency and bandwidth information between
661 # Initiator and Target proximity Domains.
663 # For more information about @NumaHmatLBOptions, see chapter 5.2.27.4:
664 # Table 5-146 of ACPI 6.3 spec.
666 # @initiator: the Initiator Proximity Domain.
668 # @target: the Target Proximity Domain.
670 # @hierarchy: the Memory Hierarchy.  Indicates the performance of
671 #     memory or side cache.
673 # @data-type: presents the type of data, access/read/write latency or
674 #     hit latency.
676 # @latency: the value of latency from @initiator to @target proximity
677 #     domain, the latency unit is "ns(nanosecond)".
679 # @bandwidth: the value of bandwidth between @initiator and @target
680 #     proximity domain, the bandwidth unit is "Bytes per second".
682 # Since: 5.0
684 { 'struct': 'NumaHmatLBOptions',
685     'data': {
686     'initiator': 'uint16',
687     'target': 'uint16',
688     'hierarchy': 'HmatLBMemoryHierarchy',
689     'data-type': 'HmatLBDataType',
690     '*latency': 'uint64',
691     '*bandwidth': 'size' }}
694 # @HmatCacheAssociativity:
696 # Cache associativity in the Memory Side Cache Information Structure
697 # of HMAT
699 # For more information of @HmatCacheAssociativity, see chapter
700 # 5.2.27.5: Table 5-147 of ACPI 6.3 spec.
702 # @none: None (no memory side cache in this proximity domain, or cache
703 #     associativity unknown)
705 # @direct: Direct Mapped
707 # @complex: Complex Cache Indexing (implementation specific)
709 # Since: 5.0
711 { 'enum': 'HmatCacheAssociativity',
712   'data': [ 'none', 'direct', 'complex' ] }
715 # @HmatCacheWritePolicy:
717 # Cache write policy in the Memory Side Cache Information Structure of
718 # HMAT
720 # For more information of @HmatCacheWritePolicy, see chapter 5.2.27.5:
721 # Table 5-147: Field "Cache Attributes" of ACPI 6.3 spec.
723 # @none: None (no memory side cache in this proximity domain, or cache
724 #     write policy unknown)
726 # @write-back: Write Back (WB)
728 # @write-through: Write Through (WT)
730 # Since: 5.0
732 { 'enum': 'HmatCacheWritePolicy',
733   'data': [ 'none', 'write-back', 'write-through' ] }
736 # @NumaHmatCacheOptions:
738 # Set the memory side cache information for a given memory domain.
740 # For more information of @NumaHmatCacheOptions, see chapter 5.2.27.5:
741 # Table 5-147: Field "Cache Attributes" of ACPI 6.3 spec.
743 # @node-id: the memory proximity domain to which the memory belongs.
745 # @size: the size of memory side cache in bytes.
747 # @level: the cache level described in this structure.
749 # @associativity: the cache associativity,
750 #     none/direct-mapped/complex(complex cache indexing).
752 # @policy: the write policy, none/write-back/write-through.
754 # @line: the cache Line size in bytes.
756 # Since: 5.0
758 { 'struct': 'NumaHmatCacheOptions',
759   'data': {
760    'node-id': 'uint32',
761    'size': 'size',
762    'level': 'uint8',
763    'associativity': 'HmatCacheAssociativity',
764    'policy': 'HmatCacheWritePolicy',
765    'line': 'uint16' }}
768 # @memsave:
770 # Save a portion of guest memory to a file.
772 # @val: the virtual address of the guest to start from
774 # @size: the size of memory region to save
776 # @filename: the file to save the memory to as binary data
778 # @cpu-index: the index of the virtual CPU to use for translating the
779 #     virtual address (defaults to CPU 0)
781 # Returns: Nothing on success
783 # Since: 0.14
785 # Notes: Errors were not reliably returned until 1.1
787 # Example:
789 #     -> { "execute": "memsave",
790 #          "arguments": { "val": 10,
791 #                         "size": 100,
792 #                         "filename": "/tmp/virtual-mem-dump" } }
793 #     <- { "return": {} }
795 { 'command': 'memsave',
796   'data': {'val': 'int', 'size': 'int', 'filename': 'str', '*cpu-index': 'int'} }
799 # @pmemsave:
801 # Save a portion of guest physical memory to a file.
803 # @val: the physical address of the guest to start from
805 # @size: the size of memory region to save
807 # @filename: the file to save the memory to as binary data
809 # Returns: Nothing on success
811 # Since: 0.14
813 # Notes: Errors were not reliably returned until 1.1
815 # Example:
817 #     -> { "execute": "pmemsave",
818 #          "arguments": { "val": 10,
819 #                         "size": 100,
820 #                         "filename": "/tmp/physical-mem-dump" } }
821 #     <- { "return": {} }
823 { 'command': 'pmemsave',
824   'data': {'val': 'int', 'size': 'int', 'filename': 'str'} }
827 # @Memdev:
829 # Information about memory backend
831 # @id: backend's ID if backend has 'id' property (since 2.9)
833 # @size: memory backend size
835 # @merge: whether memory merge support is enabled
837 # @dump: whether memory backend's memory is included in a core dump
839 # @prealloc: whether memory was preallocated
841 # @share: whether memory is private to QEMU or shared (since 6.1)
843 # @reserve: whether swap space (or huge pages) was reserved if
844 #     applicable.  This corresponds to the user configuration and not
845 #     the actual behavior implemented in the OS to perform the
846 #     reservation.  For example, Linux will never reserve swap space
847 #     for shared file mappings.  (since 6.1)
849 # @host-nodes: host nodes for its memory policy
851 # @policy: memory policy of memory backend
853 # Since: 2.1
855 { 'struct': 'Memdev',
856   'data': {
857     '*id':        'str',
858     'size':       'size',
859     'merge':      'bool',
860     'dump':       'bool',
861     'prealloc':   'bool',
862     'share':      'bool',
863     '*reserve':    'bool',
864     'host-nodes': ['uint16'],
865     'policy':     'HostMemPolicy' }}
868 # @query-memdev:
870 # Returns information for all memory backends.
872 # Returns: a list of @Memdev.
874 # Since: 2.1
876 # Example:
878 #     -> { "execute": "query-memdev" }
879 #     <- { "return": [
880 #            {
881 #              "id": "mem1",
882 #              "size": 536870912,
883 #              "merge": false,
884 #              "dump": true,
885 #              "prealloc": false,
886 #              "share": false,
887 #              "host-nodes": [0, 1],
888 #              "policy": "bind"
889 #            },
890 #            {
891 #              "size": 536870912,
892 #              "merge": false,
893 #              "dump": true,
894 #              "prealloc": true,
895 #              "share": false,
896 #              "host-nodes": [2, 3],
897 #              "policy": "preferred"
898 #            }
899 #          ]
900 #        }
902 { 'command': 'query-memdev', 'returns': ['Memdev'], 'allow-preconfig': true }
905 # @CpuInstanceProperties:
907 # List of properties to be used for hotplugging a CPU instance, it
908 # should be passed by management with device_add command when a CPU is
909 # being hotplugged.
911 # Which members are optional and which mandatory depends on the
912 # architecture and board.
914 # For s390x see :ref:`cpu-topology-s390x`.
916 # The ids other than the node-id specify the position of the CPU
917 # within the CPU topology (as defined by the machine property "smp",
918 # thus see also type @SMPConfiguration)
920 # @node-id: NUMA node ID the CPU belongs to
922 # @drawer-id: drawer number within CPU topology the CPU belongs to
923 #     (since 8.2)
925 # @book-id: book number within parent container the CPU belongs to
926 #     (since 8.2)
928 # @socket-id: socket number within parent container the CPU belongs to
930 # @die-id: die number within the parent container the CPU belongs to
931 #    (since 4.1)
933 # @cluster-id: cluster number within the parent container the CPU
934 #     belongs to (since 7.1)
936 # @core-id: core number within the parent container the CPU
937 #     belongs to
939 # @thread-id: thread number within the core the CPU  belongs to
941 # Note: management should be prepared to pass through additional
942 #     properties with device_add.
944 # Since: 2.7
946 { 'struct': 'CpuInstanceProperties',
947   # Keep these in sync with the properties device_add accepts
948   'data': { '*node-id': 'int',
949             '*drawer-id': 'int',
950             '*book-id': 'int',
951             '*socket-id': 'int',
952             '*die-id': 'int',
953             '*cluster-id': 'int',
954             '*core-id': 'int',
955             '*thread-id': 'int'
956   }
960 # @HotpluggableCPU:
962 # @type: CPU object type for usage with device_add command
964 # @props: list of properties to be used for hotplugging CPU
966 # @vcpus-count: number of logical VCPU threads @HotpluggableCPU
967 #     provides
969 # @qom-path: link to existing CPU object if CPU is present or omitted
970 #     if CPU is not present.
972 # Since: 2.7
974 { 'struct': 'HotpluggableCPU',
975   'data': { 'type': 'str',
976             'vcpus-count': 'int',
977             'props': 'CpuInstanceProperties',
978             '*qom-path': 'str'
979           }
983 # @query-hotpluggable-cpus:
985 # TODO: Better documentation; currently there is none.
987 # Returns: a list of HotpluggableCPU objects.
989 # Since: 2.7
991 # Examples:
993 #     For pseries machine type started with -smp 2,cores=2,maxcpus=4 -cpu
994 #     POWER8:
996 #     -> { "execute": "query-hotpluggable-cpus" }
997 #     <- {"return": [
998 #          { "props": { "core-id": 8 }, "type": "POWER8-spapr-cpu-core",
999 #            "vcpus-count": 1 },
1000 #          { "props": { "core-id": 0 }, "type": "POWER8-spapr-cpu-core",
1001 #            "vcpus-count": 1, "qom-path": "/machine/unattached/device[0]"}
1002 #        ]}'
1004 #     For pc machine type started with -smp 1,maxcpus=2:
1006 #     -> { "execute": "query-hotpluggable-cpus" }
1007 #     <- {"return": [
1008 #          {
1009 #             "type": "qemu64-x86_64-cpu", "vcpus-count": 1,
1010 #             "props": {"core-id": 0, "socket-id": 1, "thread-id": 0}
1011 #          },
1012 #          {
1013 #             "qom-path": "/machine/unattached/device[0]",
1014 #             "type": "qemu64-x86_64-cpu", "vcpus-count": 1,
1015 #             "props": {"core-id": 0, "socket-id": 0, "thread-id": 0}
1016 #          }
1017 #        ]}
1019 #     For s390x-virtio-ccw machine type started with -smp 1,maxcpus=2 -cpu
1020 #     qemu (Since: 2.11):
1022 #     -> { "execute": "query-hotpluggable-cpus" }
1023 #     <- {"return": [
1024 #          {
1025 #             "type": "qemu-s390x-cpu", "vcpus-count": 1,
1026 #             "props": { "core-id": 1 }
1027 #          },
1028 #          {
1029 #             "qom-path": "/machine/unattached/device[0]",
1030 #             "type": "qemu-s390x-cpu", "vcpus-count": 1,
1031 #             "props": { "core-id": 0 }
1032 #          }
1033 #        ]}
1035 { 'command': 'query-hotpluggable-cpus', 'returns': ['HotpluggableCPU'],
1036              'allow-preconfig': true }
1039 # @set-numa-node:
1041 # Runtime equivalent of '-numa' CLI option, available at preconfigure
1042 # stage to configure numa mapping before initializing machine.
1044 # Since: 3.0
1046 { 'command': 'set-numa-node', 'boxed': true,
1047   'data': 'NumaOptions',
1048   'allow-preconfig': true
1052 # @balloon:
1054 # Request the balloon driver to change its balloon size.
1056 # @value: the target logical size of the VM in bytes.  We can deduce
1057 #     the size of the balloon using this formula:
1059 #        logical_vm_size = vm_ram_size - balloon_size
1061 #     From it we have: balloon_size = vm_ram_size - @value
1063 # Returns:
1064 #     - Nothing on success
1065 #     - If the balloon driver is enabled but not functional because
1066 #       the KVM kernel module cannot support it, KVMMissingCap
1067 #     - If no balloon device is present, DeviceNotActive
1069 # Notes: This command just issues a request to the guest.  When it
1070 #     returns, the balloon size may not have changed.  A guest can
1071 #     change the balloon size independent of this command.
1073 # Since: 0.14
1075 # Example:
1077 #     -> { "execute": "balloon", "arguments": { "value": 536870912 } }
1078 #     <- { "return": {} }
1080 #     With a 2.5GiB guest this command inflated the ballon to 3GiB.
1082 { 'command': 'balloon', 'data': {'value': 'int'} }
1085 # @BalloonInfo:
1087 # Information about the guest balloon device.
1089 # @actual: the logical size of the VM in bytes Formula used:
1090 #     logical_vm_size = vm_ram_size - balloon_size
1092 # Since: 0.14
1094 { 'struct': 'BalloonInfo', 'data': {'actual': 'int' } }
1097 # @query-balloon:
1099 # Return information about the balloon device.
1101 # Returns:
1102 #     - @BalloonInfo on success
1103 #     - If the balloon driver is enabled but not functional because
1104 #       the KVM kernel module cannot support it, KVMMissingCap
1105 #     - If no balloon device is present, DeviceNotActive
1107 # Since: 0.14
1109 # Example:
1111 #     -> { "execute": "query-balloon" }
1112 #     <- { "return": {
1113 #              "actual": 1073741824
1114 #           }
1115 #        }
1117 { 'command': 'query-balloon', 'returns': 'BalloonInfo' }
1120 # @BALLOON_CHANGE:
1122 # Emitted when the guest changes the actual BALLOON level.  This value
1123 # is equivalent to the @actual field return by the 'query-balloon'
1124 # command
1126 # @actual: the logical size of the VM in bytes Formula used:
1127 #     logical_vm_size = vm_ram_size - balloon_size
1129 # Note: this event is rate-limited.
1131 # Since: 1.2
1133 # Example:
1135 #     <- { "event": "BALLOON_CHANGE",
1136 #          "data": { "actual": 944766976 },
1137 #          "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
1139 { 'event': 'BALLOON_CHANGE',
1140   'data': { 'actual': 'int' } }
1143 # @HvBalloonInfo:
1145 # hv-balloon guest-provided memory status information.
1147 # @committed: the amount of memory in use inside the guest plus the
1148 #     amount of the memory unusable inside the guest (ballooned out,
1149 #     offline, etc.)
1151 # @available: the amount of the memory inside the guest available for
1152 #     new allocations ("free")
1154 # Since: 8.2
1156 { 'struct': 'HvBalloonInfo',
1157   'data': { 'committed': 'size', 'available': 'size' } }
1160 # @query-hv-balloon-status-report:
1162 # Returns the hv-balloon driver data contained in the last received "STATUS"
1163 # message from the guest.
1165 # Returns:
1166 #     - @HvBalloonInfo on success
1167 #     - If no hv-balloon device is present, guest memory status
1168 #       reporting is not enabled or no guest memory status report
1169 #       received yet, GenericError
1171 # Since: 8.2
1173 # Example:
1175 #     -> { "execute": "query-hv-balloon-status-report" }
1176 #     <- { "return": {
1177 #              "committed": 816640000,
1178 #              "available": 3333054464
1179 #           }
1180 #        }
1182 { 'command': 'query-hv-balloon-status-report', 'returns': 'HvBalloonInfo' }
1185 # @HV_BALLOON_STATUS_REPORT:
1187 # Emitted when the hv-balloon driver receives a "STATUS" message from
1188 # the guest.
1190 # Note: this event is rate-limited.
1192 # Since: 8.2
1194 # Example:
1196 #     <- { "event": "HV_BALLOON_STATUS_REPORT",
1197 #          "data": { "committed": 816640000, "available": 3333054464 },
1198 #          "timestamp": { "seconds": 1600295492, "microseconds": 661044 } }
1201 { 'event': 'HV_BALLOON_STATUS_REPORT',
1202   'data': 'HvBalloonInfo' }
1205 # @MemoryInfo:
1207 # Actual memory information in bytes.
1209 # @base-memory: size of "base" memory specified with command line
1210 #     option -m.
1212 # @plugged-memory: size of memory that can be hot-unplugged.  This
1213 #     field is omitted if target doesn't support memory hotplug (i.e.
1214 #     CONFIG_MEM_DEVICE not defined at build time).
1216 # Since: 2.11
1218 { 'struct': 'MemoryInfo',
1219   'data'  : { 'base-memory': 'size', '*plugged-memory': 'size' } }
1222 # @query-memory-size-summary:
1224 # Return the amount of initially allocated and present hotpluggable
1225 # (if enabled) memory in bytes.
1227 # Example:
1229 #     -> { "execute": "query-memory-size-summary" }
1230 #     <- { "return": { "base-memory": 4294967296, "plugged-memory": 0 } }
1232 # Since: 2.11
1234 { 'command': 'query-memory-size-summary', 'returns': 'MemoryInfo' }
1237 # @PCDIMMDeviceInfo:
1239 # PCDIMMDevice state information
1241 # @id: device's ID
1243 # @addr: physical address, where device is mapped
1245 # @size: size of memory that the device provides
1247 # @slot: slot number at which device is plugged in
1249 # @node: NUMA node number where device is plugged in
1251 # @memdev: memory backend linked with device
1253 # @hotplugged: true if device was hotplugged
1255 # @hotpluggable: true if device if could be added/removed while
1256 #     machine is running
1258 # Since: 2.1
1260 { 'struct': 'PCDIMMDeviceInfo',
1261   'data': { '*id': 'str',
1262             'addr': 'int',
1263             'size': 'int',
1264             'slot': 'int',
1265             'node': 'int',
1266             'memdev': 'str',
1267             'hotplugged': 'bool',
1268             'hotpluggable': 'bool'
1269           }
1273 # @VirtioPMEMDeviceInfo:
1275 # VirtioPMEM state information
1277 # @id: device's ID
1279 # @memaddr: physical address in memory, where device is mapped
1281 # @size: size of memory that the device provides
1283 # @memdev: memory backend linked with device
1285 # Since: 4.1
1287 { 'struct': 'VirtioPMEMDeviceInfo',
1288   'data': { '*id': 'str',
1289             'memaddr': 'size',
1290             'size': 'size',
1291             'memdev': 'str'
1292           }
1296 # @VirtioMEMDeviceInfo:
1298 # VirtioMEMDevice state information
1300 # @id: device's ID
1302 # @memaddr: physical address in memory, where device is mapped
1304 # @requested-size: the user requested size of the device
1306 # @size: the (current) size of memory that the device provides
1308 # @max-size: the maximum size of memory that the device can provide
1310 # @block-size: the block size of memory that the device provides
1312 # @node: NUMA node number where device is assigned to
1314 # @memdev: memory backend linked with the region
1316 # Since: 5.1
1318 { 'struct': 'VirtioMEMDeviceInfo',
1319   'data': { '*id': 'str',
1320             'memaddr': 'size',
1321             'requested-size': 'size',
1322             'size': 'size',
1323             'max-size': 'size',
1324             'block-size': 'size',
1325             'node': 'int',
1326             'memdev': 'str'
1327           }
1331 # @SgxEPCDeviceInfo:
1333 # Sgx EPC state information
1335 # @id: device's ID
1337 # @memaddr: physical address in memory, where device is mapped
1339 # @size: size of memory that the device provides
1341 # @memdev: memory backend linked with device
1343 # @node: the numa node (Since: 7.0)
1345 # Since: 6.2
1347 { 'struct': 'SgxEPCDeviceInfo',
1348   'data': { '*id': 'str',
1349             'memaddr': 'size',
1350             'size': 'size',
1351             'node': 'int',
1352             'memdev': 'str'
1353           }
1357 # @HvBalloonDeviceInfo:
1359 # hv-balloon provided memory state information
1361 # @id: device's ID
1363 # @memaddr: physical address in memory, where device is mapped
1365 # @max-size: the maximum size of memory that the device can provide
1367 # @memdev: memory backend linked with device
1369 # Since: 8.2
1371 { 'struct': 'HvBalloonDeviceInfo',
1372   'data': { '*id': 'str',
1373             '*memaddr': 'size',
1374             'max-size': 'size',
1375             '*memdev': 'str'
1376           }
1380 # @MemoryDeviceInfoKind:
1382 # @nvdimm: since 2.12
1384 # @virtio-pmem: since 4.1
1386 # @virtio-mem: since 5.1
1388 # @sgx-epc: since 6.2.
1390 # @hv-balloon: since 8.2.
1392 # Since: 2.1
1394 { 'enum': 'MemoryDeviceInfoKind',
1395   'data': [ 'dimm', 'nvdimm', 'virtio-pmem', 'virtio-mem', 'sgx-epc',
1396             'hv-balloon' ] }
1399 # @PCDIMMDeviceInfoWrapper:
1401 # @data: PCDIMMDevice state information
1403 # Since: 2.1
1405 { 'struct': 'PCDIMMDeviceInfoWrapper',
1406   'data': { 'data': 'PCDIMMDeviceInfo' } }
1409 # @VirtioPMEMDeviceInfoWrapper:
1411 # @data: VirtioPMEM state information
1413 # Since: 2.1
1415 { 'struct': 'VirtioPMEMDeviceInfoWrapper',
1416   'data': { 'data': 'VirtioPMEMDeviceInfo' } }
1419 # @VirtioMEMDeviceInfoWrapper:
1421 # @data: VirtioMEMDevice state information
1423 # Since: 2.1
1425 { 'struct': 'VirtioMEMDeviceInfoWrapper',
1426   'data': { 'data': 'VirtioMEMDeviceInfo' } }
1429 # @SgxEPCDeviceInfoWrapper:
1431 # @data: Sgx EPC state information
1433 # Since: 6.2
1435 { 'struct': 'SgxEPCDeviceInfoWrapper',
1436   'data': { 'data': 'SgxEPCDeviceInfo' } }
1439 # @HvBalloonDeviceInfoWrapper:
1441 # @data: hv-balloon provided memory state information
1443 # Since: 8.2
1445 { 'struct': 'HvBalloonDeviceInfoWrapper',
1446   'data': { 'data': 'HvBalloonDeviceInfo' } }
1449 # @MemoryDeviceInfo:
1451 # Union containing information about a memory device
1453 # @type: memory device type
1455 # Since: 2.1
1457 { 'union': 'MemoryDeviceInfo',
1458   'base': { 'type': 'MemoryDeviceInfoKind' },
1459   'discriminator': 'type',
1460   'data': { 'dimm': 'PCDIMMDeviceInfoWrapper',
1461             'nvdimm': 'PCDIMMDeviceInfoWrapper',
1462             'virtio-pmem': 'VirtioPMEMDeviceInfoWrapper',
1463             'virtio-mem': 'VirtioMEMDeviceInfoWrapper',
1464             'sgx-epc': 'SgxEPCDeviceInfoWrapper',
1465             'hv-balloon': 'HvBalloonDeviceInfoWrapper'
1466           }
1470 # @SgxEPC:
1472 # Sgx EPC cmdline information
1474 # @memdev: memory backend linked with device
1476 # @node: the numa node (Since: 7.0)
1478 # Since: 6.2
1480 { 'struct': 'SgxEPC',
1481   'data': { 'memdev': 'str',
1482             'node': 'int'
1483           }
1487 # @SgxEPCProperties:
1489 # SGX properties of machine types.
1491 # @sgx-epc: list of ids of memory-backend-epc objects.
1493 # Since: 6.2
1495 { 'struct': 'SgxEPCProperties',
1496   'data': { 'sgx-epc': ['SgxEPC'] }
1500 # @query-memory-devices:
1502 # Lists available memory devices and their state
1504 # Since: 2.1
1506 # Example:
1508 #     -> { "execute": "query-memory-devices" }
1509 #     <- { "return": [ { "data":
1510 #                           { "addr": 5368709120,
1511 #                             "hotpluggable": true,
1512 #                             "hotplugged": true,
1513 #                             "id": "d1",
1514 #                             "memdev": "/objects/memX",
1515 #                             "node": 0,
1516 #                             "size": 1073741824,
1517 #                             "slot": 0},
1518 #                        "type": "dimm"
1519 #                      } ] }
1521 { 'command': 'query-memory-devices', 'returns': ['MemoryDeviceInfo'] }
1524 # @MEMORY_DEVICE_SIZE_CHANGE:
1526 # Emitted when the size of a memory device changes.  Only emitted for
1527 # memory devices that can actually change the size (e.g., virtio-mem
1528 # due to guest action).
1530 # @id: device's ID
1532 # @size: the new size of memory that the device provides
1534 # @qom-path: path to the device object in the QOM tree (since 6.2)
1536 # Note: this event is rate-limited.
1538 # Since: 5.1
1540 # Example:
1542 #     <- { "event": "MEMORY_DEVICE_SIZE_CHANGE",
1543 #          "data": { "id": "vm0", "size": 1073741824,
1544 #                    "qom-path": "/machine/unattached/device[2]" },
1545 #          "timestamp": { "seconds": 1588168529, "microseconds": 201316 } }
1547 { 'event': 'MEMORY_DEVICE_SIZE_CHANGE',
1548   'data': { '*id': 'str', 'size': 'size', 'qom-path' : 'str'} }
1551 # @MEM_UNPLUG_ERROR:
1553 # Emitted when memory hot unplug error occurs.
1555 # @device: device name
1557 # @msg: Informative message
1559 # Features:
1561 # @deprecated: This event is deprecated.  Use
1562 #     @DEVICE_UNPLUG_GUEST_ERROR instead.
1564 # Since: 2.4
1566 # Example:
1568 #     <- { "event": "MEM_UNPLUG_ERROR",
1569 #          "data": { "device": "dimm1",
1570 #                    "msg": "acpi: device unplug for unsupported device"
1571 #          },
1572 #          "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
1574 { 'event': 'MEM_UNPLUG_ERROR',
1575   'data': { 'device': 'str', 'msg': 'str' },
1576   'features': ['deprecated'] }
1579 # @BootConfiguration:
1581 # Schema for virtual machine boot configuration.
1583 # @order: Boot order (a=floppy, c=hard disk, d=CD-ROM, n=network)
1585 # @once: Boot order to apply on first boot
1587 # @menu: Whether to show a boot menu
1589 # @splash: The name of the file to be passed to the firmware as logo
1590 #     picture, if @menu is true.
1592 # @splash-time: How long to show the logo picture, in milliseconds
1594 # @reboot-timeout: Timeout before guest reboots after boot fails
1596 # @strict: Whether to attempt booting from devices not included in the
1597 #     boot order
1599 # Since: 7.1
1601 { 'struct': 'BootConfiguration', 'data': {
1602      '*order': 'str',
1603      '*once': 'str',
1604      '*menu': 'bool',
1605      '*splash': 'str',
1606      '*splash-time': 'int',
1607      '*reboot-timeout': 'int',
1608      '*strict': 'bool' } }
1611 # @SMPConfiguration:
1613 # Schema for CPU topology configuration.  A missing value lets QEMU
1614 # figure out a suitable value based on the ones that are provided.
1616 # The members other than @cpus and @maxcpus define a topology of
1617 # containers.
1619 # The ordering from highest/coarsest to lowest/finest is:
1620 # @drawers, @books, @sockets, @dies, @clusters, @cores, @threads.
1622 # Different architectures support different subsets of topology
1623 # containers.
1625 # For example, s390x does not have clusters and dies, and the socket
1626 # is the parent container of cores.
1628 # @cpus: number of virtual CPUs in the virtual machine
1630 # @maxcpus: maximum number of hotpluggable virtual CPUs in the virtual
1631 #     machine
1633 # @drawers: number of drawers in the CPU topology (since 8.2)
1635 # @books: number of books in the CPU topology (since 8.2)
1637 # @sockets: number of sockets per parent container
1639 # @dies: number of dies per parent container
1641 # @clusters: number of clusters per parent container (since 7.0)
1643 # @cores: number of cores per parent container
1645 # @threads: number of threads per core
1647 # Since: 6.1
1649 { 'struct': 'SMPConfiguration', 'data': {
1650      '*cpus': 'int',
1651      '*drawers': 'int',
1652      '*books': 'int',
1653      '*sockets': 'int',
1654      '*dies': 'int',
1655      '*clusters': 'int',
1656      '*cores': 'int',
1657      '*threads': 'int',
1658      '*maxcpus': 'int' } }
1661 # @x-query-irq:
1663 # Query interrupt statistics
1665 # Features:
1667 # @unstable: This command is meant for debugging.
1669 # Returns: interrupt statistics
1671 # Since: 6.2
1673 { 'command': 'x-query-irq',
1674   'returns': 'HumanReadableText',
1675   'features': [ 'unstable' ] }
1678 # @x-query-jit:
1680 # Query TCG compiler statistics
1682 # Features:
1684 # @unstable: This command is meant for debugging.
1686 # Returns: TCG compiler statistics
1688 # Since: 6.2
1690 { 'command': 'x-query-jit',
1691   'returns': 'HumanReadableText',
1692   'if': 'CONFIG_TCG',
1693   'features': [ 'unstable' ] }
1696 # @x-query-numa:
1698 # Query NUMA topology information
1700 # Features:
1702 # @unstable: This command is meant for debugging.
1704 # Returns: topology information
1706 # Since: 6.2
1708 { 'command': 'x-query-numa',
1709   'returns': 'HumanReadableText',
1710   'features': [ 'unstable' ] }
1713 # @x-query-opcount:
1715 # Query TCG opcode counters
1717 # Features:
1719 # @unstable: This command is meant for debugging.
1721 # Returns: TCG opcode counters
1723 # Since: 6.2
1725 { 'command': 'x-query-opcount',
1726   'returns': 'HumanReadableText',
1727   'if': 'CONFIG_TCG',
1728   'features': [ 'unstable' ] }
1731 # @x-query-ramblock:
1733 # Query system ramblock information
1735 # Features:
1737 # @unstable: This command is meant for debugging.
1739 # Returns: system ramblock information
1741 # Since: 6.2
1743 { 'command': 'x-query-ramblock',
1744   'returns': 'HumanReadableText',
1745   'features': [ 'unstable' ] }
1748 # @x-query-rdma:
1750 # Query RDMA state
1752 # Features:
1754 # @unstable: This command is meant for debugging.
1756 # Returns: RDMA state
1758 # Since: 6.2
1760 { 'command': 'x-query-rdma',
1761   'returns': 'HumanReadableText',
1762   'features': [ 'unstable' ] }
1765 # @x-query-roms:
1767 # Query information on the registered ROMS
1769 # Features:
1771 # @unstable: This command is meant for debugging.
1773 # Returns: registered ROMs
1775 # Since: 6.2
1777 { 'command': 'x-query-roms',
1778   'returns': 'HumanReadableText',
1779   'features': [ 'unstable' ] }
1782 # @x-query-usb:
1784 # Query information on the USB devices
1786 # Features:
1788 # @unstable: This command is meant for debugging.
1790 # Returns: USB device information
1792 # Since: 6.2
1794 { 'command': 'x-query-usb',
1795   'returns': 'HumanReadableText',
1796   'features': [ 'unstable' ] }
1799 # @SmbiosEntryPointType:
1801 # @32: SMBIOS version 2.1 (32-bit) Entry Point
1803 # @64: SMBIOS version 3.0 (64-bit) Entry Point
1805 # Since: 7.0
1807 { 'enum': 'SmbiosEntryPointType',
1808   'data': [ '32', '64' ] }
1811 # @MemorySizeConfiguration:
1813 # Schema for memory size configuration.
1815 # @size: memory size in bytes
1817 # @max-size: maximum hotpluggable memory size in bytes
1819 # @slots: number of available memory slots for hotplug
1821 # Since: 7.1
1823 { 'struct': 'MemorySizeConfiguration', 'data': {
1824      '*size': 'size',
1825      '*max-size': 'size',
1826      '*slots': 'uint64' } }
1829 # @dumpdtb:
1831 # Save the FDT in dtb format.
1833 # @filename: name of the dtb file to be created
1835 # Since: 7.2
1837 # Example:
1839 #     -> { "execute": "dumpdtb" }
1840 #          "arguments": { "filename": "fdt.dtb" } }
1841 #     <- { "return": {} }
1843 { 'command': 'dumpdtb',
1844   'data': { 'filename': 'str' },
1845   'if': 'CONFIG_FDT' }