aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 10:10:12 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:15:25 +0100
commit477bc1e4f18acccdd76bed12cbb0b980603fe5ae (patch)
tree261bc4d55c47831e3dcd2c09526127fd25121bb0
parentb4f65cd27a049632e77e258bb7503d49a9c54a70 (diff)
downloadqemu-477bc1e4f18acccdd76bed12cbb0b980603fe5ae.zip
qemu-477bc1e4f18acccdd76bed12cbb0b980603fe5ae.tar.gz
qemu-477bc1e4f18acccdd76bed12cbb0b980603fe5ae.tar.bz2
qmp-commands: move 'query-status' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r--docs/qmp-commands.txt31
-rw-r--r--qapi-schema.json8
2 files changed, 8 insertions, 31 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 33fa51e..47ae840 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -2405,37 +2405,6 @@ Example:
Note: This example has been shortened as the real response is too long.
-query-status
-------------
-
-Return a json-object with the following information:
-
-- "running": true if the VM is running, or false if it is paused (json-bool)
-- "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": "running" } }
-
query-mice
----------
diff --git a/qapi-schema.json b/qapi-schema.json
index f7ac9f0..5a8975d 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -236,6 +236,14 @@
# Returns: @StatusInfo reflecting all VCPUs
#
# Since: 0.14.0
+#
+# Example:
+#
+# -> { "execute": "query-status" }
+# <- { "return": { "running": true,
+# "singlestep": false,
+# "status": "running" } }
+#
##
{ 'command': 'query-status', 'returns': 'StatusInfo' }