Commit 824141dcf4 for qemu.org
commit 824141dcf485b4a38c2217b9e66c3d7973bab0b9
Author: Markus Armbruster <armbru@redhat.com>
Date: Thu Jan 8 14:14:55 2026 +0100
hw/core: Deprecate query-kvm
query-accelerators covers all accelerators, and should be used
instead.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20260108131455.2240598-2-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[Rebased, missing section title markup fixed]
diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst
index 10de10dc23..5551bd12ad 100644
--- a/docs/about/deprecated.rst
+++ b/docs/about/deprecated.rst
@@ -149,6 +149,11 @@ Use ``job-dismiss`` instead.
Use ``job-finalize`` instead.
+``query-kvm`` (since 11.0)
+''''''''''''''''''''''''''
+
+Use ``query-accelerators`` instead.
+
Human Machine Protocol (HMP) commands
-------------------------------------
diff --git a/qapi/accelerator.json b/qapi/accelerator.json
index 0cf5e0f9d9..b59df37866 100644
--- a/qapi/accelerator.json
+++ b/qapi/accelerator.json
@@ -29,6 +29,11 @@
#
# Return information about KVM acceleration
#
+# Features:
+#
+# @deprecated: This command is deprecated. Use `query-accelerators`
+# instead.
+#
# Since: 0.14
#
# .. qmp-example::
@@ -36,7 +41,8 @@
# -> { "execute": "query-kvm" }
# <- { "return": { "enabled": true, "present": true } }
##
-{ 'command': 'query-kvm', 'returns': 'KvmInfo' }
+{ 'command': 'query-kvm', 'returns': 'KvmInfo',
+ 'features': [ 'deprecated' ] }
##
# @x-accel-stats: