get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 810068,
    "url": "http://patchwork.ozlabs.org/api/patches/810068/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1504606380-49341-3-git-send-email-zyimin@linux.vnet.ibm.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": "<1504606380-49341-3-git-send-email-zyimin@linux.vnet.ibm.com>",
    "list_archive_url": null,
    "date": "2017-09-05T10:12:59",
    "name": "[v3,2/3] s390x/pci: fixup ind_offset of msix routing entry",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "15cf6144f8b977c90a57f9b0e1485faef6daea7f",
    "submitter": {
        "id": 66807,
        "url": "http://patchwork.ozlabs.org/api/people/66807/?format=api",
        "name": "Yi Min Zhao",
        "email": "zyimin@linux.vnet.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1504606380-49341-3-git-send-email-zyimin@linux.vnet.ibm.com/mbox/",
    "series": [
        {
            "id": 1541,
            "url": "http://patchwork.ozlabs.org/api/series/1541/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=1541",
            "date": "2017-09-05T10:12:57",
            "name": "three zpci patches",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/1541/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/810068/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/810068/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 3xmjKf6H3sz9s9Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  5 Sep 2017 20:16:06 +1000 (AEST)",
            "from localhost ([::1]:57931 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 1dpAto-0000EF-9H\n\tfor incoming@patchwork.ozlabs.org; Tue, 05 Sep 2017 06:16:04 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:44220)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <zyimin@linux.vnet.ibm.com>) id 1dpArE-0006ac-20\n\tfor qemu-devel@nongnu.org; Tue, 05 Sep 2017 06:13:28 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <zyimin@linux.vnet.ibm.com>) id 1dpAr9-0003bb-BA\n\tfor qemu-devel@nongnu.org; Tue, 05 Sep 2017 06:13:24 -0400",
            "from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51114)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <zyimin@linux.vnet.ibm.com>)\n\tid 1dpAr9-0003b1-3N\n\tfor qemu-devel@nongnu.org; Tue, 05 Sep 2017 06:13:19 -0400",
            "from pps.filterd (m0098410.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv85AAFBE022547\n\tfor <qemu-devel@nongnu.org>; Tue, 5 Sep 2017 06:13:18 -0400",
            "from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2csq84htfe-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <qemu-devel@nongnu.org>; Tue, 05 Sep 2017 06:13:17 -0400",
            "from localhost\n\tby e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <qemu-devel@nongnu.org> from <zyimin@linux.vnet.ibm.com>;\n\tTue, 5 Sep 2017 20:13:15 +1000",
            "from d23relay07.au.ibm.com (202.81.31.226)\n\tby e23smtp08.au.ibm.com (202.81.31.205) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tTue, 5 Sep 2017 20:13:14 +1000",
            "from d23av05.au.ibm.com (d23av05.au.ibm.com [9.190.234.119])\n\tby d23relay07.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n\tv85ADDt042270922\n\tfor <qemu-devel@nongnu.org>; Tue, 5 Sep 2017 20:13:13 +1000",
            "from d23av05.au.ibm.com (localhost [127.0.0.1])\n\tby d23av05.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id\n\tv85ADD95011966\n\tfor <qemu-devel@nongnu.org>; Tue, 5 Sep 2017 20:13:13 +1000",
            "from r35lp25.boeblingen.de.ibm.com (r35lp25.boeblingen.de.ibm.com\n\t[9.152.111.25])\n\tby d23av05.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id\n\tv85AD28Z011694; Tue, 5 Sep 2017 20:13:10 +1000"
        ],
        "From": "Yi Min Zhao <zyimin@linux.vnet.ibm.com>",
        "To": "qemu-devel@nongnu.org",
        "Date": "Tue,  5 Sep 2017 12:12:59 +0200",
        "X-Mailer": "git-send-email 2.3.0",
        "In-Reply-To": "<1504606380-49341-1-git-send-email-zyimin@linux.vnet.ibm.com>",
        "References": "<1504606380-49341-1-git-send-email-zyimin@linux.vnet.ibm.com>",
        "X-TM-AS-MML": "disable",
        "x-cbid": "17090510-0048-0000-0000-0000025AD729",
        "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused",
        "x-cbparentid": "17090510-0049-0000-0000-0000480F334C",
        "Message-Id": "<1504606380-49341-3-git-send-email-zyimin@linux.vnet.ibm.com>",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-09-05_05:, , signatures=0",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=1\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000\n\tdefinitions=main-1709050158",
        "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy]",
        "X-Received-From": "148.163.156.1",
        "Subject": "[Qemu-devel] [PATCH v3 2/3] s390x/pci: fixup ind_offset of msix\n\trouting entry",
        "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": "pasic@linux.vnet.ibm.com, zyimin@linux.vnet.ibm.com,\n\trichard.henderson@linaro.org, cohuck@redhat.com,\n\tpmorel@linux.vnet.ibm.com, agraf@suse.de, borntraeger@de.ibm.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": "The guest uses the mpcifc instruction to register the aibvo of a zpci\ndevice, which is the starting offset of indicators in the indicator\narea and thus remains constant. Each msix vector is an offset from the\naibvo. When we map a msix route to an adapter route, we should not\nmodify the starting offset, but instead add the vector to the starting\noffset to get the absolute offset in the specific route.\n\nSigned-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>\n---\n target/s390x/kvm.c | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)",
    "diff": "diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c\nindex ebbeb4d6b3..931b85fe3d 100644\n--- a/target/s390x/kvm.c\n+++ b/target/s390x/kvm.c\n@@ -2546,14 +2546,12 @@ int kvm_arch_fixup_msi_route(struct kvm_irq_routing_entry *route,\n         return -ENODEV;\n     }\n \n-    pbdev->routes.adapter.ind_offset = vec;\n-\n     route->type = KVM_IRQ_ROUTING_S390_ADAPTER;\n     route->flags = 0;\n     route->u.adapter.summary_addr = pbdev->routes.adapter.summary_addr;\n     route->u.adapter.ind_addr = pbdev->routes.adapter.ind_addr;\n     route->u.adapter.summary_offset = pbdev->routes.adapter.summary_offset;\n-    route->u.adapter.ind_offset = pbdev->routes.adapter.ind_offset;\n+    route->u.adapter.ind_offset = pbdev->routes.adapter.ind_offset + vec;\n     route->u.adapter.adapter_id = pbdev->routes.adapter.adapter_id;\n     return 0;\n }\n",
    "prefixes": [
        "v3",
        "2/3"
    ]
}