@samitouri / QOSamiQemu / commits / 824141dcf4

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]

Markus Armbruster committed Jan 8, 2026 at 14:14 UTC 824141dcf485b4a38c2217b9e66c3d7973bab0b9
2 files changed +12 -1
docs/about/deprecated.rst
+5
@@ -149,6 +149,11 @@ Use ``job-dismiss`` instead.
149
150 Use ``job-finalize`` instead.
151
152 +``query-kvm`` (since 11.0)
153 +''''''''''''''''''''''''''
154 +
155 +Use ``query-accelerators`` instead.
156 +
157 Human Machine Protocol (HMP) commands
158 -------------------------------------
159
qapi/accelerator.json
+7 -1
@@ -29,6 +29,11 @@
29 #
30 # Return information about KVM acceleration
31 #
32 +# Features:
33 +#
34 +# @deprecated: This command is deprecated. Use `query-accelerators`
35 +# instead.
36 +#
37 # Since: 0.14
38 #
39 # .. qmp-example::
@@ -36,7 +41,8 @@
41 # -> { "execute": "query-kvm" }
42 # <- { "return": { "enabled": true, "present": true } }
43 ##
39 -{ 'command': 'query-kvm', 'returns': 'KvmInfo' }
44 +{ 'command': 'query-kvm', 'returns': 'KvmInfo',
45 + 'features': [ 'deprecated' ] }
46
47 ##
48 # @x-accel-stats: