get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 806345,
    "url": "http://patchwork.ozlabs.org/api/patches/806345/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170828015654.2530-9-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": "<20170828015654.2530-9-Sergio.G.DelReal@gmail.com>",
    "list_archive_url": null,
    "date": "2017-08-28T01:56:48",
    "name": "[08/14] apic: add function to apic that will be used by hvf",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "c3f93af30990786fd50bb54434816e5ba0ba0692",
    "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/20170828015654.2530-9-Sergio.G.DelReal@gmail.com/mbox/",
    "series": [
        {
            "id": 56,
            "url": "http://patchwork.ozlabs.org/api/series/56/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=56",
            "date": "2017-08-28T01:56:40",
            "name": "add support for Hypervisor.framework in QEMU",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/56/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/806345/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806345/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=\"X1xzWrWF\"; 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 3xgZqf1YKKz9sNq\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 12:05:50 +1000 (AEST)",
            "from localhost ([::1]:36532 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 1dm9Qy-0002cF-46\n\tfor incoming@patchwork.ozlabs.org; Sun, 27 Aug 2017 22:05:48 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:42081)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <sergio.g.delreal@gmail.com>) id 1dm9JC-00052l-3R\n\tfor qemu-devel@nongnu.org; Sun, 27 Aug 2017 21:57:47 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <sergio.g.delreal@gmail.com>) id 1dm9J9-000196-2a\n\tfor qemu-devel@nongnu.org; Sun, 27 Aug 2017 21:57:46 -0400",
            "from mail-ua0-x242.google.com ([2607:f8b0:400c:c08::242]:34335)\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 1dm9J8-00018g-Ul\n\tfor qemu-devel@nongnu.org; Sun, 27 Aug 2017 21:57:43 -0400",
            "by mail-ua0-x242.google.com with SMTP id 105so871050uad.1\n\tfor <qemu-devel@nongnu.org>; Sun, 27 Aug 2017 18:57:42 -0700 (PDT)",
            "from localhost.localdomain ([191.109.6.191])\n\tby smtp.gmail.com with ESMTPSA id\n\ty12sm2696824uad.22.2017.08.27.18.57.41\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 27 Aug 2017 18:57:41 -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=4XR1wJboBSBIRUSknZ2vSKyyLDCGL8rlWlSP6BTF/C4=;\n\tb=X1xzWrWFh3XAODYHSS9JxJAZVIYLZ6gkNr7LPtfKcuUEH7/6kPyEH5PEQhedaCjSct\n\t2pSu2hnTneseYktRTev2pD2aIlu6bTrWCDQFLT9i8EMU64UtvZJfz5TCzU7ujN9o0nqO\n\t6e2XwPj/b2a1OFJNvsKTXE9YqpxuroSV1NWiY4ak+Z+rkZORlbkQVUDXPzcIhKZACYq2\n\tq48hFNRUjixjpewQD8+v4MmvOSp3cQjMKti4yUnyUSkZt0qrZD9uQNDqWOlshTIDovOb\n\tPXbvWHBW/vP0cskVzGaGfnJKZCUYXY4KrKkLJaSjzUu/fm79vaOxNV1dSxtKdGroqiuL\n\tYpNQ==",
        "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=4XR1wJboBSBIRUSknZ2vSKyyLDCGL8rlWlSP6BTF/C4=;\n\tb=jMod9DFcBNc9/yyMxXfYzvJugL/3ZLiXuMs2hxaYftCBIv3/olWl6YBQrxZD21ntlm\n\tMSjsNKR1AfQXx+aqiQnz8H3TXiPxCLRxM989n51rOfnCwzh+g297AnhoRlbaG8zKsfz9\n\tX5nuN6tXv5HxhXrHHMH5jgB+2Ps5i4XiN53/ZBkM/Kb5DxqWCP+O/sma7jlFrWOS5PDl\n\toH+AVI/4I6qbPuEVA6Nd6iXxBOHFxzhajfxE3A5Zi9g90j4wFoYJkm2u1FtK1IxnEMTF\n\tQgpbT1lwZcgPio0MxCepzgFgcIcvaoaAVlGpB6VIFn8ri3t2nmAfVx9r9KcDtE67bzJo\n\tw77w==",
        "X-Gm-Message-State": "AHYfb5jFEs89lliUO9AGkiL8+tVMjBhCkvqmghhGMEoGIhStHp8+884p\n\t52nTMaZN8grpcrEd",
        "X-Received": "by 10.176.92.81 with SMTP id a17mr1363299uag.98.1503885462152;\n\tSun, 27 Aug 2017 18:57:42 -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": "Sun, 27 Aug 2017 20:56:48 -0500",
        "Message-Id": "<20170828015654.2530-9-Sergio.G.DelReal@gmail.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170828015654.2530-1-Sergio.G.DelReal@gmail.com>",
        "References": "<20170828015654.2530-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::242",
        "Subject": "[Qemu-devel] [PATCH 08/14] apic: add function to apic that will be\n\tused by hvf",
        "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 moves (hides) the function apic_get_highest_priority_irr to\napic.c and exports it through the interface in apic.h for use by hvf.\n\nSigned-off-by: Sergio Andres Gomez Del Real <Sergio.G.DelReal@gmail.com>\n---\n hw/intc/apic.c         | 11 +++++++++++\n include/hw/i386/apic.h |  1 +\n 2 files changed, 12 insertions(+)",
    "diff": "diff --git a/hw/intc/apic.c b/hw/intc/apic.c\nindex fe15fb6024..3de59d07fd 100644\n--- a/hw/intc/apic.c\n+++ b/hw/intc/apic.c\n@@ -305,6 +305,17 @@ static void apic_set_tpr(APICCommonState *s, uint8_t val)\n     }\n }\n \n+int apic_get_highest_priority_irr(DeviceState *dev)\n+{\n+    APICCommonState *s;\n+\n+    if (!dev) {\n+        return -1;\n+    }\n+    s = APIC_COMMON(dev);\n+    return get_highest_priority_int(s->irr);\n+}\n+\n static uint8_t apic_get_tpr(APICCommonState *s)\n {\n     apic_sync_vapic(s, SYNC_FROM_VAPIC);\ndiff --git a/include/hw/i386/apic.h b/include/hw/i386/apic.h\nindex ea48ea9389..a9f6c0aa33 100644\n--- a/include/hw/i386/apic.h\n+++ b/include/hw/i386/apic.h\n@@ -20,6 +20,7 @@ void apic_init_reset(DeviceState *s);\n void apic_sipi(DeviceState *s);\n void apic_poll_irq(DeviceState *d);\n void apic_designate_bsp(DeviceState *d, bool bsp);\n+int apic_get_highest_priority_irr(DeviceState *dev);\n \n /* pc.c */\n DeviceState *cpu_get_current_apic(void);\n",
    "prefixes": [
        "08/14"
    ]
}