From: Marc-André Lureau Date: Thu, 23 Jun 2016 08:07:57 +0000 (+0200) Subject: qmp-commands: move 'query-kvm' doc to schema X-Git-Tag: v2.9.0-rc0~148^2~165 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b4f65cd27a049632e77e258bb7503d49a9c54a70;p=thirdparty%2Fqemu.git qmp-commands: move 'query-kvm' doc to schema Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index ceee41fb3b3..33fa51ebea0 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 e6d7063bc42..f7ac9f09e3a 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' }