Received: from eggs.gnu.org ([2001:4830:134:3::10]:47886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnM9-0004MO-Un for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:02:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjnM4-0004Ix-QQ for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:02:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnM4-0004It-KS for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:02:28 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (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 23730445D2 for ; Tue, 13 Sep 2016 13:02:28 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 13 Sep 2016 17:01:43 +0400 Message-Id: <20160913130209.695-5-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 04/30] qmp-commands: move 'query-status' 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 | 31 ------------------------------- qapi-schema.json | 10 ++++++++-- 2 files changed, 8 insertions(+), 33 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 2e78d60..6f6db87 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -2388,37 +2388,6 @@ Example: =20 Note: This example has been shortened as the real response is too long. =20 -query-status ------------- - -Return a json-object with the following information: - -- "running": true if the VM is running, or false if it is paused (json-b= ool) -- "singlestep": true if the VM is in single step mode, - false otherwise (json-bool) -- "status": one of the following values (json-string) - "debug" - QEMU is running on a debugger - "inmigrate" - guest is paused waiting for an incoming migration - "internal-error" - An internal error that prevents further guest - execution has occurred - "io-error" - the last IOP has failed and the device is configured - to pause on I/O errors - "paused" - guest has been paused via the 'stop' command - "postmigrate" - guest is paused following a successful 'migrate' - "prelaunch" - QEMU was started with -S and guest has not started - "finish-migrate" - guest is paused to finish the migration process - "restore-vm" - guest is paused to restore VM state - "running" - guest is actively running - "save-vm" - guest is paused to save the VM state - "shutdown" - guest is shut down (and -no-shutdown is in use) - "watchdog" - the watchdog action is configured to pause and - has been triggered - -Example: - --> { "execute": "query-status" } -<- { "return": { "running": true, "singlestep": false, "status": "runnin= g" } } - query-mice ---------- =20 diff --git a/qapi-schema.json b/qapi-schema.json index b013b39..008a7f9 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -205,7 +205,7 @@ ## # @StatusInfo: # -# Information about VCPU run state +# Information about VCPU run state. # # @running: true if all VCPUs are runnable, false if not runnable # @@ -223,11 +223,17 @@ ## # @query-status: # -# Query the run status of all VCPUs +# Query the run status of all VCPUs. # # Returns: @StatusInfo reflecting all VCPUs # # Since: 0.14.0 +# +# Example: +# +# -> { "execute": "query-status" } +# <- { "return": { "running": true, "singlestep": false, "status": "runn= ing" } } +# ## { 'command': 'query-status', 'returns': 'StatusInfo' } =20 --=20 2.10.0