get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 810652,
    "url": "http://patchwork.ozlabs.org/api/patches/810652/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170906144940.30880-6-richard.henderson@linaro.org/",
    "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": "<20170906144940.30880-6-richard.henderson@linaro.org>",
    "list_archive_url": null,
    "date": "2017-09-06T14:49:31",
    "name": "[PULL,05/14] disas/i386: Add disassembly of vex.0f38.f5",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e694bb83250ab7e877935413b0880460f06f2657",
    "submitter": {
        "id": 72104,
        "url": "http://patchwork.ozlabs.org/api/people/72104/?format=api",
        "name": "Richard Henderson",
        "email": "richard.henderson@linaro.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170906144940.30880-6-richard.henderson@linaro.org/mbox/",
    "series": [
        {
            "id": 1829,
            "url": "http://patchwork.ozlabs.org/api/series/1829/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=1829",
            "date": "2017-09-06T14:49:28",
            "name": "[PULL,01/14] tcg: Remove support for ia64 as host",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1829/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/810652/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/810652/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>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"OYjac9kt\"; dkim-atps=neutral"
        ],
        "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 3xnRR66XW3z9sRV\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  7 Sep 2017 00:53:22 +1000 (AEST)",
            "from localhost ([::1]:36535 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 1dpbhg-0007lK-Vf\n\tfor incoming@patchwork.ozlabs.org; Wed, 06 Sep 2017 10:53:21 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:39972)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <richard.henderson@linaro.org>) id 1dpbeN-0005Sv-Vt\n\tfor qemu-devel@nongnu.org; Wed, 06 Sep 2017 10:49:57 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <richard.henderson@linaro.org>) id 1dpbeJ-0000E1-4I\n\tfor qemu-devel@nongnu.org; Wed, 06 Sep 2017 10:49:56 -0400",
            "from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]:37040)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <richard.henderson@linaro.org>)\n\tid 1dpbeI-0000Dn-Un\n\tfor qemu-devel@nongnu.org; Wed, 06 Sep 2017 10:49:51 -0400",
            "by mail-pg0-x22a.google.com with SMTP id d8so15605692pgt.4\n\tfor <qemu-devel@nongnu.org>; Wed, 06 Sep 2017 07:49:50 -0700 (PDT)",
            "from bigtime.twiddle.net (97-126-108-236.tukw.qwest.net.\n\t[97.126.108.236]) by smtp.gmail.com with ESMTPSA id\n\th1sm3467646pfg.153.2017.09.06.07.49.48\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 06 Sep 2017 07:49:48 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=ute9HxNC5ZTHgV76jIzwo5OvXvO+yHYJKwukwEdzAho=;\n\tb=OYjac9ktMny7HZUNtqLU/1EZBFLtvdUd4KwQt89T+CSwPmdff1toAtV+u3KsFzxHs0\n\toa6blOKHKu24DRhqjA4fSNk9VlHd8rt4sWnGxG/Gfjte94IymsRFQRiRviOdcsOSZUO5\n\tQ1Ep/JgF2/QZIdXSBtaXofoSZqzlhBtcVM5nI=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=ute9HxNC5ZTHgV76jIzwo5OvXvO+yHYJKwukwEdzAho=;\n\tb=BuoakuAH52KuS0bvtF7ElTgeKzR00EmsQfJgbWJzHyW3KoYlbr0iSORgMizP+tdDh6\n\touO5QoRJrjuJmgsBgntd7EhtOS1wVTyPoYtDyLr75ZCJ0i5wbt+XlJ44yVXS4hE6iiR0\n\to/a+rx2ZrDI/gEPqnmNPmcZ79GrLku7VgnAsdm2EAR2IaY/X4RVNrRpTW0Ci6VwbrVq8\n\tzJdkmcKzdTsIztanRauH022xC6Cu1Jnt6uBJlCvyNSp7WIWAqKmPQ0FduOgdziUcyyfn\n\tQSMiRipO/P2Mzl9Pt87fzPdILFTOvuF7qF1XtnA4wG8nfustKfnYAPOn9vK0igprGpc+\n\tRfiA==",
        "X-Gm-Message-State": "AHPjjUjGRVjv7VbtMfIDd0QrHQVez3tljLxmZhmcAqRJRpDlDGMB3RB2\n\tWiDQ6mpWMdUk9k4NR4qqSA==",
        "X-Google-Smtp-Source": "ADKCNb5zxlxHfQwAJUPYEBubk0i9dMHctovT5MNOax2NBEAw0uzx9ypu+4OhvhgUycOOopsvMVvoWA==",
        "X-Received": "by 10.84.130.9 with SMTP id 9mr8402908plc.241.1504709389723;\n\tWed, 06 Sep 2017 07:49:49 -0700 (PDT)",
        "From": "Richard Henderson <richard.henderson@linaro.org>",
        "To": "qemu-devel@nongnu.org",
        "Date": "Wed,  6 Sep 2017 07:49:31 -0700",
        "Message-Id": "<20170906144940.30880-6-richard.henderson@linaro.org>",
        "X-Mailer": "git-send-email 2.13.5",
        "In-Reply-To": "<20170906144940.30880-1-richard.henderson@linaro.org>",
        "References": "<20170906144940.30880-1-richard.henderson@linaro.org>",
        "X-detected-operating-system": "by eggs.gnu.org: Genre and OS details not\n\trecognized.",
        "X-Received-From": "2607:f8b0:400e:c05::22a",
        "Subject": "[Qemu-devel] [PULL 05/14] disas/i386: Add disassembly of vex.0f38.f5",
        "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": "peter.maydell@linaro.org, Richard Henderson <rth@twiddle.net>",
        "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": "From: Richard Henderson <rth@twiddle.net>\n\nWhich includes pext, pdep and bzhi.\n\nSigned-off-by: Richard Henderson <rth@twiddle.net>\n---\n disas/i386.c | 15 ++++++++++++---\n 1 file changed, 12 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/disas/i386.c b/disas/i386.c\nindex 7a238b203b..7eaa378a10 100644\n--- a/disas/i386.c\n+++ b/disas/i386.c\n@@ -683,6 +683,7 @@ fetch_data(struct disassemble_info *info, bfd_byte *addr)\n #define PREGRP105 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 105 } }\n #define PREGRP106 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 106 } }\n #define PREGRP107 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 107 } }\n+#define PREGRP108 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 108 } }\n \n #define X86_64_0  NULL, { { NULL, X86_64_SPECIAL }, { NULL, 0 } }\n #define X86_64_1  NULL, { { NULL, X86_64_SPECIAL }, { NULL, 1 } }\n@@ -1484,7 +1485,7 @@ static const unsigned char threebyte_0x38_uses_REPNZ_prefix[256] = {\n   /* c0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* cf */\n   /* d0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* df */\n   /* e0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* ef */\n-  /* f0 */ 1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0, /* ff */\n+  /* f0 */ 1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0, /* ff */\n   /*       -------------------------------        */\n   /*       0 1 2 3 4 5 6 7 8 9 a b c d e f        */\n };\n@@ -1508,7 +1509,7 @@ static const unsigned char threebyte_0x38_uses_REPZ_prefix[256] = {\n   /* c0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* cf */\n   /* d0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* df */\n   /* e0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* ef */\n-  /* f0 */ 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0, /* ff */\n+  /* f0 */ 0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0, /* ff */\n   /*       -------------------------------        */\n   /*       0 1 2 3 4 5 6 7 8 9 a b c d e f        */\n };\n@@ -2808,6 +2809,14 @@ static const struct dis386 prefix_user_table[][4] = {\n     { \"bsfS\",\t{ Gv, Ev } },\n     { \"(bad)\",\t{ XX } },\n   },\n+\n+  /* PREGRP108 */\n+  {\n+    { \"bzhi\",   { Gv, Ev, Bv } },\n+    { \"pext\",   { Gv, Bv, Ev } },\n+    { \"(bad)\",  { XX } },\n+    { \"pdep\",   { Gv, Bv, Ev } },\n+  },\n };\n \n static const struct dis386 x86_64_table[][2] = {\n@@ -3108,7 +3117,7 @@ static const struct dis386 three_byte_table[][256] = {\n     { PREGRP105 },\n     { \"(bad)\", { XX } },\n     { \"(bad)\", { XX } },\n-    { \"(bad)\", { XX } },\n+    { PREGRP108 },\n     { \"(bad)\", { XX } },\n     { PREGRP106 },\n     /* f8 */\n",
    "prefixes": [
        "PULL",
        "05/14"
    ]
}