Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2233182/?format=api
{ "id": 2233182, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2233182/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260505201905.997996-2-zycai@linux.ibm.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260505201905.997996-2-zycai@linux.ibm.com>", "list_archive_url": null, "date": "2026-05-05T20:18:33", "name": "[v11,01/32] Add boot-certs to s390-ccw-virtio machine type option", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "11b6a80f6eb25a2edcf5bc72b53f0d7bee932c04", "submitter": { "id": 90643, "url": "http://patchwork.ozlabs.org/api/1.2/people/90643/?format=api", "name": "Zhuoying Cai", "email": "zycai@linux.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260505201905.997996-2-zycai@linux.ibm.com/mbox/", "series": [ { "id": 502896, "url": "http://patchwork.ozlabs.org/api/1.2/series/502896/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502896", "date": "2026-05-05T20:18:37", "name": "Secure IPL Support for SCSI Scheme of virtio-blk/virtio-scsi Devices", "version": 11, "mbox": "http://patchwork.ozlabs.org/series/502896/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2233182/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2233182/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=fpOW6gB6;\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=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists1p.gnu.org (lists1p.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 4g98z31dPQz1yJx\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 06:20:47 +1000 (AEST)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wKMEm-0007S9-AK; Tue, 05 May 2026 16:19:24 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.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 1wKMEk-0007Qh-E2; Tue, 05 May 2026 16:19:22 -0400", "from mx0b-001b2d01.pphosted.com ([148.163.158.5])\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 1wKMEh-00007S-Jj; Tue, 05 May 2026 16:19:22 -0400", "from pps.filterd (m0360072.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 645CklHT851433; Tue, 5 May 2026 20:19:12 GMT", "from ppma22.wdc07v.mail.ibm.com\n (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4dw9y4n70k-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Tue, 05 May 2026 20:19:12 +0000 (GMT)", "from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1])\n by ppma22.wdc07v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 645K9Trr029225;\n Tue, 5 May 2026 20:19:11 GMT", "from smtprelay05.wdc07v.mail.ibm.com ([172.16.1.72])\n by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4dwuyw3de6-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Tue, 05 May 2026 20:19:11 +0000 (GMT)", "from smtpav02.wdc07v.mail.ibm.com (smtpav02.wdc07v.mail.ibm.com\n [10.39.53.229])\n by smtprelay05.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 645KJAOq33292916\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Tue, 5 May 2026 20:19:10 GMT", "from smtpav02.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 675A95805B;\n Tue, 5 May 2026 20:19:10 +0000 (GMT)", "from smtpav02.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id BEA0058059;\n Tue, 5 May 2026 20:19:08 +0000 (GMT)", "from fedora-workstation.pok.ibm.com (unknown [9.12.79.241])\n by smtpav02.wdc07v.mail.ibm.com (Postfix) with ESMTP;\n Tue, 5 May 2026 20:19:08 +0000 (GMT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n :content-transfer-encoding:date:from:in-reply-to:message-id\n :mime-version:references:subject:to; s=pp1; bh=FH9YMjs2LnAMmsimA\n Xm7jTSMqCKiAke2Y6vT8NTHwWY=; b=fpOW6gB6IfMZbHM/0lhkUoVHKBrQixewu\n 5Im6zQJfZoMzg3AFBSsJCbRtmQ86gj/BfusCIGsEhjL8/i+XMWUxlRzRjn0DMZ76\n EcfuLCoyvjAAP+i32e3kQZI3Q91pILSJDTSTA7UclXsHS9FQcFCrBsurRylfkpgC\n 4BM+pWDRr6JXDyl+yClhXIcIpKJP1HC+9VJdzjxsHKbGmx7ZwOYfRV6dyoeXlhTH\n HEfiXhe8JsJ6kG+L1VEoBQlTTIGa4ReuoItEpjOkZfTWLpsjQXn7giD1RB7eCJ4S\n OtwJwgXTmnoYyksIyCLOB7rUCX5SahrpdrxfrUE8DXFwlcc7UK7gw==", "From": "Zhuoying Cai <zycai@linux.ibm.com>", "To": "qemu-s390x@nongnu.org, qemu-devel@nongnu.org", "Cc": "jrossi@linux.ibm.com, cohuck@redhat.com, berrange@redhat.com,\n richard.henderson@linaro.org, david@kernel.org, walling@linux.ibm.com,\n jjherne@linux.ibm.com, pasic@linux.ibm.com, borntraeger@linux.ibm.com,\n farman@linux.ibm.com, mjrosato@linux.ibm.com, iii@linux.ibm.com,\n eblake@redhat.com, armbru@redhat.com, zycai@linux.ibm.com,\n alifm@linux.ibm.com, brueckner@linux.ibm.com,\n pierrick.bouvier@oss.qualcomm.com, jdaley@linux.ibm.com", "Subject": "[PATCH v11 01/32] Add boot-certs to s390-ccw-virtio machine type\n option", "Date": "Tue, 5 May 2026 16:18:33 -0400", "Message-ID": "<20260505201905.997996-2-zycai@linux.ibm.com>", "X-Mailer": "git-send-email 2.54.0", "In-Reply-To": "<20260505201905.997996-1-zycai@linux.ibm.com>", "References": "<20260505201905.997996-1-zycai@linux.ibm.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-TM-AS-GCONF": "00", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNTA1MDE5NSBTYWx0ZWRfXxA0xDIhdu4lh\n GvrsPthx9/mtZKA8L0Piay8MCDUGjFX5P56lrUnbNDSmGLStF/t0OzmRG8Bph6FAoFwLsycB8hM\n M4LHmQQAlZQtYN10vsDf9J75K7LYYFrCSj3JE6IIXNAFcQ1A+ZLB9MCgCy9OP2rwrWCrq6UGIzI\n WGSDOICl2yOyrr/8d9/si1sfYMsQjOBtVXophmG56Zmn8L6FGVr/ueRMJspKqJuDPD+X3xLRa2Q\n ahzwEiCcnQN8bF03exKwWhl4x+B2CvkF14RJ2CG/lS6HZ5Uh6F9aPgoPwjM1P0BAP1BmmfXD+gU\n 7663aIlAoAT1Mir5joLUFTUiBWwiSyZOVqJN/WgbYFA8HKoImMofq2WCCbB7CmvPWBxDmTYs7yf\n KWd8jNgG0tvx3o/PPxgW2I+4JlizQDPumncuXVkOr9nJUVJvEbmUtOZ5BCmdTtQM8w8uswRbQ03\n lfkcerrzEBSZr8mCh7w==", "X-Authority-Analysis": "v=2.4 cv=J4GaKgnS c=1 sm=1 tr=0 ts=69fa50c0 cx=c_pps\n a=5BHTudwdYE3Te8bg5FgnPg==:117 a=5BHTudwdYE3Te8bg5FgnPg==:17\n a=NGcC8JguVDcA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=RzCfie-kr_QcCd8fBx8p:22 a=VnNF1IyMAAAA:8 a=20KFwNOVAAAA:8\n a=pOjPfhpiL-oY2_FcObYA:9", "X-Proofpoint-GUID": "CEHvzik0AxH2perrUwje_DZsmb7Q-HkL", "X-Proofpoint-ORIG-GUID": "CEHvzik0AxH2perrUwje_DZsmb7Q-HkL", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-05-05_02,2026-04-30_02,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n impostorscore=0 clxscore=1015 malwarescore=0 bulkscore=0 suspectscore=0\n priorityscore=1501 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2605050195", "Received-SPF": "pass client-ip=148.163.158.5; envelope-from=zycai@linux.ibm.com;\n helo=mx0b-001b2d01.pphosted.com", "X-Spam_score_int": "-26", "X-Spam_score": "-2.7", "X-Spam_bar": "--", "X-Spam_report": "(-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\n RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001,\n 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": "Introduce a new `boot-certs` machine type option for the s390-ccw-virtio\nmachine. This allows users to specify one or more certificate file paths\nor directories to be used during secure boot.\n\nEach entry is specified using the syntax:\n\tboot-certs.<index>.path=/path/to/cert.pem\n\nMultiple paths can be specify using array properties:\n\tboot-certs.0.path=/path/to/cert.pem,\n\tboot-certs.1.path=/path/to/cert-dir,\n\tboot-certs.2.path=/path/to/another-dir...\n\nSigned-off-by: Zhuoying Cai <zycai@linux.ibm.com>\nAcked-by: Markus Armbruster <armbru@redhat.com>\n---\n docs/system/s390x/secure-ipl.rst | 20 ++++++++++++++++++++\n docs/system/target-s390x.rst | 1 +\n hw/s390x/s390-virtio-ccw.c | 30 ++++++++++++++++++++++++++++++\n include/hw/s390x/s390-virtio-ccw.h | 2 ++\n qapi/machine-s390x.json | 23 +++++++++++++++++++++++\n qapi/pragma.json | 1 +\n qemu-options.hx | 6 +++++-\n 7 files changed, 82 insertions(+), 1 deletion(-)\n create mode 100644 docs/system/s390x/secure-ipl.rst", "diff": "diff --git a/docs/system/s390x/secure-ipl.rst b/docs/system/s390x/secure-ipl.rst\nnew file mode 100644\nindex 0000000000..88df52ce2f\n--- /dev/null\n+++ b/docs/system/s390x/secure-ipl.rst\n@@ -0,0 +1,20 @@\n+.. SPDX-License-Identifier: GPL-2.0-or-later\n+\n+Secure IPL Command Line Options\n+-------------------------------\n+\n+The s390-ccw-virtio machine type supports secure IPL. These parameters allow\n+users to provide certificates and enable secure IPL directly via the command\n+line.\n+\n+Providing Certificates\n+^^^^^^^^^^^^^^^^^^^^^^\n+\n+The certificate store can be populated by supplying a list of X.509 certificate\n+file paths or directories containing certificate files on the command-line:\n+\n+Note: certificate files must have a .pem extension.\n+\n+.. code-block:: shell\n+\n+ qemu-system-s390x -machine s390-ccw-virtio,boot-certs.0.path=/.../qemu/certs,boot-certs.1.path=/another/path/cert.pem ...\ndiff --git a/docs/system/target-s390x.rst b/docs/system/target-s390x.rst\nindex 94c981e732..8938a13d10 100644\n--- a/docs/system/target-s390x.rst\n+++ b/docs/system/target-s390x.rst\n@@ -35,3 +35,4 @@ Architectural features\n s390x/bootdevices\n s390x/protvirt\n s390x/cpu-topology\n+ s390x/secure-ipl\ndiff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c\nindex 4d35f9b10b..39adb69cfd 100644\n--- a/hw/s390x/s390-virtio-ccw.c\n+++ b/hw/s390x/s390-virtio-ccw.c\n@@ -44,6 +44,7 @@\n #include \"target/s390x/kvm/pv.h\"\n #include \"migration/blocker.h\"\n #include \"qapi/visitor.h\"\n+#include \"qapi/qapi-visit-machine-s390x.h\"\n #include \"hw/s390x/cpu-topology.h\"\n #include \"kvm/kvm_s390x.h\"\n #include \"hw/virtio/virtio-md-pci.h\"\n@@ -788,6 +789,30 @@ static void machine_set_loadparm(Object *obj, Visitor *v,\n g_free(val);\n }\n \n+static void machine_get_boot_certs(Object *obj, Visitor *v,\n+ const char *name, void *opaque,\n+ Error **errp)\n+{\n+ S390CcwMachineState *ms = S390_CCW_MACHINE(obj);\n+ BootCertificatesList **certs = &ms->boot_certs;\n+\n+ visit_type_BootCertificatesList(v, name, certs, errp);\n+}\n+\n+static void machine_set_boot_certs(Object *obj, Visitor *v, const char *name,\n+ void *opaque, Error **errp)\n+{\n+ S390CcwMachineState *ms = S390_CCW_MACHINE(obj);\n+ BootCertificatesList *cert_list = NULL;\n+\n+ visit_type_BootCertificatesList(v, name, &cert_list, errp);\n+ if (!cert_list) {\n+ return;\n+ }\n+\n+ ms->boot_certs = cert_list;\n+}\n+\n /*\n * S390x-specific global compatibility properties.\n *\n@@ -856,6 +881,11 @@ static void ccw_machine_class_init(ObjectClass *oc, const void *data)\n \"Up to 8 chars in set of [A-Za-z0-9. ] (lower case chars converted\"\n \" to upper case) to pass to machine loader, boot manager,\"\n \" and guest kernel\");\n+\n+ object_class_property_add(oc, \"boot-certs\", \"BootCertificatesList\",\n+ machine_get_boot_certs, machine_set_boot_certs, NULL, NULL);\n+ object_class_property_set_description(oc, \"boot-certs\",\n+ \"provide paths to a directory and/or a certificate file for secure boot\");\n }\n \n static inline void s390_machine_initfn(Object *obj)\ndiff --git a/include/hw/s390x/s390-virtio-ccw.h b/include/hw/s390x/s390-virtio-ccw.h\nindex f1f06119d6..5ad1ea2f24 100644\n--- a/include/hw/s390x/s390-virtio-ccw.h\n+++ b/include/hw/s390x/s390-virtio-ccw.h\n@@ -14,6 +14,7 @@\n #include \"hw/core/boards.h\"\n #include \"qom/object.h\"\n #include \"hw/s390x/sclp.h\"\n+#include \"qapi/qapi-types-machine-s390x.h\"\n \n #define TYPE_S390_CCW_MACHINE \"s390-ccw-machine\"\n \n@@ -31,6 +32,7 @@ struct S390CcwMachineState {\n uint8_t loadparm[8];\n uint64_t memory_limit;\n uint64_t max_pagesize;\n+ BootCertificatesList *boot_certs;\n \n SCLPDevice *sclp;\n };\ndiff --git a/qapi/machine-s390x.json b/qapi/machine-s390x.json\nindex ea430e1b88..bbe3646e91 100644\n--- a/qapi/machine-s390x.json\n+++ b/qapi/machine-s390x.json\n@@ -140,3 +140,26 @@\n { 'event': 'SCLP_CPI_INFO_AVAILABLE',\n 'features': [ 'unstable' ]\n }\n+\n+##\n+# @BootCertificates:\n+#\n+# Boot certificates for secure IPL.\n+#\n+# @path: path to an X.509 certificate file or a directory containing\n+# certificate files.\n+#\n+# Since: 11.1\n+##\n+{ 'struct': 'BootCertificates',\n+ 'data': {'path': 'str'} }\n+\n+##\n+# @DummyBootCertificates:\n+#\n+# Not used by QMP; hack to let us use BootCertificatesList internally.\n+#\n+# Since: 11.1\n+##\n+{ 'struct': 'DummyBootCertificates',\n+ 'data': {'unused-boot-certs': ['BootCertificates'] } }\ndiff --git a/qapi/pragma.json b/qapi/pragma.json\nindex 24aebbe8f5..342cedc42e 100644\n--- a/qapi/pragma.json\n+++ b/qapi/pragma.json\n@@ -49,6 +49,7 @@\n 'DisplayProtocol',\n 'DriveBackupWrapper',\n 'DummyBlockCoreForceArrays',\n+ 'DummyBootCertificates',\n 'DummyForceArrays',\n 'DummyVirtioForceArrays',\n 'HotKeyMod',\ndiff --git a/qemu-options.hx b/qemu-options.hx\nindex 83a3aa9f0b..7f97a0d07e 100644\n--- a/qemu-options.hx\n+++ b/qemu-options.hx\n@@ -45,7 +45,8 @@ DEF(\"machine\", HAS_ARG, QEMU_OPTION_machine, \\\n \" memory-backend='backend-id' specifies explicitly provided backend for main RAM (default=none)\\n\"\n \" cxl-fmw.0.targets.0=firsttarget,cxl-fmw.0.targets.1=secondtarget,cxl-fmw.0.size=size[,cxl-fmw.0.interleave-granularity=granularity]\\n\"\n \" sgx-epc.0.memdev=memid,sgx-epc.0.node=numaid\\n\"\n- \" smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel\\n\",\n+ \" smp-cache.0.cache=cachename,smp-cache.0.topology=topologylevel\\n\"\n+ \" boot-certs.0.path=/path/directory,boot-certs.1.path=/path/file provides paths to a directory and/or a certificate file\\n\",\n QEMU_ARCH_ALL)\n SRST\n ``-machine [type=]name[,prop=value[,...]]``\n@@ -209,6 +210,9 @@ SRST\n ::\n \n -machine smp-cache.0.cache=l1d,smp-cache.0.topology=core,smp-cache.1.cache=l1i,smp-cache.1.topology=core\n+\n+ ``boot-certs.0.path=/path/directory,boot-certs.1.path=/path/file``\n+ Provide paths to a directory and/or a certificate file on the host [s390x only].\n ERST\n \n DEF(\"M\", HAS_ARG, QEMU_OPTION_M,\n", "prefixes": [ "v11", "01/32" ] }