]> git.ipfire.org Git - thirdparty/qemu.git/blob - qapi/machine.json
numa: Extend CLI to provide memory latency and bandwidth information
[thirdparty/qemu.git] / qapi / machine.json
1 # -*- Mode: Python -*-
2 #
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.
5
6 ##
7 # = Machines
8 ##
9
10 ##
11 # @SysEmuTarget:
12 #
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.
18 #
19 # Notes: The resulting QMP strings can be appended to the "qemu-system-"
20 # prefix to produce the corresponding QEMU executable name. This
21 # is true even for "qemu-system-x86_64".
22 #
23 # ppcemb: dropped in 3.1
24 #
25 # Since: 3.0
26 ##
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', 's390x', 'sh4',
32 'sh4eb', 'sparc', 'sparc64', 'tricore', 'unicore32',
33 'x86_64', 'xtensa', 'xtensaeb' ] }
34
35 ##
36 # @CpuInfoArch:
37 #
38 # An enumeration of cpu types that enable additional information during
39 # @query-cpus and @query-cpus-fast.
40 #
41 # @s390: since 2.12
42 #
43 # @riscv: since 2.12
44 #
45 # Since: 2.6
46 ##
47 { 'enum': 'CpuInfoArch',
48 'data': ['x86', 'sparc', 'ppc', 'mips', 'tricore', 's390', 'riscv', 'other' ] }
49
50 ##
51 # @CpuInfo:
52 #
53 # Information about a virtual CPU
54 #
55 # @CPU: the index of the virtual CPU
56 #
57 # @current: this only exists for backwards compatibility and should be ignored
58 #
59 # @halted: true if the virtual CPU is in the halt state. Halt usually refers
60 # to a processor specific low power mode.
61 #
62 # @qom_path: path to the CPU object in the QOM tree (since 2.4)
63 #
64 # @thread_id: ID of the underlying host thread
65 #
66 # @props: properties describing to which node/socket/core/thread
67 # virtual CPU belongs to, provided if supported by board (since 2.10)
68 #
69 # @arch: architecture of the cpu, which determines which additional fields
70 # will be listed (since 2.6)
71 #
72 # Since: 0.14.0
73 #
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.
76 ##
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' } }
89
90 ##
91 # @CpuInfoX86:
92 #
93 # Additional information about a virtual i386 or x86_64 CPU
94 #
95 # @pc: the 64-bit instruction pointer
96 #
97 # Since: 2.6
98 ##
99 { 'struct': 'CpuInfoX86', 'data': { 'pc': 'int' } }
100
101 ##
102 # @CpuInfoSPARC:
103 #
104 # Additional information about a virtual SPARC CPU
105 #
106 # @pc: the PC component of the instruction pointer
107 #
108 # @npc: the NPC component of the instruction pointer
109 #
110 # Since: 2.6
111 ##
112 { 'struct': 'CpuInfoSPARC', 'data': { 'pc': 'int', 'npc': 'int' } }
113
114 ##
115 # @CpuInfoPPC:
116 #
117 # Additional information about a virtual PPC CPU
118 #
119 # @nip: the instruction pointer
120 #
121 # Since: 2.6
122 ##
123 { 'struct': 'CpuInfoPPC', 'data': { 'nip': 'int' } }
124
125 ##
126 # @CpuInfoMIPS:
127 #
128 # Additional information about a virtual MIPS CPU
129 #
130 # @PC: the instruction pointer
131 #
132 # Since: 2.6
133 ##
134 { 'struct': 'CpuInfoMIPS', 'data': { 'PC': 'int' } }
135
136 ##
137 # @CpuInfoTricore:
138 #
139 # Additional information about a virtual Tricore CPU
140 #
141 # @PC: the instruction pointer
142 #
143 # Since: 2.6
144 ##
145 { 'struct': 'CpuInfoTricore', 'data': { 'PC': 'int' } }
146
147 ##
148 # @CpuInfoRISCV:
149 #
150 # Additional information about a virtual RISCV CPU
151 #
152 # @pc: the instruction pointer
153 #
154 # Since 2.12
155 ##
156 { 'struct': 'CpuInfoRISCV', 'data': { 'pc': 'int' } }
157
158 ##
159 # @CpuS390State:
160 #
161 # An enumeration of cpu states that can be assumed by a virtual
162 # S390 CPU
163 #
164 # Since: 2.12
165 ##
166 { 'enum': 'CpuS390State',
167 'prefix': 'S390_CPU_STATE',
168 'data': [ 'uninitialized', 'stopped', 'check-stop', 'operating', 'load' ] }
169
170 ##
171 # @CpuInfoS390:
172 #
173 # Additional information about a virtual S390 CPU
174 #
175 # @cpu-state: the virtual CPU's state
176 #
177 # Since: 2.12
178 ##
179 { 'struct': 'CpuInfoS390', 'data': { 'cpu-state': 'CpuS390State' } }
180
181 ##
182 # @query-cpus:
183 #
184 # Returns a list of information about each virtual CPU.
185 #
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.
189 # It is recommended to use @query-cpus-fast instead of this command to
190 # avoid the vCPU interruption.
191 #
192 # Returns: a list of @CpuInfo for each virtual CPU
193 #
194 # Since: 0.14.0
195 #
196 # Example:
197 #
198 # -> { "execute": "query-cpus" }
199 # <- { "return": [
200 # {
201 # "CPU":0,
202 # "current":true,
203 # "halted":false,
204 # "qom_path":"/machine/unattached/device[0]",
205 # "arch":"x86",
206 # "pc":3227107138,
207 # "thread_id":3134
208 # },
209 # {
210 # "CPU":1,
211 # "current":false,
212 # "halted":true,
213 # "qom_path":"/machine/unattached/device[2]",
214 # "arch":"x86",
215 # "pc":7108165,
216 # "thread_id":3135
217 # }
218 # ]
219 # }
220 #
221 # Notes: This interface is deprecated (since 2.12.0), and it is strongly
222 # recommended that you avoid using it. Use @query-cpus-fast to
223 # obtain information about virtual CPUs.
224 #
225 ##
226 { 'command': 'query-cpus', 'returns': ['CpuInfo'] }
227
228 ##
229 # @CpuInfoFast:
230 #
231 # Information about a virtual CPU
232 #
233 # @cpu-index: index of the virtual CPU
234 #
235 # @qom-path: path to the CPU object in the QOM tree
236 #
237 # @thread-id: ID of the underlying host thread
238 #
239 # @props: properties describing to which node/socket/core/thread
240 # virtual CPU belongs to, provided if supported by board
241 #
242 # @arch: base architecture of the cpu; deprecated since 3.0.0 in favor
243 # of @target
244 #
245 # @target: the QEMU system emulation target, which determines which
246 # additional fields will be listed (since 3.0)
247 #
248 # Since: 2.12
249 #
250 ##
251 { 'union' : 'CpuInfoFast',
252 'base' : { 'cpu-index' : 'int',
253 'qom-path' : 'str',
254 'thread-id' : 'int',
255 '*props' : 'CpuInstanceProperties',
256 'arch' : 'CpuInfoArch',
257 'target' : 'SysEmuTarget' },
258 'discriminator' : 'target',
259 'data' : { 's390x' : 'CpuInfoS390' } }
260
261 ##
262 # @query-cpus-fast:
263 #
264 # Returns information about all virtual CPUs. This command does not
265 # incur a performance penalty and should be used in production
266 # instead of query-cpus.
267 #
268 # Returns: list of @CpuInfoFast
269 #
270 # Since: 2.12
271 #
272 # Example:
273 #
274 # -> { "execute": "query-cpus-fast" }
275 # <- { "return": [
276 # {
277 # "thread-id": 25627,
278 # "props": {
279 # "core-id": 0,
280 # "thread-id": 0,
281 # "socket-id": 0
282 # },
283 # "qom-path": "/machine/unattached/device[0]",
284 # "arch":"x86",
285 # "target":"x86_64",
286 # "cpu-index": 0
287 # },
288 # {
289 # "thread-id": 25628,
290 # "props": {
291 # "core-id": 0,
292 # "thread-id": 0,
293 # "socket-id": 1
294 # },
295 # "qom-path": "/machine/unattached/device[2]",
296 # "arch":"x86",
297 # "target":"x86_64",
298 # "cpu-index": 1
299 # }
300 # ]
301 # }
302 ##
303 { 'command': 'query-cpus-fast', 'returns': [ 'CpuInfoFast' ] }
304
305 ##
306 # @cpu-add:
307 #
308 # Adds CPU with specified ID.
309 #
310 # @id: ID of CPU to be created, valid values [0..max_cpus)
311 #
312 # Returns: Nothing on success
313 #
314 # Since: 1.5
315 #
316 # Note: This command is deprecated. The `device_add` command should be
317 # used instead. See the `query-hotpluggable-cpus` command for
318 # details.
319 #
320 # Example:
321 #
322 # -> { "execute": "cpu-add", "arguments": { "id": 2 } }
323 # <- { "return": {} }
324 #
325 ##
326 { 'command': 'cpu-add', 'data': {'id': 'int'} }
327
328 ##
329 # @MachineInfo:
330 #
331 # Information describing a machine.
332 #
333 # @name: the name of the machine
334 #
335 # @alias: an alias for the machine name
336 #
337 # @is-default: whether the machine is default
338 #
339 # @cpu-max: maximum number of CPUs supported by the machine type
340 # (since 1.5.0)
341 #
342 # @hotpluggable-cpus: cpu hotplug via -device is supported (since 2.7.0)
343 #
344 # @numa-mem-supported: true if '-numa node,mem' option is supported by
345 # the machine type and false otherwise (since 4.1)
346 #
347 # @deprecated: if true, the machine type is deprecated and may be removed
348 # in future versions of QEMU according to the QEMU deprecation
349 # policy (since 4.1.0)
350 #
351 # @default-cpu-type: default CPU model typename if none is requested via
352 # the -cpu argument. (since 4.2)
353 #
354 # Since: 1.2.0
355 ##
356 { 'struct': 'MachineInfo',
357 'data': { 'name': 'str', '*alias': 'str',
358 '*is-default': 'bool', 'cpu-max': 'int',
359 'hotpluggable-cpus': 'bool', 'numa-mem-supported': 'bool',
360 'deprecated': 'bool', '*default-cpu-type': 'str' } }
361
362 ##
363 # @query-machines:
364 #
365 # Return a list of supported machines
366 #
367 # Returns: a list of MachineInfo
368 #
369 # Since: 1.2.0
370 ##
371 { 'command': 'query-machines', 'returns': ['MachineInfo'] }
372
373 ##
374 # @CurrentMachineParams:
375 #
376 # Information describing the running machine parameters.
377 #
378 # @wakeup-suspend-support: true if the machine supports wake up from
379 # suspend
380 #
381 # Since: 4.0
382 ##
383 { 'struct': 'CurrentMachineParams',
384 'data': { 'wakeup-suspend-support': 'bool'} }
385
386 ##
387 # @query-current-machine:
388 #
389 # Return information on the current virtual machine.
390 #
391 # Returns: CurrentMachineParams
392 #
393 # Since: 4.0
394 ##
395 { 'command': 'query-current-machine', 'returns': 'CurrentMachineParams' }
396
397 ##
398 # @TargetInfo:
399 #
400 # Information describing the QEMU target.
401 #
402 # @arch: the target architecture
403 #
404 # Since: 1.2.0
405 ##
406 { 'struct': 'TargetInfo',
407 'data': { 'arch': 'SysEmuTarget' } }
408
409 ##
410 # @query-target:
411 #
412 # Return information about the target for this QEMU
413 #
414 # Returns: TargetInfo
415 #
416 # Since: 1.2.0
417 ##
418 { 'command': 'query-target', 'returns': 'TargetInfo' }
419
420 ##
421 # @NumaOptionsType:
422 #
423 # @node: NUMA nodes configuration
424 #
425 # @dist: NUMA distance configuration (since 2.10)
426 #
427 # @cpu: property based CPU(s) to node mapping (Since: 2.10)
428 #
429 # @hmat-lb: memory latency and bandwidth information (Since: 5.0)
430 #
431 # Since: 2.1
432 ##
433 { 'enum': 'NumaOptionsType',
434 'data': [ 'node', 'dist', 'cpu', 'hmat-lb' ] }
435
436 ##
437 # @NumaOptions:
438 #
439 # A discriminated record of NUMA options. (for OptsVisitor)
440 #
441 # Since: 2.1
442 ##
443 { 'union': 'NumaOptions',
444 'base': { 'type': 'NumaOptionsType' },
445 'discriminator': 'type',
446 'data': {
447 'node': 'NumaNodeOptions',
448 'dist': 'NumaDistOptions',
449 'cpu': 'NumaCpuOptions',
450 'hmat-lb': 'NumaHmatLBOptions' }}
451
452 ##
453 # @NumaNodeOptions:
454 #
455 # Create a guest NUMA node. (for OptsVisitor)
456 #
457 # @nodeid: NUMA node ID (increase by 1 from 0 if omitted)
458 #
459 # @cpus: VCPUs belonging to this node (assign VCPUS round-robin
460 # if omitted)
461 #
462 # @mem: memory size of this node; mutually exclusive with @memdev.
463 # Equally divide total memory among nodes if both @mem and @memdev are
464 # omitted.
465 #
466 # @memdev: memory backend object. If specified for one node,
467 # it must be specified for all nodes.
468 #
469 # @initiator: defined in ACPI 6.3 Chapter 5.2.27.3 Table 5-145,
470 # points to the nodeid which has the memory controller
471 # responsible for this NUMA node. This field provides
472 # additional information as to the initiator node that
473 # is closest (as in directly attached) to this node, and
474 # therefore has the best performance (since 5.0)
475 #
476 # Since: 2.1
477 ##
478 { 'struct': 'NumaNodeOptions',
479 'data': {
480 '*nodeid': 'uint16',
481 '*cpus': ['uint16'],
482 '*mem': 'size',
483 '*memdev': 'str',
484 '*initiator': 'uint16' }}
485
486 ##
487 # @NumaDistOptions:
488 #
489 # Set the distance between 2 NUMA nodes.
490 #
491 # @src: source NUMA node.
492 #
493 # @dst: destination NUMA node.
494 #
495 # @val: NUMA distance from source node to destination node.
496 # When a node is unreachable from another node, set the distance
497 # between them to 255.
498 #
499 # Since: 2.10
500 ##
501 { 'struct': 'NumaDistOptions',
502 'data': {
503 'src': 'uint16',
504 'dst': 'uint16',
505 'val': 'uint8' }}
506
507 ##
508 # @X86CPURegister32:
509 #
510 # A X86 32-bit register
511 #
512 # Since: 1.5
513 ##
514 { 'enum': 'X86CPURegister32',
515 'data': [ 'EAX', 'EBX', 'ECX', 'EDX', 'ESP', 'EBP', 'ESI', 'EDI' ] }
516
517 ##
518 # @X86CPUFeatureWordInfo:
519 #
520 # Information about a X86 CPU feature word
521 #
522 # @cpuid-input-eax: Input EAX value for CPUID instruction for that feature word
523 #
524 # @cpuid-input-ecx: Input ECX value for CPUID instruction for that
525 # feature word
526 #
527 # @cpuid-register: Output register containing the feature bits
528 #
529 # @features: value of output register, containing the feature bits
530 #
531 # Since: 1.5
532 ##
533 { 'struct': 'X86CPUFeatureWordInfo',
534 'data': { 'cpuid-input-eax': 'int',
535 '*cpuid-input-ecx': 'int',
536 'cpuid-register': 'X86CPURegister32',
537 'features': 'int' } }
538
539 ##
540 # @DummyForceArrays:
541 #
542 # Not used by QMP; hack to let us use X86CPUFeatureWordInfoList internally
543 #
544 # Since: 2.5
545 ##
546 { 'struct': 'DummyForceArrays',
547 'data': { 'unused': ['X86CPUFeatureWordInfo'] } }
548
549 ##
550 # @NumaCpuOptions:
551 #
552 # Option "-numa cpu" overrides default cpu to node mapping.
553 # It accepts the same set of cpu properties as returned by
554 # query-hotpluggable-cpus[].props, where node-id could be used to
555 # override default node mapping.
556 #
557 # Since: 2.10
558 ##
559 { 'struct': 'NumaCpuOptions',
560 'base': 'CpuInstanceProperties',
561 'data' : {} }
562
563 ##
564 # @HmatLBMemoryHierarchy:
565 #
566 # The memory hierarchy in the System Locality Latency and Bandwidth
567 # Information Structure of HMAT (Heterogeneous Memory Attribute Table)
568 #
569 # For more information about @HmatLBMemoryHierarchy, see chapter
570 # 5.2.27.4: Table 5-146: Field "Flags" of ACPI 6.3 spec.
571 #
572 # @memory: the structure represents the memory performance
573 #
574 # @first-level: first level of memory side cache
575 #
576 # @second-level: second level of memory side cache
577 #
578 # @third-level: third level of memory side cache
579 #
580 # Since: 5.0
581 ##
582 { 'enum': 'HmatLBMemoryHierarchy',
583 'data': [ 'memory', 'first-level', 'second-level', 'third-level' ] }
584
585 ##
586 # @HmatLBDataType:
587 #
588 # Data type in the System Locality Latency and Bandwidth
589 # Information Structure of HMAT (Heterogeneous Memory Attribute Table)
590 #
591 # For more information about @HmatLBDataType, see chapter
592 # 5.2.27.4: Table 5-146: Field "Data Type" of ACPI 6.3 spec.
593 #
594 # @access-latency: access latency (nanoseconds)
595 #
596 # @read-latency: read latency (nanoseconds)
597 #
598 # @write-latency: write latency (nanoseconds)
599 #
600 # @access-bandwidth: access bandwidth (Bytes per second)
601 #
602 # @read-bandwidth: read bandwidth (Bytes per second)
603 #
604 # @write-bandwidth: write bandwidth (Bytes per second)
605 #
606 # Since: 5.0
607 ##
608 { 'enum': 'HmatLBDataType',
609 'data': [ 'access-latency', 'read-latency', 'write-latency',
610 'access-bandwidth', 'read-bandwidth', 'write-bandwidth' ] }
611
612 ##
613 # @NumaHmatLBOptions:
614 #
615 # Set the system locality latency and bandwidth information
616 # between Initiator and Target proximity Domains.
617 #
618 # For more information about @NumaHmatLBOptions, see chapter
619 # 5.2.27.4: Table 5-146 of ACPI 6.3 spec.
620 #
621 # @initiator: the Initiator Proximity Domain.
622 #
623 # @target: the Target Proximity Domain.
624 #
625 # @hierarchy: the Memory Hierarchy. Indicates the performance
626 # of memory or side cache.
627 #
628 # @data-type: presents the type of data, access/read/write
629 # latency or hit latency.
630 #
631 # @latency: the value of latency from @initiator to @target
632 # proximity domain, the latency unit is "ns(nanosecond)".
633 #
634 # @bandwidth: the value of bandwidth between @initiator and @target
635 # proximity domain, the bandwidth unit is
636 # "Bytes per second".
637 #
638 # Since: 5.0
639 ##
640 { 'struct': 'NumaHmatLBOptions',
641 'data': {
642 'initiator': 'uint16',
643 'target': 'uint16',
644 'hierarchy': 'HmatLBMemoryHierarchy',
645 'data-type': 'HmatLBDataType',
646 '*latency': 'uint64',
647 '*bandwidth': 'size' }}
648
649 ##
650 # @HostMemPolicy:
651 #
652 # Host memory policy types
653 #
654 # @default: restore default policy, remove any nondefault policy
655 #
656 # @preferred: set the preferred host nodes for allocation
657 #
658 # @bind: a strict policy that restricts memory allocation to the
659 # host nodes specified
660 #
661 # @interleave: memory allocations are interleaved across the set
662 # of host nodes specified
663 #
664 # Since: 2.1
665 ##
666 { 'enum': 'HostMemPolicy',
667 'data': [ 'default', 'preferred', 'bind', 'interleave' ] }
668
669 ##
670 # @Memdev:
671 #
672 # Information about memory backend
673 #
674 # @id: backend's ID if backend has 'id' property (since 2.9)
675 #
676 # @size: memory backend size
677 #
678 # @merge: enables or disables memory merge support
679 #
680 # @dump: includes memory backend's memory in a core dump or not
681 #
682 # @prealloc: enables or disables memory preallocation
683 #
684 # @host-nodes: host nodes for its memory policy
685 #
686 # @policy: memory policy of memory backend
687 #
688 # Since: 2.1
689 ##
690 { 'struct': 'Memdev',
691 'data': {
692 '*id': 'str',
693 'size': 'size',
694 'merge': 'bool',
695 'dump': 'bool',
696 'prealloc': 'bool',
697 'host-nodes': ['uint16'],
698 'policy': 'HostMemPolicy' }}
699
700 ##
701 # @query-memdev:
702 #
703 # Returns information for all memory backends.
704 #
705 # Returns: a list of @Memdev.
706 #
707 # Since: 2.1
708 #
709 # Example:
710 #
711 # -> { "execute": "query-memdev" }
712 # <- { "return": [
713 # {
714 # "id": "mem1",
715 # "size": 536870912,
716 # "merge": false,
717 # "dump": true,
718 # "prealloc": false,
719 # "host-nodes": [0, 1],
720 # "policy": "bind"
721 # },
722 # {
723 # "size": 536870912,
724 # "merge": false,
725 # "dump": true,
726 # "prealloc": true,
727 # "host-nodes": [2, 3],
728 # "policy": "preferred"
729 # }
730 # ]
731 # }
732 #
733 ##
734 { 'command': 'query-memdev', 'returns': ['Memdev'], 'allow-preconfig': true }
735
736 ##
737 # @CpuInstanceProperties:
738 #
739 # List of properties to be used for hotplugging a CPU instance,
740 # it should be passed by management with device_add command when
741 # a CPU is being hotplugged.
742 #
743 # @node-id: NUMA node ID the CPU belongs to
744 # @socket-id: socket number within node/board the CPU belongs to
745 # @die-id: die number within node/board the CPU belongs to (Since 4.1)
746 # @core-id: core number within die the CPU belongs to# @thread-id: thread number within core the CPU belongs to
747 #
748 # Note: currently there are 5 properties that could be present
749 # but management should be prepared to pass through other
750 # properties with device_add command to allow for future
751 # interface extension. This also requires the filed names to be kept in
752 # sync with the properties passed to -device/device_add.
753 #
754 # Since: 2.7
755 ##
756 { 'struct': 'CpuInstanceProperties',
757 'data': { '*node-id': 'int',
758 '*socket-id': 'int',
759 '*die-id': 'int',
760 '*core-id': 'int',
761 '*thread-id': 'int'
762 }
763 }
764
765 ##
766 # @HotpluggableCPU:
767 #
768 # @type: CPU object type for usage with device_add command
769 # @props: list of properties to be used for hotplugging CPU
770 # @vcpus-count: number of logical VCPU threads @HotpluggableCPU provides
771 # @qom-path: link to existing CPU object if CPU is present or
772 # omitted if CPU is not present.
773 #
774 # Since: 2.7
775 ##
776 { 'struct': 'HotpluggableCPU',
777 'data': { 'type': 'str',
778 'vcpus-count': 'int',
779 'props': 'CpuInstanceProperties',
780 '*qom-path': 'str'
781 }
782 }
783
784 ##
785 # @query-hotpluggable-cpus:
786 #
787 # TODO: Better documentation; currently there is none.
788 #
789 # Returns: a list of HotpluggableCPU objects.
790 #
791 # Since: 2.7
792 #
793 # Example:
794 #
795 # For pseries machine type started with -smp 2,cores=2,maxcpus=4 -cpu POWER8:
796 #
797 # -> { "execute": "query-hotpluggable-cpus" }
798 # <- {"return": [
799 # { "props": { "core": 8 }, "type": "POWER8-spapr-cpu-core",
800 # "vcpus-count": 1 },
801 # { "props": { "core": 0 }, "type": "POWER8-spapr-cpu-core",
802 # "vcpus-count": 1, "qom-path": "/machine/unattached/device[0]"}
803 # ]}'
804 #
805 # For pc machine type started with -smp 1,maxcpus=2:
806 #
807 # -> { "execute": "query-hotpluggable-cpus" }
808 # <- {"return": [
809 # {
810 # "type": "qemu64-x86_64-cpu", "vcpus-count": 1,
811 # "props": {"core-id": 0, "socket-id": 1, "thread-id": 0}
812 # },
813 # {
814 # "qom-path": "/machine/unattached/device[0]",
815 # "type": "qemu64-x86_64-cpu", "vcpus-count": 1,
816 # "props": {"core-id": 0, "socket-id": 0, "thread-id": 0}
817 # }
818 # ]}
819 #
820 # For s390x-virtio-ccw machine type started with -smp 1,maxcpus=2 -cpu qemu
821 # (Since: 2.11):
822 #
823 # -> { "execute": "query-hotpluggable-cpus" }
824 # <- {"return": [
825 # {
826 # "type": "qemu-s390x-cpu", "vcpus-count": 1,
827 # "props": { "core-id": 1 }
828 # },
829 # {
830 # "qom-path": "/machine/unattached/device[0]",
831 # "type": "qemu-s390x-cpu", "vcpus-count": 1,
832 # "props": { "core-id": 0 }
833 # }
834 # ]}
835 #
836 ##
837 { 'command': 'query-hotpluggable-cpus', 'returns': ['HotpluggableCPU'],
838 'allow-preconfig': true }
839
840 ##
841 # @set-numa-node:
842 #
843 # Runtime equivalent of '-numa' CLI option, available at
844 # preconfigure stage to configure numa mapping before initializing
845 # machine.
846 #
847 # Since 3.0
848 ##
849 { 'command': 'set-numa-node', 'boxed': true,
850 'data': 'NumaOptions',
851 'allow-preconfig': true
852 }