get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196080,
    "url": "http://patchwork.ozlabs.org/api/patches/2196080/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260212204352.1044699-31-zycai@linux.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": "<20260212204352.1044699-31-zycai@linux.ibm.com>",
    "list_archive_url": null,
    "date": "2026-02-12T20:43:51",
    "name": "[v8,30/30] docs/system/s390x: Add secure IPL documentation",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "348ad816e2c9368a247691361ce451f65a7f39f0",
    "submitter": {
        "id": 90643,
        "url": "http://patchwork.ozlabs.org/api/people/90643/?format=api",
        "name": "Zhuoying Cai",
        "email": "zycai@linux.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260212204352.1044699-31-zycai@linux.ibm.com/mbox/",
    "series": [
        {
            "id": 492021,
            "url": "http://patchwork.ozlabs.org/api/series/492021/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=492021",
            "date": "2026-02-12T20:43:36",
            "name": "Secure IPL Support for SCSI Scheme of virtio-blk/virtio-scsi Devices",
            "version": 8,
            "mbox": "http://patchwork.ozlabs.org/series/492021/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196080/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196080/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@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=biM9d47c;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fBnQB2wnFz1xr1\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 07:46:10 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vqdZT-0002h0-Kb; Thu, 12 Feb 2026 15:45:55 -0500",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <zycai@linux.ibm.com>)\n id 1vqdYw-0002EL-Tc; Thu, 12 Feb 2026 15:45:25 -0500",
            "from mx0a-001b2d01.pphosted.com ([148.163.156.1])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <zycai@linux.ibm.com>)\n id 1vqdYu-0008Sw-1F; Thu, 12 Feb 2026 15:45:21 -0500",
            "from pps.filterd (m0353729.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 61CIgSiw614323; Thu, 12 Feb 2026 20:44:56 GMT",
            "from ppma12.dal12v.mail.ibm.com\n (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4c696wg4nr-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Thu, 12 Feb 2026 20:44:55 +0000 (GMT)",
            "from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1])\n by ppma12.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 61CKOVNH002635;\n Thu, 12 Feb 2026 20:44:54 GMT",
            "from smtprelay01.wdc07v.mail.ibm.com ([172.16.1.68])\n by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4c6fqsvbm8-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Thu, 12 Feb 2026 20:44:54 +0000",
            "from smtpav06.wdc07v.mail.ibm.com (smtpav06.wdc07v.mail.ibm.com\n [10.39.53.233])\n by smtprelay01.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 61CKirVF6161300\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Thu, 12 Feb 2026 20:44:53 GMT",
            "from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 2F6C95804E;\n Thu, 12 Feb 2026 20:44:53 +0000 (GMT)",
            "from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 6652B58055;\n Thu, 12 Feb 2026 20:44:51 +0000 (GMT)",
            "from fedora-workstation.ibmuc.com (unknown [9.61.112.15])\n by smtpav06.wdc07v.mail.ibm.com (Postfix) with ESMTP;\n Thu, 12 Feb 2026 20:44:51 +0000 (GMT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n :content-transfer-encoding:content-type:date:from:in-reply-to\n :message-id:mime-version:references:subject:to; s=pp1; bh=zaXDu5\n DpObVlZa+FNBZGuDoaTnzJp2jjR6DJXl1CWK0=; b=biM9d47cjd0AUU/CrqKKG6\n ueNdCM7iYKwef9j8GRYyeocEc/2cDn70WmRVKJl7peGCrmL04MikrNyqlYMD+Eqg\n w2ppifrK8TuR4X99Kq9/C442EKSMToZ7awO2Di1krQwH3VBs8FuLr4Q6dX6bRE0c\n Alcfw2uijzxYlDkdq9qYfA6rfSCUjCYPsDqVBNZfK9h0kGXUpXm81qTeLlV3EEQR\n EHKFky03vqzcF6VUiyUffOed5tjaYfxtp/Rponya5xpxLvIg8n9KdaGFgKaqf4v0\n yWiZd43OxlW1et69RMQcA1G5yiNFUtA7Z5BfIlGVjJAgV6iS4sfiWv7lYhopMvUw\n ==",
        "From": "Zhuoying Cai <zycai@linux.ibm.com>",
        "To": "thuth@redhat.com, berrange@redhat.com, richard.henderson@linaro.org,\n jrossi@linux.ibm.com, qemu-s390x@nongnu.org, qemu-devel@nongnu.org",
        "Cc": "david@kernel.org, walling@linux.ibm.com, jjherne@linux.ibm.com,\n pasic@linux.ibm.com, borntraeger@linux.ibm.com, farman@linux.ibm.com,\n mjrosato@linux.ibm.com, iii@linux.ibm.com, eblake@redhat.com,\n armbru@redhat.com, zycai@linux.ibm.com, alifm@linux.ibm.com,\n brueckner@linux.ibm.com",
        "Subject": "[PATCH v8 30/30] docs/system/s390x: Add secure IPL documentation",
        "Date": "Thu, 12 Feb 2026 15:43:51 -0500",
        "Message-ID": "<20260212204352.1044699-31-zycai@linux.ibm.com>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<20260212204352.1044699-1-zycai@linux.ibm.com>",
        "References": "<20260212204352.1044699-1-zycai@linux.ibm.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-TM-AS-GCONF": "00",
        "X-Authority-Analysis": "v=2.4 cv=YeCwJgRf c=1 sm=1 tr=0 ts=698e3bc7 cx=c_pps\n a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17\n a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22\n a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=VnNF1IyMAAAA:8\n a=q5T4S90kAAAA:8 a=pLVlpZFyWxzbV8Ps1vQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10\n a=LnBBZQxPVJ0Z7KJyRdxh:22",
        "X-Proofpoint-GUID": "Xsy7SStnkRPBDnbD1GSCW0gE7PfNpoHC",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMjEyMDE1NyBTYWx0ZWRfXyUkp4DRW2F4t\n H41S3o/kWdwHzudDzH6OEZrsoeETi2fbbCb+v8uH6ihikRxMBaQxjPyJOAYsuHO7qFyAIhIqtDU\n WaiPLw9Q6Mtp3b/Oia34buTqwCWICoSu8juhJGgUrxmRMtO+7s5fuiGYm2Qp5WGmxlope2pcM1m\n Llmuz5jW9wxosm1XvHdWhgCbfIFzw0XlGHjKrBunray3xcn/45fTRhdUdbqnR/VpKFQ4+6c9gnP\n EwM1OD/DvrSqt/bodfnuptdPW9YFpNWNy61RJSTahkcC5B94GPW5KY+IMiBNLMyeQDa4h8iatOZ\n hidBsF5X/rnrj7uiJPfZH6Th9kKqsJY6G/4byov0QQTR8HKGKSIBIjAIuuGyFqMf1mQXNcZ54FM\n H0eeds1TB2IwkIK7IRLYWgWo4nD+nHpvFv5a4vuNAjucSP/kuY4REIY3uNHENQ2+4nqujPoDKnS\n oz0qF892EoYgBSKRUCg==",
        "X-Proofpoint-ORIG-GUID": "Xsy7SStnkRPBDnbD1GSCW0gE7PfNpoHC",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-02-12_05,2026-02-12_03,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n suspectscore=0 adultscore=0 bulkscore=0 malwarescore=0 phishscore=0\n priorityscore=1501 lowpriorityscore=0 clxscore=1015 impostorscore=0\n spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound\n adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000\n definitions=main-2602120157",
        "Received-SPF": "pass client-ip=148.163.156.1; envelope-from=zycai@linux.ibm.com;\n helo=mx0a-001b2d01.pphosted.com",
        "X-Spam_score_int": "-19",
        "X-Spam_score": "-2.0",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001,\n RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://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 <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "Add documentation for secure IPL\n\nSigned-off-by: Collin Walling <walling@linux.ibm.com>\nSigned-off-by: Zhuoying Cai <zycai@linux.ibm.com>\n---\n docs/system/s390x/secure-ipl.rst | 96 ++++++++++++++++++++++++++++++++\n 1 file changed, 96 insertions(+)",
    "diff": "diff --git a/docs/system/s390x/secure-ipl.rst b/docs/system/s390x/secure-ipl.rst\nindex e0af086c38..275aa422c7 100644\n--- a/docs/system/s390x/secure-ipl.rst\n+++ b/docs/system/s390x/secure-ipl.rst\n@@ -1,5 +1,21 @@\n .. SPDX-License-Identifier: GPL-2.0-or-later\n \n+s390 Secure IPL\n+===============\n+\n+Secure IPL, also known as secure boot, enables s390-ccw virtual machines to\n+verify the integrity of guest kernels.\n+\n+For technical details of this feature, see ``docs/specs/s390x-secure-ipl.rst``.\n+\n+This document explains how to use secure IPL with s390x in QEMU. It covers\n+new command line options for providing certificates and enabling secure IPL,\n+the different IPL modes (Normal, Audit, and Secure), and system requirements.\n+\n+A quickstart guide is provided to demonstrate how to generate certificates,\n+sign images, and start a guest in Secure Mode.\n+\n+\n Secure IPL Command Line Options\n ===============================\n \n@@ -78,3 +94,83 @@ Configuration:\n .. code-block:: shell\n \n     qemu-system-s390x -machine s390-ccw-virtio,secure-boot=on,boot-certs.0.path=/.../qemu/certs,boot-certs.1.path=/another/path/cert.pem ...\n+\n+\n+Constraints\n+===========\n+\n+The following constraints apply when attempting to secure IPL an s390 guest:\n+\n+- z16 or \"qemu\" CPU model\n+- certificates must be in X.509 PEM format\n+- only support for SCSI scheme of virtio-blk/virtio-scsi devices\n+- a boot device must be specified\n+- any unsupported devices (e.g., ECKD and VFIO) or non-eligible devices (e.g.,\n+  network) will cause the entire boot process terminating early with an error\n+  logged to the console.\n+\n+\n+Secure IPL Quickstart\n+=====================\n+\n+Build QEMU with gnutls enabled\n+-------------------------------\n+\n+.. code-block:: shell\n+\n+    ./configure … --enable-gnutls\n+\n+Generate certificate (e.g. via certtool)\n+----------------------------------------\n+\n+A private key is required before generating a certificate. This key must be kept\n+secure and confidential.\n+\n+Use an RSA private key for signing.\n+\n+.. code-block:: shell\n+\n+    certtool --generate-privkey > key.pem\n+\n+A self-signed certificate requires the organization name. Use the ``cert.info``\n+template to pre-fill values and avoid interactive prompts from certtool.\n+\n+.. code-block:: shell\n+\n+    cat > cert.info <<EOF\n+    cn = \"My Name\"\n+    expiration_days = 36500\n+    cert_signing_key\n+    EOF\n+\n+    certtool --generate-self-signed \\\n+             --load-privkey key.pem \\\n+             --template cert.info \\\n+             --hash=SHA256 \\\n+             --outfile cert.pem\n+\n+Sign Images (e.g. via sign-file)\n+--------------------------------\n+\n+- signing must be performed on a KVM guest filesystem\n+- sign-file script used in the example below is located within the kernel source\n+  repo\n+\n+.. code-block:: shell\n+\n+    ./sign-file sha256 key.pem cert.pem /boot/vmlinuz-…\n+    ./sign-file sha256 key.pem cert.pem /usr/lib/s390-tools/stage3.bin\n+\n+Run zipl with secure boot enabled\n+---------------------------------\n+\n+.. code-block:: shell\n+\n+    zipl --secure 1 -V\n+\n+Command line options for starting the guest\n+----------------------------\n+\n+.. code-block:: shell\n+\n+    qemu-system-s390x -machine s390-ccw-virtio,secure-boot=on,boot-certs.0.path=cert.pem ...\n",
    "prefixes": [
        "v8",
        "30/30"
    ]
}