query-accelerators covers all accelerators, and should be used
instead.
Signed-off-by: Markus Armbruster <[email protected]>
---
docs/about/deprecated.rst | 4 ++++
qapi/accelerator.json | 8 +++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst
index b53d885533..49c2dfce53 100644
--- a/docs/about/deprecated.rst
+++ b/docs/about/deprecated.rst
@@ -142,6 +142,10 @@ 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:
--
2.52.0