sm501: Drop unneded variable
[qemu/ar7.git] / qapi / machine.json
blobff7b5032e3aa66cca811905e6b14537035e3460a
1 # -*- Mode: Python -*-
3 # This work is licensed under the terms of the GNU GPL, version 2 or later.
4 # See the COPYING file in the top-level directory.
6 ##
7 # = Machines
8 ##
11 # @SysEmuTarget:
13 # The comprehensive enumeration of QEMU system emulation ("softmmu")
14 # targets. Run "./configure --help" in the project root directory, and
15 # look for the *-softmmu targets near the "--target-list" option. The
16 # individual target constants are not documented here, for the time
17 # being.
19 # @rx: since 5.0
21 # Notes: The resulting QMP strings can be appended to the "qemu-system-"
22 #        prefix to produce the corresponding QEMU executable name. This
23 #        is true even for "qemu-system-x86_64".
25 # Since: 3.0
27 { 'enum' : 'SysEmuTarget',
28   'data' : [ 'aarch64', 'alpha', 'arm', 'cris', 'hppa', 'i386', 'lm32',
29              'm68k', 'microblaze', 'microblazeel', 'mips', 'mips64',
30              'mips64el', 'mipsel', 'moxie', 'nios2', 'or1k', 'ppc',
31              'ppc64', 'riscv32', 'riscv64', 'rx', 's390x', 'sh4',
32              'sh4eb', 'sparc', 'sparc64', 'tricore', 'unicore32',
33              'x86_64', 'xtensa', 'xtensaeb' ] }
36 # @CpuInfoArch:
38 # An enumeration of cpu types that enable additional information during
39 # @query-cpus and @query-cpus-fast.
41 # @s390: since 2.12
43 # @riscv: since 2.12
45 # Since: 2.6
47 { 'enum': 'CpuInfoArch',
48   'data': ['x86', 'sparc', 'ppc', 'mips', 'tricore', 's390', 'riscv', 'other' ] }
51 # @CpuInfo:
53 # Information about a virtual CPU
55 # @CPU: the index of the virtual CPU
57 # @current: this only exists for backwards compatibility and should be ignored
59 # @halted: true if the virtual CPU is in the halt state.  Halt usually refers
60 #          to a processor specific low power mode.
62 # @qom_path: path to the CPU object in the QOM tree (since 2.4)
64 # @thread_id: ID of the underlying host thread
66 # @props: properties describing to which node/socket/core/thread
67 #         virtual CPU belongs to, provided if supported by board (since 2.10)
69 # @arch: architecture of the cpu, which determines which additional fields
70 #        will be listed (since 2.6)
72 # Since: 0.14.0
74 # Notes: @halted is a transient state that changes frequently.  By the time the
75 #        data is sent to the client, the guest may no longer be halted.
77 { 'union': 'CpuInfo',
78   'base': {'CPU': 'int', 'current': 'bool', 'halted': 'bool',
79            'qom_path': 'str', 'thread_id': 'int',
80            '*props': 'CpuInstanceProperties', 'arch': 'CpuInfoArch' },
81   'discriminator': 'arch',
82   'data': { 'x86': 'CpuInfoX86',
83             'sparc': 'CpuInfoSPARC',
84             'ppc': 'CpuInfoPPC',
85             'mips': 'CpuInfoMIPS',
86             'tricore': 'CpuInfoTricore',
87             's390': 'CpuInfoS390',
88             'riscv': 'CpuInfoRISCV' } }
91 # @CpuInfoX86:
93 # Additional information about a virtual i386 or x86_64 CPU
95 # @pc: the 64-bit instruction pointer
97 # Since: 2.6
99 { 'struct': 'CpuInfoX86', 'data': { 'pc': 'int' } }
102 # @CpuInfoSPARC:
104 # Additional information about a virtual SPARC CPU
106 # @pc: the PC component of the instruction pointer
108 # @npc: the NPC component of the instruction pointer
110 # Since: 2.6
112 { 'struct': 'CpuInfoSPARC', 'data': { 'pc': 'int', 'npc': 'int' } }
115 # @CpuInfoPPC:
117 # Additional information about a virtual PPC CPU
119 # @nip: the instruction pointer
121 # Since: 2.6
123 { 'struct': 'CpuInfoPPC', 'data': { 'nip': 'int' } }
126 # @CpuInfoMIPS:
128 # Additional information about a virtual MIPS CPU
130 # @PC: the instruction pointer
132 # Since: 2.6
134 { 'struct': 'CpuInfoMIPS', 'data': { 'PC': 'int' } }
137 # @CpuInfoTricore:
139 # Additional information about a virtual Tricore CPU
141 # @PC: the instruction pointer
143 # Since: 2.6
145 { 'struct': 'CpuInfoTricore', 'data': { 'PC': 'int' } }
148 # @CpuInfoRISCV:
150 # Additional information about a virtual RISCV CPU
152 # @pc: the instruction pointer
154 # Since 2.12
156 { 'struct': 'CpuInfoRISCV', 'data': { 'pc': 'int' } }
159 # @CpuS390State:
161 # An enumeration of cpu states that can be assumed by a virtual
162 # S390 CPU
164 # Since: 2.12
166 { 'enum': 'CpuS390State',
167   'prefix': 'S390_CPU_STATE',
168   'data': [ 'uninitialized', 'stopped', 'check-stop', 'operating', 'load' ] }
171 # @CpuInfoS390:
173 # Additional information about a virtual S390 CPU
175 # @cpu-state: the virtual CPU's state
177 # Since: 2.12
179 { 'struct': 'CpuInfoS390', 'data': { 'cpu-state': 'CpuS390State' } }
182 # @query-cpus:
184 # Returns a list of information about each virtual CPU.
186 # This command causes vCPU threads to exit to userspace, which causes
187 # a small interruption to guest CPU execution. This will have a negative
188 # impact on realtime guests and other latency sensitive guest workloads.
190 # Features:
191 # @deprecated: This command is deprecated, because it interferes with
192 #     the guest.  Use 'query-cpus-fast' instead to avoid the vCPU
193 #     interruption.
195 # Returns: a list of @CpuInfo for each virtual CPU
197 # Since: 0.14.0
199 # Example:
201 # -> { "execute": "query-cpus" }
202 # <- { "return": [
203 #          {
204 #             "CPU":0,
205 #             "current":true,
206 #             "halted":false,
207 #             "qom_path":"/machine/unattached/device[0]",
208 #             "arch":"x86",
209 #             "pc":3227107138,
210 #             "thread_id":3134
211 #          },
212 #          {
213 #             "CPU":1,
214 #             "current":false,
215 #             "halted":true,
216 #             "qom_path":"/machine/unattached/device[2]",
217 #             "arch":"x86",
218 #             "pc":7108165,
219 #             "thread_id":3135
220 #          }
221 #       ]
222 #    }
225 { 'command': 'query-cpus', 'returns': ['CpuInfo'],
226   'features': [ 'deprecated' ] }
229 # @CpuInfoFast:
231 # Information about a virtual CPU
233 # @cpu-index: index of the virtual CPU
235 # @qom-path: path to the CPU object in the QOM tree
237 # @thread-id: ID of the underlying host thread
239 # @props: properties describing to which node/socket/core/thread
240 #         virtual CPU belongs to, provided if supported by board
242 # @arch: base architecture of the cpu
244 # @target: the QEMU system emulation target, which determines which
245 #          additional fields will be listed (since 3.0)
247 # Features:
248 # @deprecated: Member @arch is deprecated.  Use @target instead.
250 # Since: 2.12
253 { 'union'         : 'CpuInfoFast',
254   'base'          : { 'cpu-index'    : 'int',
255                       'qom-path'     : 'str',
256                       'thread-id'    : 'int',
257                       '*props'       : 'CpuInstanceProperties',
258                       'arch'         : { 'type': 'CpuInfoArch',
259                                          'features': [ 'deprecated' ] },
260                       'target'       : 'SysEmuTarget' },
261   'discriminator' : 'target',
262   'data'          : { 's390x'        : 'CpuInfoS390' } }
265 # @query-cpus-fast:
267 # Returns information about all virtual CPUs. This command does not
268 # incur a performance penalty and should be used in production
269 # instead of query-cpus.
271 # Returns: list of @CpuInfoFast
273 # Since: 2.12
275 # Example:
277 # -> { "execute": "query-cpus-fast" }
278 # <- { "return": [
279 #         {
280 #             "thread-id": 25627,
281 #             "props": {
282 #                 "core-id": 0,
283 #                 "thread-id": 0,
284 #                 "socket-id": 0
285 #             },
286 #             "qom-path": "/machine/unattached/device[0]",
287 #             "arch":"x86",
288 #             "target":"x86_64",
289 #             "cpu-index": 0
290 #         },
291 #         {
292 #             "thread-id": 25628,
293 #             "props": {
294 #                 "core-id": 0,
295 #                 "thread-id": 0,
296 #                 "socket-id": 1
297 #             },
298 #             "qom-path": "/machine/unattached/device[2]",
299 #             "arch":"x86",
300 #             "target":"x86_64",
301 #             "cpu-index": 1
302 #         }
303 #     ]
304 # }
306 { 'command': 'query-cpus-fast', 'returns': [ 'CpuInfoFast' ] }
309 # @cpu-add:
311 # Adds CPU with specified ID.
313 # @id: ID of CPU to be created, valid values [0..max_cpus)
315 # Features:
316 # @deprecated: This command is deprecated.  Use `device_add` instead.
317 #     See the `query-hotpluggable-cpus` command for details.
319 # Returns: Nothing on success
321 # Since: 1.5
323 # Example:
325 # -> { "execute": "cpu-add", "arguments": { "id": 2 } }
326 # <- { "return": {} }
329 { 'command': 'cpu-add', 'data': {'id': 'int'},
330   'features': [ 'deprecated' ] }
333 # @MachineInfo:
335 # Information describing a machine.
337 # @name: the name of the machine
339 # @alias: an alias for the machine name
341 # @is-default: whether the machine is default
343 # @cpu-max: maximum number of CPUs supported by the machine type
344 #           (since 1.5.0)
346 # @hotpluggable-cpus: cpu hotplug via -device is supported (since 2.7.0)
348 # @numa-mem-supported: true if '-numa node,mem' option is supported by
349 #                      the machine type and false otherwise (since 4.1)
351 # @deprecated: if true, the machine type is deprecated and may be removed
352 #              in future versions of QEMU according to the QEMU deprecation
353 #              policy (since 4.1.0)
355 # @default-cpu-type: default CPU model typename if none is requested via
356 #                    the -cpu argument. (since 4.2)
358 # Since: 1.2.0
360 { 'struct': 'MachineInfo',
361   'data': { 'name': 'str', '*alias': 'str',
362             '*is-default': 'bool', 'cpu-max': 'int',
363             'hotpluggable-cpus': 'bool',  'numa-mem-supported': 'bool',
364             'deprecated': 'bool', '*default-cpu-type': 'str' } }
367 # @query-machines:
369 # Return a list of supported machines
371 # Returns: a list of MachineInfo
373 # Since: 1.2.0
375 { 'command': 'query-machines', 'returns': ['MachineInfo'] }
378 # @CurrentMachineParams:
380 # Information describing the running machine parameters.
382 # @wakeup-suspend-support: true if the machine supports wake up from
383 #                          suspend
385 # Since: 4.0
387 { 'struct': 'CurrentMachineParams',
388   'data': { 'wakeup-suspend-support': 'bool'} }
391 # @query-current-machine:
393 # Return information on the current virtual machine.
395 # Returns: CurrentMachineParams
397 # Since: 4.0
399 { 'command': 'query-current-machine', 'returns': 'CurrentMachineParams' }
402 # @TargetInfo:
404 # Information describing the QEMU target.
406 # @arch: the target architecture
408 # Since: 1.2.0
410 { 'struct': 'TargetInfo',
411   'data': { 'arch': 'SysEmuTarget' } }
414 # @query-target:
416 # Return information about the target for this QEMU
418 # Returns: TargetInfo
420 # Since: 1.2.0
422 { 'command': 'query-target', 'returns': 'TargetInfo' }
425 # @NumaOptionsType:
427 # @node: NUMA nodes configuration
429 # @dist: NUMA distance configuration (since 2.10)
431 # @cpu: property based CPU(s) to node mapping (Since: 2.10)
433 # @hmat-lb: memory latency and bandwidth information (Since: 5.0)
435 # @hmat-cache: memory side cache information (Since: 5.0)
437 # Since: 2.1
439 { 'enum': 'NumaOptionsType',
440   'data': [ 'node', 'dist', 'cpu', 'hmat-lb', 'hmat-cache' ] }
443 # @NumaOptions:
445 # A discriminated record of NUMA options. (for OptsVisitor)
447 # Since: 2.1
449 { 'union': 'NumaOptions',
450   'base': { 'type': 'NumaOptionsType' },
451   'discriminator': 'type',
452   'data': {
453     'node': 'NumaNodeOptions',
454     'dist': 'NumaDistOptions',
455     'cpu': 'NumaCpuOptions',
456     'hmat-lb': 'NumaHmatLBOptions',
457     'hmat-cache': 'NumaHmatCacheOptions' }}
460 # @NumaNodeOptions:
462 # Create a guest NUMA node. (for OptsVisitor)
464 # @nodeid: NUMA node ID (increase by 1 from 0 if omitted)
466 # @cpus: VCPUs belonging to this node (assign VCPUS round-robin
467 #         if omitted)
469 # @mem: memory size of this node; mutually exclusive with @memdev.
470 #       Equally divide total memory among nodes if both @mem and @memdev are
471 #       omitted.
473 # @memdev: memory backend object.  If specified for one node,
474 #          it must be specified for all nodes.
476 # @initiator: defined in ACPI 6.3 Chapter 5.2.27.3 Table 5-145,
477 #             points to the nodeid which has the memory controller
478 #             responsible for this NUMA node. This field provides
479 #             additional information as to the initiator node that
480 #             is closest (as in directly attached) to this node, and
481 #             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.
503 #       When a node is unreachable from another node, set the distance
504 #       between them to 255.
506 # Since: 2.10
508 { 'struct': 'NumaDistOptions',
509   'data': {
510    'src': 'uint16',
511    'dst': 'uint16',
512    'val': 'uint8' }}
515 # @X86CPURegister32:
517 # A X86 32-bit register
519 # Since: 1.5
521 { 'enum': 'X86CPURegister32',
522   'data': [ 'EAX', 'EBX', 'ECX', 'EDX', 'ESP', 'EBP', 'ESI', 'EDI' ] }
525 # @X86CPUFeatureWordInfo:
527 # Information about a X86 CPU feature word
529 # @cpuid-input-eax: Input EAX value for CPUID instruction for that feature word
531 # @cpuid-input-ecx: Input ECX value for CPUID instruction for that
532 #                   feature word
534 # @cpuid-register: Output register containing the feature bits
536 # @features: value of output register, containing the feature bits
538 # Since: 1.5
540 { 'struct': 'X86CPUFeatureWordInfo',
541   'data': { 'cpuid-input-eax': 'int',
542             '*cpuid-input-ecx': 'int',
543             'cpuid-register': 'X86CPURegister32',
544             'features': 'int' } }
547 # @DummyForceArrays:
549 # Not used by QMP; hack to let us use X86CPUFeatureWordInfoList internally
551 # Since: 2.5
553 { 'struct': 'DummyForceArrays',
554   'data': { 'unused': ['X86CPUFeatureWordInfo'] } }
557 # @NumaCpuOptions:
559 # Option "-numa cpu" overrides default cpu to node mapping.
560 # It accepts the same set of cpu properties as returned by
561 # query-hotpluggable-cpus[].props, where node-id could be used to
562 # override default node mapping.
564 # Since: 2.10
566 { 'struct': 'NumaCpuOptions',
567    'base': 'CpuInstanceProperties',
568    'data' : {} }
571 # @HmatLBMemoryHierarchy:
573 # The memory hierarchy in the System Locality Latency and Bandwidth
574 # Information Structure of HMAT (Heterogeneous Memory Attribute Table)
576 # For more information about @HmatLBMemoryHierarchy, see chapter
577 # 5.2.27.4: Table 5-146: Field "Flags" of ACPI 6.3 spec.
579 # @memory: the structure represents the memory performance
581 # @first-level: first level of memory side cache
583 # @second-level: second level of memory side cache
585 # @third-level: third level of memory side cache
587 # Since: 5.0
589 { 'enum': 'HmatLBMemoryHierarchy',
590   'data': [ 'memory', 'first-level', 'second-level', 'third-level' ] }
593 # @HmatLBDataType:
595 # Data type in the System Locality Latency and Bandwidth
596 # Information Structure of HMAT (Heterogeneous Memory Attribute Table)
598 # For more information about @HmatLBDataType, see chapter
599 # 5.2.27.4: Table 5-146:  Field "Data Type" of ACPI 6.3 spec.
601 # @access-latency: access latency (nanoseconds)
603 # @read-latency: read latency (nanoseconds)
605 # @write-latency: write latency (nanoseconds)
607 # @access-bandwidth: access bandwidth (Bytes per second)
609 # @read-bandwidth: read bandwidth (Bytes per second)
611 # @write-bandwidth: write bandwidth (Bytes per second)
613 # Since: 5.0
615 { 'enum': 'HmatLBDataType',
616   'data': [ 'access-latency', 'read-latency', 'write-latency',
617             'access-bandwidth', 'read-bandwidth', 'write-bandwidth' ] }
620 # @NumaHmatLBOptions:
622 # Set the system locality latency and bandwidth information
623 # between Initiator and Target proximity Domains.
625 # For more information about @NumaHmatLBOptions, see chapter
626 # 5.2.27.4: Table 5-146 of ACPI 6.3 spec.
628 # @initiator: the Initiator Proximity Domain.
630 # @target: the Target Proximity Domain.
632 # @hierarchy: the Memory Hierarchy. Indicates the performance
633 #             of memory or side cache.
635 # @data-type: presents the type of data, access/read/write
636 #             latency or hit latency.
638 # @latency: the value of latency from @initiator to @target
639 #           proximity domain, the latency unit is "ns(nanosecond)".
641 # @bandwidth: the value of bandwidth between @initiator and @target
642 #             proximity domain, the bandwidth unit is
643 #             "Bytes per second".
645 # Since: 5.0
647 { 'struct': 'NumaHmatLBOptions',
648     'data': {
649     'initiator': 'uint16',
650     'target': 'uint16',
651     'hierarchy': 'HmatLBMemoryHierarchy',
652     'data-type': 'HmatLBDataType',
653     '*latency': 'uint64',
654     '*bandwidth': 'size' }}
657 # @HmatCacheAssociativity:
659 # Cache associativity in the Memory Side Cache Information Structure
660 # of HMAT
662 # For more information of @HmatCacheAssociativity, see chapter
663 # 5.2.27.5: Table 5-147 of ACPI 6.3 spec.
665 # @none: None (no memory side cache in this proximity domain,
666 #              or cache associativity unknown)
668 # @direct: Direct Mapped
670 # @complex: Complex Cache Indexing (implementation specific)
672 # Since: 5.0
674 { 'enum': 'HmatCacheAssociativity',
675   'data': [ 'none', 'direct', 'complex' ] }
678 # @HmatCacheWritePolicy:
680 # Cache write policy in the Memory Side Cache Information Structure
681 # of HMAT
683 # For more information of @HmatCacheWritePolicy, see chapter
684 # 5.2.27.5: Table 5-147: Field "Cache Attributes" of ACPI 6.3 spec.
686 # @none: None (no memory side cache in this proximity domain,
687 #        or cache write policy unknown)
689 # @write-back: Write Back (WB)
691 # @write-through: Write Through (WT)
693 # Since: 5.0
695 { 'enum': 'HmatCacheWritePolicy',
696   'data': [ 'none', 'write-back', 'write-through' ] }
699 # @NumaHmatCacheOptions:
701 # Set the memory side cache information for a given memory domain.
703 # For more information of @NumaHmatCacheOptions, see chapter
704 # 5.2.27.5: Table 5-147: Field "Cache Attributes" of ACPI 6.3 spec.
706 # @node-id: the memory proximity domain to which the memory belongs.
708 # @size: the size of memory side cache in bytes.
710 # @level: the cache level described in this structure.
712 # @associativity: the cache associativity,
713 #                 none/direct-mapped/complex(complex cache indexing).
715 # @policy: the write policy, none/write-back/write-through.
717 # @line: the cache Line size in bytes.
719 # Since: 5.0
721 { 'struct': 'NumaHmatCacheOptions',
722   'data': {
723    'node-id': 'uint32',
724    'size': 'size',
725    'level': 'uint8',
726    'associativity': 'HmatCacheAssociativity',
727    'policy': 'HmatCacheWritePolicy',
728    'line': 'uint16' }}
731 # @HostMemPolicy:
733 # Host memory policy types
735 # @default: restore default policy, remove any nondefault policy
737 # @preferred: set the preferred host nodes for allocation
739 # @bind: a strict policy that restricts memory allocation to the
740 #        host nodes specified
742 # @interleave: memory allocations are interleaved across the set
743 #              of host nodes specified
745 # Since: 2.1
747 { 'enum': 'HostMemPolicy',
748   'data': [ 'default', 'preferred', 'bind', 'interleave' ] }
751 # @Memdev:
753 # Information about memory backend
755 # @id: backend's ID if backend has 'id' property (since 2.9)
757 # @size: memory backend size
759 # @merge: enables or disables memory merge support
761 # @dump: includes memory backend's memory in a core dump or not
763 # @prealloc: enables or disables memory preallocation
765 # @host-nodes: host nodes for its memory policy
767 # @policy: memory policy of memory backend
769 # Since: 2.1
771 { 'struct': 'Memdev',
772   'data': {
773     '*id':        'str',
774     'size':       'size',
775     'merge':      'bool',
776     'dump':       'bool',
777     'prealloc':   'bool',
778     'host-nodes': ['uint16'],
779     'policy':     'HostMemPolicy' }}
782 # @query-memdev:
784 # Returns information for all memory backends.
786 # Returns: a list of @Memdev.
788 # Since: 2.1
790 # Example:
792 # -> { "execute": "query-memdev" }
793 # <- { "return": [
794 #        {
795 #          "id": "mem1",
796 #          "size": 536870912,
797 #          "merge": false,
798 #          "dump": true,
799 #          "prealloc": false,
800 #          "host-nodes": [0, 1],
801 #          "policy": "bind"
802 #        },
803 #        {
804 #          "size": 536870912,
805 #          "merge": false,
806 #          "dump": true,
807 #          "prealloc": true,
808 #          "host-nodes": [2, 3],
809 #          "policy": "preferred"
810 #        }
811 #      ]
812 #    }
815 { 'command': 'query-memdev', 'returns': ['Memdev'], 'allow-preconfig': true }
818 # @CpuInstanceProperties:
820 # List of properties to be used for hotplugging a CPU instance,
821 # it should be passed by management with device_add command when
822 # a CPU is being hotplugged.
824 # @node-id: NUMA node ID the CPU belongs to
825 # @socket-id: socket number within node/board the CPU belongs to
826 # @die-id: die number within node/board the CPU belongs to (Since 4.1)
827 # @core-id: core number within die the CPU belongs to# @thread-id: thread number within core the CPU belongs to
829 # Note: currently there are 5 properties that could be present
830 #       but management should be prepared to pass through other
831 #       properties with device_add command to allow for future
832 #       interface extension. This also requires the filed names to be kept in
833 #       sync with the properties passed to -device/device_add.
835 # Since: 2.7
837 { 'struct': 'CpuInstanceProperties',
838   'data': { '*node-id': 'int',
839             '*socket-id': 'int',
840             '*die-id': 'int',
841             '*core-id': 'int',
842             '*thread-id': 'int'
843   }
847 # @HotpluggableCPU:
849 # @type: CPU object type for usage with device_add command
850 # @props: list of properties to be used for hotplugging CPU
851 # @vcpus-count: number of logical VCPU threads @HotpluggableCPU provides
852 # @qom-path: link to existing CPU object if CPU is present or
853 #            omitted if CPU is not present.
855 # Since: 2.7
857 { 'struct': 'HotpluggableCPU',
858   'data': { 'type': 'str',
859             'vcpus-count': 'int',
860             'props': 'CpuInstanceProperties',
861             '*qom-path': 'str'
862           }
866 # @query-hotpluggable-cpus:
868 # TODO: Better documentation; currently there is none.
870 # Returns: a list of HotpluggableCPU objects.
872 # Since: 2.7
874 # Example:
876 # For pseries machine type started with -smp 2,cores=2,maxcpus=4 -cpu POWER8:
878 # -> { "execute": "query-hotpluggable-cpus" }
879 # <- {"return": [
880 #      { "props": { "core": 8 }, "type": "POWER8-spapr-cpu-core",
881 #        "vcpus-count": 1 },
882 #      { "props": { "core": 0 }, "type": "POWER8-spapr-cpu-core",
883 #        "vcpus-count": 1, "qom-path": "/machine/unattached/device[0]"}
884 #    ]}'
886 # For pc machine type started with -smp 1,maxcpus=2:
888 # -> { "execute": "query-hotpluggable-cpus" }
889 # <- {"return": [
890 #      {
891 #         "type": "qemu64-x86_64-cpu", "vcpus-count": 1,
892 #         "props": {"core-id": 0, "socket-id": 1, "thread-id": 0}
893 #      },
894 #      {
895 #         "qom-path": "/machine/unattached/device[0]",
896 #         "type": "qemu64-x86_64-cpu", "vcpus-count": 1,
897 #         "props": {"core-id": 0, "socket-id": 0, "thread-id": 0}
898 #      }
899 #    ]}
901 # For s390x-virtio-ccw machine type started with -smp 1,maxcpus=2 -cpu qemu
902 # (Since: 2.11):
904 # -> { "execute": "query-hotpluggable-cpus" }
905 # <- {"return": [
906 #      {
907 #         "type": "qemu-s390x-cpu", "vcpus-count": 1,
908 #         "props": { "core-id": 1 }
909 #      },
910 #      {
911 #         "qom-path": "/machine/unattached/device[0]",
912 #         "type": "qemu-s390x-cpu", "vcpus-count": 1,
913 #         "props": { "core-id": 0 }
914 #      }
915 #    ]}
918 { 'command': 'query-hotpluggable-cpus', 'returns': ['HotpluggableCPU'],
919              'allow-preconfig': true }
922 # @set-numa-node:
924 # Runtime equivalent of '-numa' CLI option, available at
925 # preconfigure stage to configure numa mapping before initializing
926 # machine.
928 # Since 3.0
930 { 'command': 'set-numa-node', 'boxed': true,
931   'data': 'NumaOptions',
932   'allow-preconfig': true