From b4f65cd27a049632e77e258bb7503d49a9c54a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 10:07:57 +0200 Subject: [PATCH] qmp-commands: move 'query-kvm' doc to schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- docs/qmp-commands.txt | 15 --------------- qapi-schema.json | 6 ++++++ 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index ceee41fb3b..33fa51ebea 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -2405,21 +2405,6 @@ Example: Note: This example has been shortened as the real response is too long. -query-kvm ---------- - -Show KVM information. - -Return a json-object with the following information: - -- "enabled": true if KVM support is enabled, false otherwise (json-bool) -- "present": true if QEMU has KVM support, false otherwise (json-bool) - -Example: - --> { "execute": "query-kvm" } -<- { "return": { "enabled": true, "present": true } } - query-status ------------ diff --git a/qapi-schema.json b/qapi-schema.json index e6d7063bc4..f7ac9f09e3 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -150,6 +150,12 @@ # Returns: @KvmInfo # # Since: 0.14.0 +# +# Example: +# +# -> { "execute": "query-kvm" } +# <- { "return": { "enabled": true, "present": true } } +# ## { 'command': 'query-kvm', 'returns': 'KvmInfo' }