get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 815318,
    "url": "http://patchwork.ozlabs.org/api/patches/815318/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1505807208-9063-3-git-send-email-eric.auger@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": "<1505807208-9063-3-git-send-email-eric.auger@redhat.com>",
    "list_archive_url": null,
    "date": "2017-09-19T07:46:34",
    "name": "[RFC,v4,02/16] linux-headers: Update for virtio-iommu",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f28d091f279c2cef908c106d73e41d7ae8c90343",
    "submitter": {
        "id": 69187,
        "url": "http://patchwork.ozlabs.org/api/people/69187/?format=api",
        "name": "Eric Auger",
        "email": "eric.auger@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1505807208-9063-3-git-send-email-eric.auger@redhat.com/mbox/",
    "series": [
        {
            "id": 3796,
            "url": "http://patchwork.ozlabs.org/api/series/3796/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=3796",
            "date": "2017-09-19T07:46:32",
            "name": "VIRTIO-IOMMU device",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/3796/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/815318/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/815318/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-mx09.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com",
            "ext-mx09.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=eric.auger@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 3xxFPs0QvQz9s7M\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 19 Sep 2017 17:49:21 +1000 (AEST)",
            "from localhost ([::1]:40592 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 1duDHR-00005I-Ho\n\tfor incoming@patchwork.ozlabs.org; Tue, 19 Sep 2017 03:49:17 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:47146)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <eric.auger@redhat.com>) id 1duDFu-0007tN-Ko\n\tfor qemu-devel@nongnu.org; Tue, 19 Sep 2017 03:47:44 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <eric.auger@redhat.com>) id 1duDFt-0000bO-BO\n\tfor qemu-devel@nongnu.org; Tue, 19 Sep 2017 03:47:42 -0400",
            "from mx1.redhat.com ([209.132.183.28]:44828)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <eric.auger@redhat.com>)\n\tid 1duDFn-0000Yv-5e; Tue, 19 Sep 2017 03:47:35 -0400",
            "from smtp.corp.redhat.com\n\t(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])\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 202444A6E9;\n\tTue, 19 Sep 2017 07:47:34 +0000 (UTC)",
            "from localhost.localdomain.com (ovpn-116-197.ams2.redhat.com\n\t[10.36.116.197])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id D41DC61342;\n\tTue, 19 Sep 2017 07:47:22 +0000 (UTC)"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com 202444A6E9",
        "From": "Eric Auger <eric.auger@redhat.com>",
        "To": "eric.auger.pro@gmail.com, eric.auger@redhat.com, peter.maydell@linaro.org,\n\talex.williamson@redhat.com, mst@redhat.com, qemu-arm@nongnu.org,\n\tqemu-devel@nongnu.org, jean-philippe.brucker@arm.com",
        "Date": "Tue, 19 Sep 2017 09:46:34 +0200",
        "Message-Id": "<1505807208-9063-3-git-send-email-eric.auger@redhat.com>",
        "In-Reply-To": "<1505807208-9063-1-git-send-email-eric.auger@redhat.com>",
        "References": "<1505807208-9063-1-git-send-email-eric.auger@redhat.com>",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.11",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.38]);\n\tTue, 19 Sep 2017 07:47:34 +0000 (UTC)",
        "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] [RFC v4 02/16] linux-headers: Update for virtio-iommu",
        "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": "wei@redhat.com, kevin.tian@intel.com, marc.zyngier@arm.com,\n\ttn@semihalf.com, \n\twill.deacon@arm.com, drjones@redhat.com, peterx@redhat.com,\n\tlinuc.decode@gmail.com, bharat.bhushan@nxp.com,\n\tchristoffer.dall@linaro.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 is a partial linux header update against Jean-Philippe's branch:\ngit://linux-arm.org/linux-jpb.git virtio-iommu/v0.4 (unstable)\n\nSigned-off-by: Eric Auger <eric.auger@redhat.com>\n\n---\n\nv3- >v3:\n- upgrade the API from v0.1 to v0.4\n---\n include/standard-headers/linux/virtio_ids.h   |   1 +\n include/standard-headers/linux/virtio_iommu.h | 177 ++++++++++++++++++++++++++\n linux-headers/linux/virtio_iommu.h            |   1 +\n 3 files changed, 179 insertions(+)\n create mode 100644 include/standard-headers/linux/virtio_iommu.h\n create mode 100644 linux-headers/linux/virtio_iommu.h",
    "diff": "diff --git a/include/standard-headers/linux/virtio_ids.h b/include/standard-headers/linux/virtio_ids.h\nindex 6d5c3b2..934ed3d 100644\n--- a/include/standard-headers/linux/virtio_ids.h\n+++ b/include/standard-headers/linux/virtio_ids.h\n@@ -43,5 +43,6 @@\n #define VIRTIO_ID_INPUT        18 /* virtio input */\n #define VIRTIO_ID_VSOCK        19 /* virtio vsock transport */\n #define VIRTIO_ID_CRYPTO       20 /* virtio crypto */\n+#define VIRTIO_ID_IOMMU\t    61216 /* virtio IOMMU (temporary) */\n \n #endif /* _LINUX_VIRTIO_IDS_H */\ndiff --git a/include/standard-headers/linux/virtio_iommu.h b/include/standard-headers/linux/virtio_iommu.h\nnew file mode 100644\nindex 0000000..7f486cf\n--- /dev/null\n+++ b/include/standard-headers/linux/virtio_iommu.h\n@@ -0,0 +1,177 @@\n+/*\n+ * Virtio-iommu definition v0.4\n+ *\n+ * Copyright (C) 2017 ARM Ltd.\n+ *\n+ * This header is BSD licensed so anyone can use the definitions\n+ * to implement compatible drivers/servers:\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are permitted provided that the following conditions\n+ * are met:\n+ * 1. Redistributions of source code must retain the above copyright\n+ *    notice, this list of conditions and the following disclaimer.\n+ * 2. Redistributions in binary form must reproduce the above copyright\n+ *    notice, this list of conditions and the following disclaimer in the\n+ *    documentation and/or other materials provided with the distribution.\n+ * 3. Neither the name of ARM Ltd. nor the names of its contributors\n+ *    may be used to endorse or promote products derived from this software\n+ *    without specific prior written permission.\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL IBM OR\n+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF\n+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\n+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n+ * SUCH DAMAGE.\n+ */\n+#ifndef _LINUX_VIRTIO_IOMMU_H\n+#define _LINUX_VIRTIO_IOMMU_H\n+\n+/* Feature bits */\n+#define VIRTIO_IOMMU_F_INPUT_RANGE\t\t0\n+#define VIRTIO_IOMMU_F_IOASID_BITS\t\t1\n+#define VIRTIO_IOMMU_F_MAP_UNMAP\t\t2\n+#define VIRTIO_IOMMU_F_BYPASS\t\t\t3\n+#define VIRTIO_IOMMU_F_PROBE\t\t\t4\n+\n+struct virtio_iommu_config {\n+\t/* Supported page sizes */\n+\tuint64_t\t\t\t\t\tpage_size_mask;\n+\tstruct virtio_iommu_range {\n+\t\tuint64_t\t\t\t\tstart;\n+\t\tuint64_t\t\t\t\tend;\n+\t} input_range;\n+\tuint8_t \t\t\t\t\tioasid_bits;\n+\tuint8_t\t\t\t\t\tpadding[3];\n+\tuint32_t\t\t\t\t\tprobe_size;\n+} QEMU_PACKED;\n+\n+/* Request types */\n+#define VIRTIO_IOMMU_T_ATTACH\t\t\t0x01\n+#define VIRTIO_IOMMU_T_DETACH\t\t\t0x02\n+#define VIRTIO_IOMMU_T_MAP\t\t\t0x03\n+#define VIRTIO_IOMMU_T_UNMAP\t\t\t0x04\n+#define VIRTIO_IOMMU_T_PROBE\t\t\t0x05\n+\n+/* Status types */\n+#define VIRTIO_IOMMU_S_OK\t\t\t0x00\n+#define VIRTIO_IOMMU_S_IOERR\t\t\t0x01\n+#define VIRTIO_IOMMU_S_UNSUPP\t\t\t0x02\n+#define VIRTIO_IOMMU_S_DEVERR\t\t\t0x03\n+#define VIRTIO_IOMMU_S_INVAL\t\t\t0x04\n+#define VIRTIO_IOMMU_S_RANGE\t\t\t0x05\n+#define VIRTIO_IOMMU_S_NOENT\t\t\t0x06\n+#define VIRTIO_IOMMU_S_FAULT\t\t\t0x07\n+\n+struct virtio_iommu_req_head {\n+\tuint8_t\t\t\t\t\ttype;\n+\tuint8_t\t\t\t\t\treserved[3];\n+} QEMU_PACKED;\n+\n+struct virtio_iommu_req_tail {\n+\tuint8_t\t\t\t\t\tstatus;\n+\tuint8_t\t\t\t\t\treserved[3];\n+} QEMU_PACKED;\n+\n+struct virtio_iommu_req_attach {\n+\tstruct virtio_iommu_req_head\t\thead;\n+\n+\tuint32_t\t\t\t\t\taddress_space;\n+\tuint32_t\t\t\t\t\tdevice;\n+\tuint32_t\t\t\t\t\treserved;\n+\n+\tstruct virtio_iommu_req_tail\t\ttail;\n+} QEMU_PACKED;\n+\n+struct virtio_iommu_req_detach {\n+\tstruct virtio_iommu_req_head\t\thead;\n+\n+\tuint32_t\t\t\t\t\tdevice;\n+\tuint32_t\t\t\t\t\treserved;\n+\n+\tstruct virtio_iommu_req_tail\t\ttail;\n+} QEMU_PACKED;\n+\n+#define VIRTIO_IOMMU_MAP_F_READ\t\t\t(1 << 0)\n+#define VIRTIO_IOMMU_MAP_F_WRITE\t\t(1 << 1)\n+#define VIRTIO_IOMMU_MAP_F_EXEC\t\t\t(1 << 2)\n+\n+#define VIRTIO_IOMMU_MAP_F_MASK\t\t\t(VIRTIO_IOMMU_MAP_F_READ |\t\\\n+\t\t\t\t\t\t VIRTIO_IOMMU_MAP_F_WRITE |\t\\\n+\t\t\t\t\t\t VIRTIO_IOMMU_MAP_F_EXEC)\n+\n+struct virtio_iommu_req_map {\n+\tstruct virtio_iommu_req_head\t\thead;\n+\n+\tuint32_t\t\t\t\t\taddress_space;\n+\tuint64_t\t\t\t\t\tvirt_addr;\n+\tuint64_t\t\t\t\t\tphys_addr;\n+\tuint64_t\t\t\t\t\tsize;\n+\tuint32_t\t\t\t\t\tflags;\n+\n+\tstruct virtio_iommu_req_tail\t\ttail;\n+} QEMU_PACKED;\n+\n+QEMU_PACKED\n+struct virtio_iommu_req_unmap {\n+\tstruct virtio_iommu_req_head\t\thead;\n+\n+\tuint32_t\t\t\t\t\taddress_space;\n+\tuint64_t\t\t\t\t\tvirt_addr;\n+\tuint64_t\t\t\t\t\tsize;\n+\tuint32_t\t\t\t\t\treserved;\n+\n+\tstruct virtio_iommu_req_tail\t\ttail;\n+} QEMU_PACKED;\n+\n+#define VIRTIO_IOMMU_PROBE_RESV_MEM_T_ABORT\t0\n+#define VIRTIO_IOMMU_PROBE_RESV_MEM_T_BYPASS\t1\n+\n+#define VIRTIO_IOMMU_PROBE_RESV_MEM_F_MSI\t(1 << 0)\n+\n+struct virtio_iommu_probe_resv_mem {\n+\tuint8_t\t\t\t\t\tsubtype;\n+\tuint8_t\t\t\t\t\treserved[3];\n+\tuint64_t\t\t\t\t\taddr;\n+\tuint64_t\t\t\t\t\tsize;\n+\tuint32_t\t\t\t\t\tflags;\n+} QEMU_PACKED;\n+\n+#define VIRTIO_IOMMU_PROBE_T_NONE\t\t0\n+#define VIRTIO_IOMMU_PROBE_T_RESV_MEM\t\t2\n+\n+#define VIRTIO_IOMMU_PROBE_T_MASK\t\t0xfff\n+\n+struct virtio_iommu_probe_property {\n+\tuint16_t\t\t\t\t\ttype;\n+\tuint16_t\t\t\t\t\tlength;\n+\tuint8_t\t\t\t\t\tvalue[];\n+} QEMU_PACKED;\n+\n+struct virtio_iommu_req_probe {\n+\tstruct virtio_iommu_req_head\t\thead;\n+\tuint32_t\t\t\t\t\tdevice;\n+\tuint8_t\t\t\t\t\treserved[64];\n+\n+\tuint8_t\t\t\t\t\tproperties[];\n+\n+\t/* Tail follows the variable-length properties array (no padding) */\n+} QEMU_PACKED;\n+\n+union virtio_iommu_req {\n+\tstruct virtio_iommu_req_head\t\thead;\n+\n+\tstruct virtio_iommu_req_attach\t\tattach;\n+\tstruct virtio_iommu_req_detach\t\tdetach;\n+\tstruct virtio_iommu_req_map\t\tmap;\n+\tstruct virtio_iommu_req_unmap\t\tunmap;\n+\tstruct virtio_iommu_req_probe\t\tprobe;\n+};\n+\n+#endif\ndiff --git a/linux-headers/linux/virtio_iommu.h b/linux-headers/linux/virtio_iommu.h\nnew file mode 100644\nindex 0000000..2dc4609\n--- /dev/null\n+++ b/linux-headers/linux/virtio_iommu.h\n@@ -0,0 +1 @@\n+#include \"standard-headers/linux/virtio_iommu.h\"\n",
    "prefixes": [
        "RFC",
        "v4",
        "02/16"
    ]
}