Received: from eggs.gnu.org ([2001:4830:134:3::10]:47859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnM2-0004Il-Cq for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:02:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjnM1-0004Hr-Ff for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:02:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnM1-0004Hf-Aq for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:02:25 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DB68465738 for ; Tue, 13 Sep 2016 13:02:24 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 13 Sep 2016 17:01:42 +0400 Message-Id: <20160913130209.695-4-marcandre.lureau@redhat.com> In-Reply-To: <20160913130209.695-1-marcandre.lureau@redhat.com> References: <20160913130209.695-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 03/30] qmp-commands: move 'query-kvm' doc to schema List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: eblake@redhat.com, armbru@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Signed-off-by: Marc-Andr=C3=A9 Lureau --- docs/qmp-commands.txt | 15 --------------- qapi-schema.json | 10 ++++++++-- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 4c9ccfb..2e78d60 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -2388,21 +2388,6 @@ Example: =20 Note: This example has been shortened as the real response is too long. =20 -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 ------------ =20 diff --git a/qapi-schema.json b/qapi-schema.json index accb28b..b013b39 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -128,7 +128,7 @@ ## # @KvmInfo: # -# Information about support for KVM acceleration +# Information about support for KVM acceleration. # # @enabled: true if KVM acceleration is active # @@ -141,11 +141,17 @@ ## # @query-kvm: # -# Returns information about KVM acceleration +# Returns information about KVM acceleration. # # Returns: @KvmInfo # # Since: 0.14.0 +# +# Example: +# +# -> { "execute": "query-kvm" } +# <- { "return": { "enabled": true, "present": true } } +# ## { 'command': 'query-kvm', 'returns': 'KvmInfo' } =20 --=20 2.10.0