]> git.ipfire.org Git - thirdparty/qemu.git/commit
qapi: make s390x specific CPU commands unconditionally available
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 22 May 2025 19:05:37 +0000 (12:05 -0700)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 28 May 2025 16:56:08 +0000 (18:56 +0200)
commitf8d41d0511114edcde8c589ffc76887b3a2dc39b
treee47cf108a3ff2d8f43927dd8cd019c87783802a9
parentd6758495d888e0ef8175824dadcdeb85274c14f1
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>
hw/s390x/cpu-topology.c
include/hw/s390x/cpu-topology.h
qapi/machine-s390x.json [moved from qapi/machine-target.json with 85% similarity]
qapi/meson.build
qapi/qapi-schema.json
stubs/meson.build
stubs/monitor-cpu-s390x-kvm.c [new file with mode: 0644]
tests/qtest/qmp-cmd-test.c