machine-target.json (78dfb7b0d325ed9433b2adbb77ffd075a8b6b89a) machine-target.json (32cfefb904cae766d56adf7a802bc1ce2ddf2440)
1# -*- Mode: Python -*-
2# vim: filetype=python
3#
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.
6
7{ 'include': 'machine-common.json' }
8

--- 391 unchanged lines hidden (view full) ---

400 'TARGET_ARM',
401 'TARGET_I386',
402 'TARGET_S390X',
403 'TARGET_MIPS',
404 'TARGET_LOONGARCH64',
405 'TARGET_RISCV' ] } }
406
407##
1# -*- Mode: Python -*-
2# vim: filetype=python
3#
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.
6
7{ 'include': 'machine-common.json' }
8

--- 391 unchanged lines hidden (view full) ---

400 'TARGET_ARM',
401 'TARGET_I386',
402 'TARGET_S390X',
403 'TARGET_MIPS',
404 'TARGET_LOONGARCH64',
405 'TARGET_RISCV' ] } }
406
407##
408# @CpuS390Polarization:
408# @S390CpuPolarization:
409#
410# An enumeration of CPU polarization that can be assumed by a virtual
411# S390 CPU
412#
413# Since: 8.2
414##
409#
410# An enumeration of CPU polarization that can be assumed by a virtual
411# S390 CPU
412#
413# Since: 8.2
414##
415{ 'enum': 'CpuS390Polarization',
416 'prefix': 'S390_CPU_POLARIZATION',
415{ 'enum': 'S390CpuPolarization',
417 'data': [ 'horizontal', 'vertical' ],
418 'if': 'TARGET_S390X'
419}
420
421##
422# @set-cpu-topology:
423#
424# Modify the topology by moving the CPU inside the topology tree, or

--- 20 unchanged lines hidden (view full) ---

445# Since: 8.2
446##
447{ 'command': 'set-cpu-topology',
448 'data': {
449 'core-id': 'uint16',
450 '*socket-id': 'uint16',
451 '*book-id': 'uint16',
452 '*drawer-id': 'uint16',
416 'data': [ 'horizontal', 'vertical' ],
417 'if': 'TARGET_S390X'
418}
419
420##
421# @set-cpu-topology:
422#
423# Modify the topology by moving the CPU inside the topology tree, or

--- 20 unchanged lines hidden (view full) ---

444# Since: 8.2
445##
446{ 'command': 'set-cpu-topology',
447 'data': {
448 'core-id': 'uint16',
449 '*socket-id': 'uint16',
450 '*book-id': 'uint16',
451 '*drawer-id': 'uint16',
453 '*entitlement': 'CpuS390Entitlement',
452 '*entitlement': 'S390CpuEntitlement',
454 '*dedicated': 'bool'
455 },
456 'features': [ 'unstable' ],
457 'if': { 'all': [ 'TARGET_S390X' , 'CONFIG_KVM' ] }
458}
459
460##
461# @CPU_POLARIZATION_CHANGE:

--- 21 unchanged lines hidden (view full) ---

483#
484# .. qmp-example::
485#
486# <- { "event": "CPU_POLARIZATION_CHANGE",
487# "data": { "polarization": "horizontal" },
488# "timestamp": { "seconds": 1401385907, "microseconds": 422329 } }
489##
490{ 'event': 'CPU_POLARIZATION_CHANGE',
453 '*dedicated': 'bool'
454 },
455 'features': [ 'unstable' ],
456 'if': { 'all': [ 'TARGET_S390X' , 'CONFIG_KVM' ] }
457}
458
459##
460# @CPU_POLARIZATION_CHANGE:

--- 21 unchanged lines hidden (view full) ---

482#
483# .. qmp-example::
484#
485# <- { "event": "CPU_POLARIZATION_CHANGE",
486# "data": { "polarization": "horizontal" },
487# "timestamp": { "seconds": 1401385907, "microseconds": 422329 } }
488##
489{ 'event': 'CPU_POLARIZATION_CHANGE',
491 'data': { 'polarization': 'CpuS390Polarization' },
490 'data': { 'polarization': 'S390CpuPolarization' },
492 'features': [ 'unstable' ],
493 'if': { 'all': [ 'TARGET_S390X', 'CONFIG_KVM' ] }
494}
495
496##
497# @CpuPolarizationInfo:
498#
499# The result of a CPU polarization query.
500#
501# @polarization: the CPU polarization
502#
503# Since: 8.2
504##
505{ 'struct': 'CpuPolarizationInfo',
491 'features': [ 'unstable' ],
492 'if': { 'all': [ 'TARGET_S390X', 'CONFIG_KVM' ] }
493}
494
495##
496# @CpuPolarizationInfo:
497#
498# The result of a CPU polarization query.
499#
500# @polarization: the CPU polarization
501#
502# Since: 8.2
503##
504{ 'struct': 'CpuPolarizationInfo',
506 'data': { 'polarization': 'CpuS390Polarization' },
505 'data': { 'polarization': 'S390CpuPolarization' },
507 'if': { 'all': [ 'TARGET_S390X', 'CONFIG_KVM' ] }
508}
509
510##
511# @query-s390x-cpu-polarization:
512#
513# Features:
514#
515# @unstable: This command is experimental.
516#
517# Returns: the machine's CPU polarization
518#
519# Since: 8.2
520##
521{ 'command': 'query-s390x-cpu-polarization', 'returns': 'CpuPolarizationInfo',
522 'features': [ 'unstable' ],
523 'if': { 'all': [ 'TARGET_S390X', 'CONFIG_KVM' ] }
524}
506 'if': { 'all': [ 'TARGET_S390X', 'CONFIG_KVM' ] }
507}
508
509##
510# @query-s390x-cpu-polarization:
511#
512# Features:
513#
514# @unstable: This command is experimental.
515#
516# Returns: the machine's CPU polarization
517#
518# Since: 8.2
519##
520{ 'command': 'query-s390x-cpu-polarization', 'returns': 'CpuPolarizationInfo',
521 'features': [ 'unstable' ],
522 'if': { 'all': [ 'TARGET_S390X', 'CONFIG_KVM' ] }
523}