[PATCH 0/1] hw/core: Deprecate query-kvm
Based-on: <20260108125512.2234147-1-armbru@redhat.com> Markus Armbruster (1): hw/core: Deprecate query-kvm docs/about/deprecated.rst | 4 ++++ qapi/accelerator.json | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) -- 2.52.0
query-accelerators covers all accelerators, and should be used instead. Signed-off-by: Markus Armbruster <armbru@redhat.com> --- 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
On Thu, Jan 08, 2026 at 02:14:55PM +0100, Markus Armbruster wrote:
query-accelerators covers all accelerators, and should be used instead.
Signed-off-by: Markus Armbruster <armbru@redhat.com> --- docs/about/deprecated.rst | 4 ++++ qapi/accelerator.json | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> With regards, Daniel -- |: 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 :|
On 8/1/26 14:14, Markus Armbruster wrote:
query-accelerators covers all accelerators, and should be used instead.
Signed-off-by: Markus Armbruster <armbru@redhat.com> --- docs/about/deprecated.rst | 4 ++++ qapi/accelerator.json | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Long due, thanks!
participants (3)
-
Daniel P. Berrangé -
Markus Armbruster -
Philippe Mathieu-Daudé