get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/808759/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 808759,
    "url": "http://patchwork.ozlabs.org/api/patches/808759/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170901153758.8628-21-armbru@redhat.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170901153758.8628-21-armbru@redhat.com>",
    "list_archive_url": null,
    "date": "2017-09-01T15:37:31",
    "name": "[PULL,v2,20/47] qapi-schema: Collect run state stuff in qapi/run-state.json",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7700e799de2fcd1e7270b847104ce9e027f1cd6c",
    "submitter": {
        "id": 2645,
        "url": "http://patchwork.ozlabs.org/api/people/2645/?format=api",
        "name": "Markus Armbruster",
        "email": "armbru@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170901153758.8628-21-armbru@redhat.com/mbox/",
    "series": [
        {
            "id": 1049,
            "url": "http://patchwork.ozlabs.org/api/series/1049/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=1049",
            "date": "2017-09-01T15:37:14",
            "name": "[PULL,v2,01/47] qapi: Fix error handling code on alternate conflict",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/1049/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808759/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808759/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
            "ext-mx04.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com",
            "ext-mx04.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=armbru@redhat.com"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xkP6P0v8Fz9t3P\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  2 Sep 2017 01:58:19 +1000 (AEST)",
            "from localhost ([::1]:46573 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dnoKn-00015K-Sn\n\tfor incoming@patchwork.ozlabs.org; Fri, 01 Sep 2017 11:58:17 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:51729)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <armbru@redhat.com>) id 1dno1U-0006kj-M0\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 11:38:30 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <armbru@redhat.com>) id 1dno1N-0001kG-3F\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 11:38:20 -0400",
            "from mx1.redhat.com ([209.132.183.28]:34550)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <armbru@redhat.com>) id 1dno1M-0001j0-Oz\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 11:38:12 -0400",
            "from smtp.corp.redhat.com\n\t(int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id C9D217EAA9\n\tfor <qemu-devel@nongnu.org>; Fri,  1 Sep 2017 15:38:11 +0000 (UTC)",
            "from blackfin.pond.sub.org (ovpn-116-75.ams2.redhat.com\n\t[10.36.116.75])\n\tby smtp.corp.redhat.com (Postfix) with ESMTPS id 2BA7DB19DD;\n\tFri,  1 Sep 2017 15:38:08 +0000 (UTC)",
            "by blackfin.pond.sub.org (Postfix, from userid 1000)\n\tid 7D22F1138558; Fri,  1 Sep 2017 17:37:58 +0200 (CEST)"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com C9D217EAA9",
        "From": "Markus Armbruster <armbru@redhat.com>",
        "To": "qemu-devel@nongnu.org",
        "Date": "Fri,  1 Sep 2017 17:37:31 +0200",
        "Message-Id": "<20170901153758.8628-21-armbru@redhat.com>",
        "In-Reply-To": "<20170901153758.8628-1-armbru@redhat.com>",
        "References": "<20170901153758.8628-1-armbru@redhat.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.15",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.28]);\n\tFri, 01 Sep 2017 15:38:11 +0000 (UTC)",
        "Content-Transfer-Encoding": "quoted-printable",
        "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]",
        "X-Received-From": "209.132.183.28",
        "Subject": "[Qemu-devel] [PULL v2 20/47] qapi-schema: Collect run state stuff\n\tin qapi/run-state.json",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Cc": "Paolo Bonzini <pbonzini@redhat.com>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "Cc: Paolo Bonzini <pbonzini@redhat.com>\nSigned-off-by: Markus Armbruster <armbru@redhat.com>\nMessage-Id: <1503602048-12268-6-git-send-email-armbru@redhat.com>\nReviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>\n---\n MAINTAINERS         |   1 +\n Makefile            |   1 +\n qapi-schema.json    | 165 +-----------------------\n qapi/event.json     | 182 ---------------------------\n qapi/run-state.json | 352 ++++++++++++++++++++++++++++++++++++++++++++++++++++\n 5 files changed, 355 insertions(+), 346 deletions(-)\n create mode 100644 qapi/run-state.json",
    "diff": "diff --git a/MAINTAINERS b/MAINTAINERS\nindex fb90a19b3d..289ea8c575 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -1338,6 +1338,7 @@ F: cpus.c\n F: util/main-loop.c\n F: util/qemu-timer.c\n F: vl.c\n+F: qapi/run-state.json\n \n Human Monitor (HMP)\n M: Dr. David Alan Gilbert <dgilbert@redhat.com>\ndiff --git a/Makefile b/Makefile\nindex ca4a03c376..d3ba41afb8 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -413,6 +413,7 @@ qapi-modules = $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/qapi/common.json \\\n                $(SRC_PATH)/qapi/crypto.json \\\n                $(SRC_PATH)/qapi/event.json $(SRC_PATH)/qapi/introspect.json \\\n                $(SRC_PATH)/qapi/rocker.json \\\n+               $(SRC_PATH)/qapi/run-state.json \\\n                $(SRC_PATH)/qapi/sockets.json \\\n                $(SRC_PATH)/qapi/trace.json\n \ndiff --git a/qapi-schema.json b/qapi-schema.json\nindex d69b6da5ec..f42d61b664 100644\n--- a/qapi-schema.json\n+++ b/qapi-schema.json\n@@ -80,6 +80,7 @@\n \n { 'include': 'qapi/common.json' }\n { 'include': 'qapi/sockets.json' }\n+{ 'include': 'qapi/run-state.json' }\n { 'include': 'qapi/crypto.json' }\n { 'include': 'qapi/block.json' }\n { 'include': 'qapi/rocker.json' }\n@@ -243,94 +244,6 @@\n { 'command': 'query-kvm', 'returns': 'KvmInfo' }\n \n ##\n-# @RunState:\n-#\n-# An enumeration of VM run states.\n-#\n-# @debug: QEMU is running on a debugger\n-#\n-# @finish-migrate: guest is paused to finish the migration process\n-#\n-# @inmigrate: guest is paused waiting for an incoming migration.  Note\n-# that this state does not tell whether the machine will start at the\n-# end of the migration.  This depends on the command-line -S option and\n-# any invocation of 'stop' or 'cont' that has happened since QEMU was\n-# started.\n-#\n-# @internal-error: An internal error that prevents further guest execution\n-# has occurred\n-#\n-# @io-error: the last IOP has failed and the device is configured to pause\n-# on I/O errors\n-#\n-# @paused: guest has been paused via the 'stop' command\n-#\n-# @postmigrate: guest is paused following a successful 'migrate'\n-#\n-# @prelaunch: QEMU was started with -S and guest has not started\n-#\n-# @restore-vm: guest is paused to restore VM state\n-#\n-# @running: guest is actively running\n-#\n-# @save-vm: guest is paused to save the VM state\n-#\n-# @shutdown: guest is shut down (and -no-shutdown is in use)\n-#\n-# @suspended: guest is suspended (ACPI S3)\n-#\n-# @watchdog: the watchdog action is configured to pause and has been triggered\n-#\n-# @guest-panicked: guest has been panicked as a result of guest OS panic\n-#\n-# @colo: guest is paused to save/restore VM state under colo checkpoint,\n-#        VM can not get into this state unless colo capability is enabled\n-#        for migration. (since 2.8)\n-##\n-{ 'enum': 'RunState',\n-  'data': [ 'debug', 'inmigrate', 'internal-error', 'io-error', 'paused',\n-            'postmigrate', 'prelaunch', 'finish-migrate', 'restore-vm',\n-            'running', 'save-vm', 'shutdown', 'suspended', 'watchdog',\n-            'guest-panicked', 'colo' ] }\n-\n-##\n-# @StatusInfo:\n-#\n-# Information about VCPU run state\n-#\n-# @running: true if all VCPUs are runnable, false if not runnable\n-#\n-# @singlestep: true if VCPUs are in single-step mode\n-#\n-# @status: the virtual machine @RunState\n-#\n-# Since:  0.14.0\n-#\n-# Notes: @singlestep is enabled through the GDB stub\n-##\n-{ 'struct': 'StatusInfo',\n-  'data': {'running': 'bool', 'singlestep': 'bool', 'status': 'RunState'} }\n-\n-##\n-# @query-status:\n-#\n-# Query the run status of all VCPUs\n-#\n-# Returns: @StatusInfo reflecting all VCPUs\n-#\n-# Since:  0.14.0\n-#\n-# Example:\n-#\n-# -> { \"execute\": \"query-status\" }\n-# <- { \"return\": { \"running\": true,\n-#                  \"singlestep\": false,\n-#                  \"status\": \"running\" } }\n-#\n-##\n-{ 'command': 'query-status', 'returns': 'StatusInfo' }\n-\n-##\n # @UuidInfo:\n #\n # Guest UUID information (Universally Unique Identifier).\n@@ -6017,34 +5930,6 @@\n { 'command': 'query-acpi-ospm-status', 'returns': ['ACPIOSTInfo'] }\n \n ##\n-# @WatchdogExpirationAction:\n-#\n-# An enumeration of the actions taken when the watchdog device's timer is\n-# expired\n-#\n-# @reset: system resets\n-#\n-# @shutdown: system shutdown, note that it is similar to @powerdown, which\n-#            tries to set to system status and notify guest\n-#\n-# @poweroff: system poweroff, the emulator program exits\n-#\n-# @pause: system pauses, similar to @stop\n-#\n-# @debug: system enters debug state\n-#\n-# @none: nothing is done\n-#\n-# @inject-nmi: a non-maskable interrupt is injected into the first VCPU (all\n-#              VCPUS on x86) (since 2.4)\n-#\n-# Since: 2.1\n-##\n-{ 'enum': 'WatchdogExpirationAction',\n-  'data': [ 'reset', 'shutdown', 'poweroff', 'pause', 'debug', 'none',\n-            'inject-nmi' ] }\n-\n-##\n # @IoOperationType:\n #\n # An enumeration of the I/O operation types\n@@ -6059,54 +5944,6 @@\n   'data': [ 'read', 'write' ] }\n \n ##\n-# @GuestPanicAction:\n-#\n-# An enumeration of the actions taken when guest OS panic is detected\n-#\n-# @pause: system pauses\n-#\n-# Since: 2.1 (poweroff since 2.8)\n-##\n-{ 'enum': 'GuestPanicAction',\n-  'data': [ 'pause', 'poweroff' ] }\n-\n-##\n-# @GuestPanicInformationType:\n-#\n-# An enumeration of the guest panic information types\n-#\n-# Since: 2.9\n-##\n-{ 'enum': 'GuestPanicInformationType',\n-  'data': [ 'hyper-v'] }\n-\n-##\n-# @GuestPanicInformation:\n-#\n-# Information about a guest panic\n-#\n-# Since: 2.9\n-##\n-{'union': 'GuestPanicInformation',\n- 'base': {'type': 'GuestPanicInformationType'},\n- 'discriminator': 'type',\n- 'data': { 'hyper-v': 'GuestPanicInformationHyperV' } }\n-\n-##\n-# @GuestPanicInformationHyperV:\n-#\n-# Hyper-V specific guest panic information (HV crash MSRs)\n-#\n-# Since: 2.9\n-##\n-{'struct': 'GuestPanicInformationHyperV',\n- 'data': { 'arg1': 'uint64',\n-           'arg2': 'uint64',\n-           'arg3': 'uint64',\n-           'arg4': 'uint64',\n-           'arg5': 'uint64' } }\n-\n-##\n # @rtc-reset-reinjection:\n #\n # This command will reset the RTC interrupt reinjection backlog.\ndiff --git a/qapi/event.json b/qapi/event.json\nindex 6d22b025cc..9c6126d278 100644\n--- a/qapi/event.json\n+++ b/qapi/event.json\n@@ -5,144 +5,6 @@\n ##\n \n ##\n-# @SHUTDOWN:\n-#\n-# Emitted when the virtual machine has shut down, indicating that qemu is\n-# about to exit.\n-#\n-# @guest: If true, the shutdown was triggered by a guest request (such as\n-# a guest-initiated ACPI shutdown request or other hardware-specific action)\n-# rather than a host request (such as sending qemu a SIGINT). (since 2.10)\n-#\n-# Note: If the command-line option \"-no-shutdown\" has been specified, qemu will\n-# not exit, and a STOP event will eventually follow the SHUTDOWN event\n-#\n-# Since: 0.12.0\n-#\n-# Example:\n-#\n-# <- { \"event\": \"SHUTDOWN\", \"data\": { \"guest\": true },\n-#      \"timestamp\": { \"seconds\": 1267040730, \"microseconds\": 682951 } }\n-#\n-##\n-{ 'event': 'SHUTDOWN', 'data': { 'guest': 'bool' } }\n-\n-##\n-# @POWERDOWN:\n-#\n-# Emitted when the virtual machine is powered down through the power control\n-# system, such as via ACPI.\n-#\n-# Since: 0.12.0\n-#\n-# Example:\n-#\n-# <- { \"event\": \"POWERDOWN\",\n-#      \"timestamp\": { \"seconds\": 1267040730, \"microseconds\": 682951 } }\n-#\n-##\n-{ 'event': 'POWERDOWN' }\n-\n-##\n-# @RESET:\n-#\n-# Emitted when the virtual machine is reset\n-#\n-# @guest: If true, the reset was triggered by a guest request (such as\n-# a guest-initiated ACPI reboot request or other hardware-specific action)\n-# rather than a host request (such as the QMP command system_reset).\n-# (since 2.10)\n-#\n-# Since: 0.12.0\n-#\n-# Example:\n-#\n-# <- { \"event\": \"RESET\", \"data\": { \"guest\": false },\n-#      \"timestamp\": { \"seconds\": 1267041653, \"microseconds\": 9518 } }\n-#\n-##\n-{ 'event': 'RESET', 'data': { 'guest': 'bool' } }\n-\n-##\n-# @STOP:\n-#\n-# Emitted when the virtual machine is stopped\n-#\n-# Since: 0.12.0\n-#\n-# Example:\n-#\n-# <- { \"event\": \"STOP\",\n-#      \"timestamp\": { \"seconds\": 1267041730, \"microseconds\": 281295 } }\n-#\n-##\n-{ 'event': 'STOP' }\n-\n-##\n-# @RESUME:\n-#\n-# Emitted when the virtual machine resumes execution\n-#\n-# Since: 0.12.0\n-#\n-# Example:\n-#\n-# <- { \"event\": \"RESUME\",\n-#      \"timestamp\": { \"seconds\": 1271770767, \"microseconds\": 582542 } }\n-#\n-##\n-{ 'event': 'RESUME' }\n-\n-##\n-# @SUSPEND:\n-#\n-# Emitted when guest enters a hardware suspension state, for example, S3 state,\n-# which is sometimes called standby state\n-#\n-# Since: 1.1\n-#\n-# Example:\n-#\n-# <- { \"event\": \"SUSPEND\",\n-#      \"timestamp\": { \"seconds\": 1344456160, \"microseconds\": 309119 } }\n-#\n-##\n-{ 'event': 'SUSPEND' }\n-\n-##\n-# @SUSPEND_DISK:\n-#\n-# Emitted when guest enters a hardware suspension state with data saved on\n-# disk, for example, S4 state, which is sometimes called hibernate state\n-#\n-# Note: QEMU shuts down (similar to event @SHUTDOWN) when entering this state\n-#\n-# Since: 1.2\n-#\n-# Example:\n-#\n-# <-   { \"event\": \"SUSPEND_DISK\",\n-#        \"timestamp\": { \"seconds\": 1344456160, \"microseconds\": 309119 } }\n-#\n-##\n-{ 'event': 'SUSPEND_DISK' }\n-\n-##\n-# @WAKEUP:\n-#\n-# Emitted when the guest has woken up from suspend state and is running\n-#\n-# Since: 1.1\n-#\n-# Example:\n-#\n-# <- { \"event\": \"WAKEUP\",\n-#      \"timestamp\": { \"seconds\": 1344522075, \"microseconds\": 745528 } }\n-#\n-##\n-{ 'event': 'WAKEUP' }\n-\n-##\n # @RTC_CHANGE:\n #\n # Emitted when the guest changes the RTC time.\n@@ -165,30 +27,6 @@\n   'data': { 'offset': 'int' } }\n \n ##\n-# @WATCHDOG:\n-#\n-# Emitted when the watchdog device's timer is expired\n-#\n-# @action: action that has been taken\n-#\n-# Note: If action is \"reset\", \"shutdown\", or \"pause\" the WATCHDOG event is\n-# followed respectively by the RESET, SHUTDOWN, or STOP events\n-#\n-# Note: This event is rate-limited.\n-#\n-# Since: 0.13.0\n-#\n-# Example:\n-#\n-# <- { \"event\": \"WATCHDOG\",\n-#      \"data\": { \"action\": \"reset\" },\n-#      \"timestamp\": { \"seconds\": 1267061043, \"microseconds\": 959568 } }\n-#\n-##\n-{ 'event': 'WATCHDOG',\n-  'data': { 'action': 'WatchdogExpirationAction' } }\n-\n-##\n # @DEVICE_DELETED:\n #\n # Emitted whenever the device removal completion is acknowledged by the guest.\n@@ -491,26 +329,6 @@\n   'data': { 'actual': 'int' } }\n \n ##\n-# @GUEST_PANICKED:\n-#\n-# Emitted when guest OS panic is detected\n-#\n-# @action: action that has been taken, currently always \"pause\"\n-#\n-# @info: information about a panic (since 2.9)\n-#\n-# Since: 1.5\n-#\n-# Example:\n-#\n-# <- { \"event\": \"GUEST_PANICKED\",\n-#      \"data\": { \"action\": \"pause\" } }\n-#\n-##\n-{ 'event': 'GUEST_PANICKED',\n-  'data': { 'action': 'GuestPanicAction', '*info': 'GuestPanicInformation' } }\n-\n-##\n # @QUORUM_FAILURE:\n #\n # Emitted by the Quorum block driver if it fails to establish a quorum\ndiff --git a/qapi/run-state.json b/qapi/run-state.json\nnew file mode 100644\nindex 0000000000..d36ff49834\n--- /dev/null\n+++ b/qapi/run-state.json\n@@ -0,0 +1,352 @@\n+# -*- Mode: Python -*-\n+#\n+\n+##\n+# = VM run state\n+##\n+\n+##\n+# @RunState:\n+#\n+# An enumeration of VM run states.\n+#\n+# @debug: QEMU is running on a debugger\n+#\n+# @finish-migrate: guest is paused to finish the migration process\n+#\n+# @inmigrate: guest is paused waiting for an incoming migration.  Note\n+# that this state does not tell whether the machine will start at the\n+# end of the migration.  This depends on the command-line -S option and\n+# any invocation of 'stop' or 'cont' that has happened since QEMU was\n+# started.\n+#\n+# @internal-error: An internal error that prevents further guest execution\n+# has occurred\n+#\n+# @io-error: the last IOP has failed and the device is configured to pause\n+# on I/O errors\n+#\n+# @paused: guest has been paused via the 'stop' command\n+#\n+# @postmigrate: guest is paused following a successful 'migrate'\n+#\n+# @prelaunch: QEMU was started with -S and guest has not started\n+#\n+# @restore-vm: guest is paused to restore VM state\n+#\n+# @running: guest is actively running\n+#\n+# @save-vm: guest is paused to save the VM state\n+#\n+# @shutdown: guest is shut down (and -no-shutdown is in use)\n+#\n+# @suspended: guest is suspended (ACPI S3)\n+#\n+# @watchdog: the watchdog action is configured to pause and has been triggered\n+#\n+# @guest-panicked: guest has been panicked as a result of guest OS panic\n+#\n+# @colo: guest is paused to save/restore VM state under colo checkpoint,\n+#        VM can not get into this state unless colo capability is enabled\n+#        for migration. (since 2.8)\n+##\n+{ 'enum': 'RunState',\n+  'data': [ 'debug', 'inmigrate', 'internal-error', 'io-error', 'paused',\n+            'postmigrate', 'prelaunch', 'finish-migrate', 'restore-vm',\n+            'running', 'save-vm', 'shutdown', 'suspended', 'watchdog',\n+            'guest-panicked', 'colo' ] }\n+\n+##\n+# @StatusInfo:\n+#\n+# Information about VCPU run state\n+#\n+# @running: true if all VCPUs are runnable, false if not runnable\n+#\n+# @singlestep: true if VCPUs are in single-step mode\n+#\n+# @status: the virtual machine @RunState\n+#\n+# Since:  0.14.0\n+#\n+# Notes: @singlestep is enabled through the GDB stub\n+##\n+{ 'struct': 'StatusInfo',\n+  'data': {'running': 'bool', 'singlestep': 'bool', 'status': 'RunState'} }\n+\n+##\n+# @query-status:\n+#\n+# Query the run status of all VCPUs\n+#\n+# Returns: @StatusInfo reflecting all VCPUs\n+#\n+# Since:  0.14.0\n+#\n+# Example:\n+#\n+# -> { \"execute\": \"query-status\" }\n+# <- { \"return\": { \"running\": true,\n+#                  \"singlestep\": false,\n+#                  \"status\": \"running\" } }\n+#\n+##\n+{ 'command': 'query-status', 'returns': 'StatusInfo' }\n+\n+##\n+# @SHUTDOWN:\n+#\n+# Emitted when the virtual machine has shut down, indicating that qemu is\n+# about to exit.\n+#\n+# @guest: If true, the shutdown was triggered by a guest request (such as\n+# a guest-initiated ACPI shutdown request or other hardware-specific action)\n+# rather than a host request (such as sending qemu a SIGINT). (since 2.10)\n+#\n+# Note: If the command-line option \"-no-shutdown\" has been specified, qemu will\n+# not exit, and a STOP event will eventually follow the SHUTDOWN event\n+#\n+# Since: 0.12.0\n+#\n+# Example:\n+#\n+# <- { \"event\": \"SHUTDOWN\", \"data\": { \"guest\": true },\n+#      \"timestamp\": { \"seconds\": 1267040730, \"microseconds\": 682951 } }\n+#\n+##\n+{ 'event': 'SHUTDOWN', 'data': { 'guest': 'bool' } }\n+\n+##\n+# @POWERDOWN:\n+#\n+# Emitted when the virtual machine is powered down through the power control\n+# system, such as via ACPI.\n+#\n+# Since: 0.12.0\n+#\n+# Example:\n+#\n+# <- { \"event\": \"POWERDOWN\",\n+#      \"timestamp\": { \"seconds\": 1267040730, \"microseconds\": 682951 } }\n+#\n+##\n+{ 'event': 'POWERDOWN' }\n+\n+##\n+# @RESET:\n+#\n+# Emitted when the virtual machine is reset\n+#\n+# @guest: If true, the reset was triggered by a guest request (such as\n+# a guest-initiated ACPI reboot request or other hardware-specific action)\n+# rather than a host request (such as the QMP command system_reset).\n+# (since 2.10)\n+#\n+# Since: 0.12.0\n+#\n+# Example:\n+#\n+# <- { \"event\": \"RESET\", \"data\": { \"guest\": false },\n+#      \"timestamp\": { \"seconds\": 1267041653, \"microseconds\": 9518 } }\n+#\n+##\n+{ 'event': 'RESET', 'data': { 'guest': 'bool' } }\n+\n+##\n+# @STOP:\n+#\n+# Emitted when the virtual machine is stopped\n+#\n+# Since: 0.12.0\n+#\n+# Example:\n+#\n+# <- { \"event\": \"STOP\",\n+#      \"timestamp\": { \"seconds\": 1267041730, \"microseconds\": 281295 } }\n+#\n+##\n+{ 'event': 'STOP' }\n+\n+##\n+# @RESUME:\n+#\n+# Emitted when the virtual machine resumes execution\n+#\n+# Since: 0.12.0\n+#\n+# Example:\n+#\n+# <- { \"event\": \"RESUME\",\n+#      \"timestamp\": { \"seconds\": 1271770767, \"microseconds\": 582542 } }\n+#\n+##\n+{ 'event': 'RESUME' }\n+\n+##\n+# @SUSPEND:\n+#\n+# Emitted when guest enters a hardware suspension state, for example, S3 state,\n+# which is sometimes called standby state\n+#\n+# Since: 1.1\n+#\n+# Example:\n+#\n+# <- { \"event\": \"SUSPEND\",\n+#      \"timestamp\": { \"seconds\": 1344456160, \"microseconds\": 309119 } }\n+#\n+##\n+{ 'event': 'SUSPEND' }\n+\n+##\n+# @SUSPEND_DISK:\n+#\n+# Emitted when guest enters a hardware suspension state with data saved on\n+# disk, for example, S4 state, which is sometimes called hibernate state\n+#\n+# Note: QEMU shuts down (similar to event @SHUTDOWN) when entering this state\n+#\n+# Since: 1.2\n+#\n+# Example:\n+#\n+# <-   { \"event\": \"SUSPEND_DISK\",\n+#        \"timestamp\": { \"seconds\": 1344456160, \"microseconds\": 309119 } }\n+#\n+##\n+{ 'event': 'SUSPEND_DISK' }\n+\n+##\n+# @WAKEUP:\n+#\n+# Emitted when the guest has woken up from suspend state and is running\n+#\n+# Since: 1.1\n+#\n+# Example:\n+#\n+# <- { \"event\": \"WAKEUP\",\n+#      \"timestamp\": { \"seconds\": 1344522075, \"microseconds\": 745528 } }\n+#\n+##\n+{ 'event': 'WAKEUP' }\n+\n+##\n+# @WATCHDOG:\n+#\n+# Emitted when the watchdog device's timer is expired\n+#\n+# @action: action that has been taken\n+#\n+# Note: If action is \"reset\", \"shutdown\", or \"pause\" the WATCHDOG event is\n+# followed respectively by the RESET, SHUTDOWN, or STOP events\n+#\n+# Note: This event is rate-limited.\n+#\n+# Since: 0.13.0\n+#\n+# Example:\n+#\n+# <- { \"event\": \"WATCHDOG\",\n+#      \"data\": { \"action\": \"reset\" },\n+#      \"timestamp\": { \"seconds\": 1267061043, \"microseconds\": 959568 } }\n+#\n+##\n+{ 'event': 'WATCHDOG',\n+  'data': { 'action': 'WatchdogExpirationAction' } }\n+\n+##\n+# @WatchdogExpirationAction:\n+#\n+# An enumeration of the actions taken when the watchdog device's timer is\n+# expired\n+#\n+# @reset: system resets\n+#\n+# @shutdown: system shutdown, note that it is similar to @powerdown, which\n+#            tries to set to system status and notify guest\n+#\n+# @poweroff: system poweroff, the emulator program exits\n+#\n+# @pause: system pauses, similar to @stop\n+#\n+# @debug: system enters debug state\n+#\n+# @none: nothing is done\n+#\n+# @inject-nmi: a non-maskable interrupt is injected into the first VCPU (all\n+#              VCPUS on x86) (since 2.4)\n+#\n+# Since: 2.1\n+##\n+{ 'enum': 'WatchdogExpirationAction',\n+  'data': [ 'reset', 'shutdown', 'poweroff', 'pause', 'debug', 'none',\n+            'inject-nmi' ] }\n+\n+##\n+# @GUEST_PANICKED:\n+#\n+# Emitted when guest OS panic is detected\n+#\n+# @action: action that has been taken, currently always \"pause\"\n+#\n+# @info: information about a panic (since 2.9)\n+#\n+# Since: 1.5\n+#\n+# Example:\n+#\n+# <- { \"event\": \"GUEST_PANICKED\",\n+#      \"data\": { \"action\": \"pause\" } }\n+#\n+##\n+{ 'event': 'GUEST_PANICKED',\n+  'data': { 'action': 'GuestPanicAction', '*info': 'GuestPanicInformation' } }\n+\n+##\n+# @GuestPanicAction:\n+#\n+# An enumeration of the actions taken when guest OS panic is detected\n+#\n+# @pause: system pauses\n+#\n+# Since: 2.1 (poweroff since 2.8)\n+##\n+{ 'enum': 'GuestPanicAction',\n+  'data': [ 'pause', 'poweroff' ] }\n+\n+##\n+# @GuestPanicInformationType:\n+#\n+# An enumeration of the guest panic information types\n+#\n+# Since: 2.9\n+##\n+{ 'enum': 'GuestPanicInformationType',\n+  'data': [ 'hyper-v'] }\n+\n+##\n+# @GuestPanicInformation:\n+#\n+# Information about a guest panic\n+#\n+# Since: 2.9\n+##\n+{'union': 'GuestPanicInformation',\n+ 'base': {'type': 'GuestPanicInformationType'},\n+ 'discriminator': 'type',\n+ 'data': { 'hyper-v': 'GuestPanicInformationHyperV' } }\n+\n+##\n+# @GuestPanicInformationHyperV:\n+#\n+# Hyper-V specific guest panic information (HV crash MSRs)\n+#\n+# Since: 2.9\n+##\n+{'struct': 'GuestPanicInformationHyperV',\n+ 'data': { 'arg1': 'uint64',\n+           'arg2': 'uint64',\n+           'arg3': 'uint64',\n+           'arg4': 'uint64',\n+           'arg5': 'uint64' } }\n",
    "prefixes": [
        "PULL",
        "v2",
        "20/47"
    ]
}