mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
qapi: make s390x specific CPU commands unconditionally available
This removes the TARGET_S390X and CONFIG_KVM conditions from the CPU commands that are conceptually specific to s390x. Top level stubs are provided to cope with non-s390x targets, or builds without KVM. The removal of CONFIG_KVM is justified by the fact there is no conceptual difference between running 'qemu-system-s390x -accel tcg' on a build with and without KVM built-in, so apps only using TCG can't rely on the CONFIG_KVM in the schema. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-ID: <20250522190542.588267-11-pierrick.bouvier@linaro.org> Reviewed-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
d6758495d8
commit
f8d41d0511
8 changed files with 35 additions and 15 deletions
|
@ -1,6 +1,7 @@
|
|||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||
# See the COPYING file in the top-level directory.
|
||||
|
||||
|
@ -15,8 +16,7 @@
|
|||
# Since: 8.2
|
||||
##
|
||||
{ 'enum': 'S390CpuPolarization',
|
||||
'data': [ 'horizontal', 'vertical' ],
|
||||
'if': 'TARGET_S390X'
|
||||
'data': [ 'horizontal', 'vertical' ]
|
||||
}
|
||||
|
||||
##
|
||||
|
@ -54,8 +54,7 @@
|
|||
'*entitlement': 'S390CpuEntitlement',
|
||||
'*dedicated': 'bool'
|
||||
},
|
||||
'features': [ 'unstable' ],
|
||||
'if': { 'all': [ 'TARGET_S390X' , 'CONFIG_KVM' ] }
|
||||
'features': [ 'unstable' ]
|
||||
}
|
||||
|
||||
##
|
||||
|
@ -90,8 +89,7 @@
|
|||
##
|
||||
{ 'event': 'CPU_POLARIZATION_CHANGE',
|
||||
'data': { 'polarization': 'S390CpuPolarization' },
|
||||
'features': [ 'unstable' ],
|
||||
'if': { 'all': [ 'TARGET_S390X', 'CONFIG_KVM' ] }
|
||||
'features': [ 'unstable' ]
|
||||
}
|
||||
|
||||
##
|
||||
|
@ -104,8 +102,7 @@
|
|||
# Since: 8.2
|
||||
##
|
||||
{ 'struct': 'CpuPolarizationInfo',
|
||||
'data': { 'polarization': 'S390CpuPolarization' },
|
||||
'if': { 'all': [ 'TARGET_S390X', 'CONFIG_KVM' ] }
|
||||
'data': { 'polarization': 'S390CpuPolarization' }
|
||||
}
|
||||
|
||||
##
|
||||
|
@ -120,6 +117,5 @@
|
|||
# Since: 8.2
|
||||
##
|
||||
{ 'command': 'query-s390x-cpu-polarization', 'returns': 'CpuPolarizationInfo',
|
||||
'features': [ 'unstable' ],
|
||||
'if': { 'all': [ 'TARGET_S390X', 'CONFIG_KVM' ] }
|
||||
'features': [ 'unstable' ]
|
||||
}
|
|
@ -39,7 +39,7 @@ qapi_all_modules = [
|
|||
'job',
|
||||
'machine-common',
|
||||
'machine',
|
||||
'machine-target',
|
||||
'machine-s390x',
|
||||
'migration',
|
||||
'misc',
|
||||
'net',
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
{ 'include': 'qdev.json' }
|
||||
{ 'include': 'machine-common.json' }
|
||||
{ 'include': 'machine.json' }
|
||||
{ 'include': 'machine-target.json' }
|
||||
{ 'include': 'machine-s390x.json' }
|
||||
{ 'include': 'replay.json' }
|
||||
{ 'include': 'yank.json' }
|
||||
{ 'include': 'misc.json' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue