From 824141dcf485b4a38c2217b9e66c3d7973bab0b9 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 8 Jan 2026 14:14:55 +0100 Subject: [PATCH] hw/core: Deprecate query-kvm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit query-accelerators covers all accelerators, and should be used instead. Signed-off-by: Markus Armbruster Message-ID: <20260108131455.2240598-2-armbru@redhat.com> Reviewed-by: Daniel P. Berrangé Reviewed-by: Philippe Mathieu-Daudé [Rebased, missing section title markup fixed] --- docs/about/deprecated.rst | 5 +++++ qapi/accelerator.json | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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: