summary refs log tree commit diff stats
path: root/tests/qtest/qmp-cmd-test.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2025-05-22 12:05:37 -0700
committerMarkus Armbruster <armbru@redhat.com>2025-05-28 18:56:08 +0200
commitf8d41d0511114edcde8c589ffc76887b3a2dc39b (patch)
treee47cf108a3ff2d8f43927dd8cd019c87783802a9 /tests/qtest/qmp-cmd-test.c
parentd6758495d888e0ef8175824dadcdeb85274c14f1 (diff)
downloadfocaccia-qemu-f8d41d0511114edcde8c589ffc76887b3a2dc39b.tar.gz
focaccia-qemu-f8d41d0511114edcde8c589ffc76887b3a2dc39b.zip
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>
Diffstat (limited to 'tests/qtest/qmp-cmd-test.c')
-rw-r--r--tests/qtest/qmp-cmd-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qtest/qmp-cmd-test.c b/tests/qtest/qmp-cmd-test.c
index 15c88248b7..040d042810 100644
--- a/tests/qtest/qmp-cmd-test.c
+++ b/tests/qtest/qmp-cmd-test.c
@@ -100,6 +100,7 @@ static bool query_is_ignored(const char *cmd)
         /* Success depends on target arch: */
         "query-cpu-definitions",  /* arm, i386, ppc, s390x */
         "query-gic-capabilities", /* arm */
+        "query-s390x-cpu-polarization", /* s390x */
         /* Success depends on target-specific build configuration: */
         "query-pci",              /* CONFIG_PCI */
         "x-query-virtio",         /* CONFIG_VIRTIO */