get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 818539,
    "url": "http://patchwork.ozlabs.org/api/patches/818539/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/150642386887.3900.11789274449160294712.stgit@Misha-PC.lan02.inno/",
    "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": "<150642386887.3900.11789274449160294712.stgit@Misha-PC.lan02.inno>",
    "list_archive_url": null,
    "date": "2017-09-26T11:04:29",
    "name": "[04/43] windbg: added '-windbg' option",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ffe1925315e65091fa553d95fdc1fa78899b8804",
    "submitter": {
        "id": 71645,
        "url": "http://patchwork.ozlabs.org/api/people/71645/?format=api",
        "name": "Mikhail Abakumov",
        "email": "mikhail.abakumov@ispras.ru"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/150642386887.3900.11789274449160294712.stgit@Misha-PC.lan02.inno/mbox/",
    "series": [
        {
            "id": 5104,
            "url": "http://patchwork.ozlabs.org/api/series/5104/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=5104",
            "date": "2017-09-26T11:04:06",
            "name": "Windbg supporting",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/5104/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/818539/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818539/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>)",
        "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 3y1dXF6JSSz9tXP\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 26 Sep 2017 21:10:05 +1000 (AEST)",
            "from localhost ([::1]:46706 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 1dwnkZ-0007Fq-QZ\n\tfor incoming@patchwork.ozlabs.org; Tue, 26 Sep 2017 07:10:03 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:58724)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <mikhail.abakumov@ispras.ru>) id 1dwnfF-00039O-2M\n\tfor qemu-devel@nongnu.org; Tue, 26 Sep 2017 07:04:33 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <mikhail.abakumov@ispras.ru>) id 1dwnfD-0008GH-L5\n\tfor qemu-devel@nongnu.org; Tue, 26 Sep 2017 07:04:33 -0400",
            "from mail.ispras.ru ([83.149.199.45]:51662)\n\tby eggs.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <mikhail.abakumov@ispras.ru>) id 1dwnfD-0008G0-Ay\n\tfor qemu-devel@nongnu.org; Tue, 26 Sep 2017 07:04:31 -0400",
            "from Misha-PC.lan02.inno (unknown [85.142.117.226])\n\tby mail.ispras.ru (Postfix) with ESMTPSA id 6B42F540074;\n\tTue, 26 Sep 2017 14:04:30 +0300 (MSK)"
        ],
        "From": "Mihail Abakumov <mikhail.abakumov@ispras.ru>",
        "To": "qemu-devel@nongnu.org",
        "Date": "Tue, 26 Sep 2017 14:04:29 +0300",
        "Message-ID": "<150642386887.3900.11789274449160294712.stgit@Misha-PC.lan02.inno>",
        "In-Reply-To": "<150642384156.3900.3326424823772221077.stgit@Misha-PC.lan02.inno>",
        "References": "<150642384156.3900.3326424823772221077.stgit@Misha-PC.lan02.inno>",
        "User-Agent": "StGit/0.17.1-dirty",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 3.x [fuzzy]",
        "X-Received-From": "83.149.199.45",
        "Subject": "[Qemu-devel] [PATCH 04/43] windbg: added '-windbg' option",
        "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": "sw@weilnetz.de, lprosek@redhat.com, dovgaluk@ispras.ru,\n\trkagan@virtuozzo.com, pbonzini@redhat.com, den@openvz.org",
        "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": "This option starts windbg server.\n\nSigned-off-by: Mihail Abakumov <mikhail.abakumov@ispras.ru>\nSigned-off-by: Pavel Dovgalyuk <dovgaluk@ispras.ru>\nSigned-off-by: Dmitriy Koltunov <koltunov@ispras.ru>\n---\n qemu-options.hx |    8 ++++++++\n vl.c            |    8 ++++++++\n 2 files changed, 16 insertions(+)",
    "diff": "diff --git a/qemu-options.hx b/qemu-options.hx\nindex 9f6e2adfff..1c84eb56d9 100644\n--- a/qemu-options.hx\n+++ b/qemu-options.hx\n@@ -3544,6 +3544,14 @@ Shorthand for -gdb tcp::1234, i.e. open a gdbserver on TCP port 1234\n (@pxref{gdb_usage}).\n ETEXI\n \n+DEF(\"windbg\", HAS_ARG, QEMU_OPTION_windbg, \\\n+    \"-windbg         wait for windbg connection\\n\", QEMU_ARCH_I386)\n+STEXI\n+@item -windbg\n+@findex -windbg\n+Wait for windbg connection.\n+ETEXI\n+\n DEF(\"d\", HAS_ARG, QEMU_OPTION_d, \\\n     \"-d item1,...    enable logging of specified items (use '-d help' for a list of log items)\\n\",\n     QEMU_ARCH_ALL)\ndiff --git a/vl.c b/vl.c\nindex 8e247cc2a2..d6378cf03f 100644\n--- a/vl.c\n+++ b/vl.c\n@@ -80,6 +80,7 @@ int main(int argc, char **argv)\n #include \"sysemu/sysemu.h\"\n #include \"sysemu/numa.h\"\n #include \"exec/gdbstub.h\"\n+#include \"exec/windbgstub.h\"\n #include \"qemu/timer.h\"\n #include \"chardev/char.h\"\n #include \"qemu/bitmap.h\"\n@@ -2436,6 +2437,7 @@ struct device_config {\n         DEV_VIRTCON,   /* -virtioconsole */\n         DEV_DEBUGCON,  /* -debugcon */\n         DEV_GDB,       /* -gdb, -s */\n+        DEV_WINDBG,    /* -windbg */\n         DEV_SCLP,      /* s390 sclp */\n     } type;\n     const char *cmdline;\n@@ -3445,6 +3447,9 @@ int main(int argc, char **argv, char **envp)\n             case QEMU_OPTION_gdb:\n                 add_device_config(DEV_GDB, optarg);\n                 break;\n+            case QEMU_OPTION_windbg:\n+                add_device_config(DEV_WINDBG, optarg);\n+                break;\n             case QEMU_OPTION_L:\n                 if (is_help_option(optarg)) {\n                     list_data_dirs = true;\n@@ -4586,6 +4591,9 @@ int main(int argc, char **argv, char **envp)\n         exit(1);\n     }\n \n+    if (foreach_device_config(DEV_WINDBG, windbg_server_start) < 0) {\n+        exit(1);\n+    }\n     if (foreach_device_config(DEV_SERIAL, serial_parse) < 0)\n         exit(1);\n     if (foreach_device_config(DEV_PARALLEL, parallel_parse) < 0)\n",
    "prefixes": [
        "04/43"
    ]
}