Skip to contentSkip to conversation

hw/core: Deprecate query-kvm

PATCH In review Markus Armbruster 3 participants 4 messages Jan 8

lore
Share & tools
lore
#0 lore raw

cover hw/core: Deprecate query-kvm

Based-on: <[email protected]>

Markus Armbruster (1):
hw/core: Deprecate query-kvm

 docs/about/deprecated.rst | 4 ++++
 qapi/accelerator.json     | 8 +++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)
Signature · 1 line
2.52.0
#1 lore raw

PATCH 1/1 hw/core: Deprecate query-kvm

query-accelerators covers all accelerators, and should be used instead.

---
 docs/about/deprecated.rst | 4 ++++
 qapi/accelerator.json     | 8 +++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)
docs/about/deprecated.rst +4 -0
index b53d885533..49c2dfce53 100644
@@ -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
 -------------------------------------
 
qapi/accelerator.json +7 -1
index 0cf5e0f9d9..b59df37866 100644
@@ -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:
Signature · 1 line
2.52.0
Reviewed-by on v1 1/1
#2 lore raw
Quoted 8 lines · Markus Armbruster

query-accelerators covers all accelerators, and should be used instead.

---
 docs/about/deprecated.rst | 4 ++++
 qapi/accelerator.json     | 8 +++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|