get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 807478,
    "url": "http://patchwork.ozlabs.org/api/patches/807478/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170830082702.3011-14-Sergio.G.DelReal@gmail.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": "<20170830082702.3011-14-Sergio.G.DelReal@gmail.com>",
    "list_archive_url": null,
    "date": "2017-08-30T08:27:02",
    "name": "[v2,13/13] hvf: inject General Protection Fault when vmexit through vmcall",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c39f11c790508406804285e8805a36deb0791db8",
    "submitter": {
        "id": 70675,
        "url": "http://patchwork.ozlabs.org/api/people/70675/?format=api",
        "name": "Sergio Andres Gomez Del Real",
        "email": "sergio.g.delreal@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170830082702.3011-14-Sergio.G.DelReal@gmail.com/mbox/",
    "series": [
        {
            "id": 548,
            "url": "http://patchwork.ozlabs.org/api/series/548/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=548",
            "date": "2017-08-30T08:26:49",
            "name": "add support for Hypervisor.framework in QEMU",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/548/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/807478/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/807478/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\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"VW/m9j4j\"; 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 3xhzKz6kmqz9t1t\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 18:33:26 +1000 (AEST)",
            "from localhost ([::1]:49003 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 1dmyR8-0006by-5X\n\tfor incoming@patchwork.ozlabs.org; Wed, 30 Aug 2017 04:33:22 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:60612)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <sergio.g.delreal@gmail.com>) id 1dmyLt-0002g9-NG\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 04:27:58 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <sergio.g.delreal@gmail.com>) id 1dmyLp-0000S0-OP\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 04:27:57 -0400",
            "from mail-ua0-x241.google.com ([2607:f8b0:400c:c08::241]:34721)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <sergio.g.delreal@gmail.com>)\n\tid 1dmyLp-0000Rs-KV\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 04:27:53 -0400",
            "by mail-ua0-x241.google.com with SMTP id 105so2346980uad.1\n\tfor <qemu-devel@nongnu.org>; Wed, 30 Aug 2017 01:27:53 -0700 (PDT)",
            "from localhost.localdomain ([191.109.6.85])\n\tby smtp.gmail.com with ESMTPSA id\n\th74sm1079197vka.8.2017.08.30.01.27.52\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 30 Aug 2017 01:27:52 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=JS9h4IR1W4wkzkxDlH8v7NiNkRiyUCfYOFTl8tcbF/0=;\n\tb=VW/m9j4jyvOmGORAAA0ZF67M4ufrqSSndj5G0rTr4gaC7pWB5dAzvu09GyhoFHW7aT\n\tykSfNvJsyKH+aJNT+L90MFFAVhvl5JwtBQ/mNbjZjc+0NkIpxqRrhn+w5SNQWEM7XVOp\n\t+wbQVLAEyNQS8JCsmUyuZTbbjsCb9mNr403eJKvU+dgVXUhQ1cxcytIYWstcN7/9TY8Y\n\tT/tzscDdbSCWgM0KiG8k3D/AcvEE749o+mynkd8s+rpNZU0OYx2rbVs9TM4gizK5bbjx\n\tvNx+4vZ2HtQL9zMFe5P7trMEmuQmVeQexeEnoiS2UX+s5EJLy9Q8QD1nvFgXsgMW8HWX\n\tcmpw==",
        "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=JS9h4IR1W4wkzkxDlH8v7NiNkRiyUCfYOFTl8tcbF/0=;\n\tb=VcEEiw9V3I0VDzXuO+b7eo7PGEUgaHoxDq/dhmJGnOcGgPrKV+r7Gl9P/aL2335yHh\n\tihuD9OqvhYX0Ks/qELSExvh3CcvopztNTD5LdNsfbPuL+bg6nuhkhLYR/rsXfcxRYN+E\n\tAldrih0z8cdsqxzvYWw/E9RoZNoTE0vsP4MWnwC8ouFpJjpzHs5w3iurcRbGI9+yk1L3\n\tOLY8V2c4g9hn1coUXeqn9ZTJa4cG1BlFhb6gF+SFqvPCOEJSu2QSvtiZ37OjzcMDxSI8\n\tpNkEBEU6BPS6Eoup5dN9mAhvEk5ZXNMuqah0ei3Yk3Xzo/I4Wa7eUNQPxNmEAjP8cvpw\n\tKYPA==",
        "X-Gm-Message-State": "AHYfb5jx6AEuaQ1vxapM8jtWZHH7LvgymGTidDZqBgElCJUIAtOGNp7s\n\tG6SSutp2dKxbQjBI",
        "X-Received": "by 10.176.69.6 with SMTP id r6mr540985uar.170.1504081673014;\n\tWed, 30 Aug 2017 01:27:53 -0700 (PDT)",
        "From": "Sergio Andres Gomez Del Real <sergio.g.delreal@gmail.com>",
        "X-Google-Original-From": "Sergio Andres Gomez Del Real\n\t<Sergio.G.DelReal@gmail.com>",
        "To": "qemu-devel@nongnu.org",
        "Date": "Wed, 30 Aug 2017 03:27:02 -0500",
        "Message-Id": "<20170830082702.3011-14-Sergio.G.DelReal@gmail.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170830082702.3011-1-Sergio.G.DelReal@gmail.com>",
        "References": "<20170830082702.3011-1-Sergio.G.DelReal@gmail.com>",
        "X-detected-operating-system": "by eggs.gnu.org: Genre and OS details not\n\trecognized.",
        "X-Received-From": "2607:f8b0:400c:c08::241",
        "Subject": "[Qemu-devel] [PATCH v2 13/13] hvf: inject General Protection Fault\n\twhen vmexit through vmcall",
        "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": "Sergio Andres Gomez Del Real <Sergio.G.DelReal@gmail.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": "This commit injects a GP fault when the guest vmexit's by executing a\nvmcall instruction.\n\nSigned-off-by: Sergio Andres Gomez Del Real <Sergio.G.DelReal@gmail.com>\n---\n target/i386/hvf-all.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/target/i386/hvf-all.c b/target/i386/hvf-all.c\nindex 430affd9ce..ccd19bd629 100644\n--- a/target/i386/hvf-all.c\n+++ b/target/i386/hvf-all.c\n@@ -1076,7 +1076,9 @@ int hvf_vcpu_exec(CPUState *cpu)\n             macvm_set_rip(cpu, rip + ins_len);\n             break;\n         case VMX_REASON_VMCALL:\n-            /* TODO: inject #GP fault */\n+            env->exception_injected = EXCP0D_GPF;\n+            env->has_error_code = true;\n+            env->error_code = 0;\n             break;\n         default:\n             error_report(\"%llx: unhandled exit %llx\\n\", rip, exit_reason);\n",
    "prefixes": [
        "v2",
        "13/13"
    ]
}