Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2196077/?format=api
{ "id": 2196077, "url": "http://patchwork.ozlabs.org/api/patches/2196077/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260212204352.1044699-22-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-22-zycai@linux.ibm.com>", "list_archive_url": null, "date": "2026-02-12T20:43:42", "name": "[v8,21/30] s390x: Guest support for Secure-IPL Code Loading Attributes Facility (SCLAF)", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "88a4e2ab23f286370a1741a8eed52126cfdd83b1", "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-22-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/2196077/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2196077/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=bVOswzQh;\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 4fBnPs2khxz1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 07:45:53 +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 1vqdYL-00010J-PO; Thu, 12 Feb 2026 15:44:45 -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 1vqdYK-0000xF-1M; Thu, 12 Feb 2026 15:44:44 -0500", "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 1vqdYH-00080g-PW; Thu, 12 Feb 2026 15:44:43 -0500", "from pps.filterd (m0353725.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 61CHnff81643490; Thu, 12 Feb 2026 20:44:38 GMT", "from ppma23.wdc07v.mail.ibm.com\n (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4c696vd8st-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Thu, 12 Feb 2026 20:44:38 +0000 (GMT)", "from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1])\n by ppma23.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 61CHR36q012610;\n Thu, 12 Feb 2026 20:44:37 GMT", "from smtprelay03.dal12v.mail.ibm.com ([172.16.1.5])\n by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4c6h7km15e-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Thu, 12 Feb 2026 20:44:37 +0000", "from smtpav06.wdc07v.mail.ibm.com (smtpav06.wdc07v.mail.ibm.com\n [10.39.53.233])\n by smtprelay03.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 61CKiZ7W4391574\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Thu, 12 Feb 2026 20:44:36 GMT", "from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id B3AD65804E;\n Thu, 12 Feb 2026 20:44:35 +0000 (GMT)", "from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 0797458054;\n Thu, 12 Feb 2026 20:44:34 +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:33 +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=UE3W7OYoOfjIHh83E\n khZ/lOh2ed9HzDi4N7kuNWGf24=; b=bVOswzQh0qpZHVcvs/ckz9apFwpbhSB35\n fqpp061XtP/6Pe0YBaj7tX32Y1Bim+9XueuGnOKDpohNLc3rOecvXadzJSdzqhpm\n 79kVwFlXHYzlsJXezwJ1OUa/T68lOplb524Xu8Mc9cQBNs7aHB89BZc5mJ5VpHP9\n apqNRhg+IYsSo7JyT4KexkmbsQv8QR3JmjWGjT02PSxiUuU1K2SMISbcG3TJbhs3\n jlVZDyeAeDRqqkTikaXA+EpfPKIU0UxyLQMDmCigLZ5fTZyZZ502IZvsplXTGyHZ\n /kAU+YqSLJwEno0kopTIR0QmBnx4Dhv9JaAZBrGHvnCYAu3StqesA==", "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 21/30] s390x: Guest support for Secure-IPL Code Loading\n Attributes Facility (SCLAF)", "Date": "Thu, 12 Feb 2026 15:43:42 -0500", "Message-ID": "<20260212204352.1044699-22-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-Transfer-Encoding": "8bit", "X-TM-AS-GCONF": "00", "X-Proofpoint-GUID": "4mfN52PVZLvTmxBoIVK1MNM38gq1jx9u", "X-Proofpoint-ORIG-GUID": "4mfN52PVZLvTmxBoIVK1MNM38gq1jx9u", "X-Authority-Analysis": "v=2.4 cv=JdWxbEKV c=1 sm=1 tr=0 ts=698e3bb6 cx=c_pps\n a=3Bg1Hr4SwmMryq2xdFQyZA==:117 a=3Bg1Hr4SwmMryq2xdFQyZA==:17\n a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22\n a=GgsMoib0sEa3-_RKJdDe:22 a=VnNF1IyMAAAA:8 a=s2GHSiDfQs-ooOV4uGMA:9", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMjEyMDE1NyBTYWx0ZWRfXzFNq8pgsfO2h\n +I4ZiSpovnPhL06BQtbXlMlR1HJwI/6O/PULt2jWp9RAa2Ttx2WF0mkgihHg/JfDGghSAoEWE1b\n E2kDXexcYG0gw0gTwFPycI7Ma068IKFzNdmibHjpPPZjOLamg9YqSAX0kjkvZQClZozHJmmM809\n 2kUDhYFYzNX8gbsI/fppgqzjbahnooH2gckOs973mZ5ndVE+X6j0KXrJ4CPiO7hf26J0IoC9Adg\n oP49R+8SfSViOGTFeBRHWIV/q6l9c3up0rK4ztHhccFDlq+EDjxoegTzjTt/Pa2W8lzxT8S8Qye\n 5lLOL/OiUpHxXmf+meNCFtLaHDDcT3rwLMOw4y9+yUz+HOsTrCIw+CcMw4a5IboLRhGazzFhrMz\n Y103uuwk4i55QAnLFPylUIgsif4E7Fl91+uN1E4PmBFh2dDL0SDR7xN7h7KC44TodfNDAvTmKCZ\n QaTQnULh0T26lV2DjeA==", "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 priorityscore=1501 clxscore=1015 impostorscore=0 bulkscore=0\n lowpriorityscore=0 suspectscore=0 adultscore=0 spamscore=0 malwarescore=0\n phishscore=0 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000\n definitions=main-2602120157", "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,\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": "The secure-IPL-code-loading-attributes facility (SCLAF)\nprovides additional security during secure IPL.\n\nAvailability of SCLAF is determined by byte 136 bit 3 of the\nSCLP Read Info block.\n\nThis feature is available starting with the gen16 CPU model.\n\nSigned-off-by: Zhuoying Cai <zycai@linux.ibm.com>\nReviewed-by: Collin Walling <walling@linux.ibm.com>\n---\n docs/specs/s390x-secure-ipl.rst | 19 +++++++++++++++++++\n target/s390x/cpu_features.c | 2 ++\n target/s390x/cpu_features_def.h.inc | 1 +\n target/s390x/cpu_models.c | 3 +++\n target/s390x/gen-features.c | 2 ++\n target/s390x/kvm/kvm.c | 1 +\n 6 files changed, 28 insertions(+)", "diff": "diff --git a/docs/specs/s390x-secure-ipl.rst b/docs/specs/s390x-secure-ipl.rst\nindex 82dd8b847a..e7a93806f6 100644\n--- a/docs/specs/s390x-secure-ipl.rst\n+++ b/docs/specs/s390x-secure-ipl.rst\n@@ -109,3 +109,22 @@ operations such as:\n \n The guest's kernel inspects the IIRB and uses the certificate data it contains\n to build the keyring.\n+\n+\n+Secure Code Loading Attributes Facility\n+---------------------------------\n+\n+The Secure Code Loading Attributes Facility (SCLAF) enhances system security\n+during the IPL by enforcing additional verification rules.\n+\n+When SCLAF is available, its behavior depends on the IPL mode. It introduces\n+verification of both signed and unsigned components to help ensure that only\n+authorized code is loaded during the IPL process. Any errors detected by SCLAF\n+are reported in the IIRB.\n+\n+Unsigned components are restricted to load addresses at or above absolute\n+storage address ``0x2000``.\n+\n+Signed components must include a Secure Code Loading Attribute Block (SCLAB),\n+which is appended at the very end of the component. The SCLAB defines security\n+attributes for handling the signed code.\ndiff --git a/target/s390x/cpu_features.c b/target/s390x/cpu_features.c\nindex 200bd8c15b..29ea3bfec2 100644\n--- a/target/s390x/cpu_features.c\n+++ b/target/s390x/cpu_features.c\n@@ -120,6 +120,7 @@ void s390_fill_feat_block(const S390FeatBitmap features, S390FeatType type,\n * - All SIE facilities because SIE is not available\n * - DIAG318\n * - Secure IPL Facility\n+ * - Secure IPL Code Loading Attributes Facility\n *\n * As VMs can move in and out of protected mode the CPU model\n * doesn't protect us from that problem because it is only\n@@ -152,6 +153,7 @@ void s390_fill_feat_block(const S390FeatBitmap features, S390FeatType type,\n break;\n case S390_FEAT_TYPE_SCLP_FAC_IPL:\n clear_be_bit(s390_feat_def(S390_FEAT_SIPL)->bit, data);\n+ clear_be_bit(s390_feat_def(S390_FEAT_SCLAF)->bit, data);\n break;\n default:\n return;\ndiff --git a/target/s390x/cpu_features_def.h.inc b/target/s390x/cpu_features_def.h.inc\nindex bcf8a666e4..f6ba9e87e1 100644\n--- a/target/s390x/cpu_features_def.h.inc\n+++ b/target/s390x/cpu_features_def.h.inc\n@@ -142,6 +142,7 @@ DEF_FEAT(CERT_STORE, \"cstore\", SCLP_FAC134, 5, \"Certificate Store functions\")\n \n /* Features exposed via SCLP SCCB Facilities byte 136 - 137 (bit numbers relative to byte-136) */\n DEF_FEAT(SIPL, \"sipl\", SCLP_FAC_IPL, 1, \"Secure-IPL facility\")\n+DEF_FEAT(SCLAF, \"sclaf\", SCLP_FAC_IPL, 3, \"Secure-IPL-code-loading-attributes facility\")\n \n /* Features exposed via SCLP CPU info. */\n DEF_FEAT(SIE_F2, \"sief2\", SCLP_CPU, 4, \"SIE: interception format 2 (Virtual SIE)\")\ndiff --git a/target/s390x/cpu_models.c b/target/s390x/cpu_models.c\nindex f99536ef9a..7d214b5f72 100644\n--- a/target/s390x/cpu_models.c\n+++ b/target/s390x/cpu_models.c\n@@ -264,6 +264,7 @@ bool s390_has_feat(S390Feat feat)\n case S390_FEAT_SIE_PFMFI:\n case S390_FEAT_SIE_IBS:\n case S390_FEAT_SIPL:\n+ case S390_FEAT_SCLAF:\n case S390_FEAT_CONFIGURATION_TOPOLOGY:\n return false;\n break;\n@@ -509,6 +510,8 @@ static void check_consistency(const S390CPUModel *model)\n { S390_FEAT_DIAG_318, S390_FEAT_EXTENDED_LENGTH_SCCB },\n { S390_FEAT_CERT_STORE, S390_FEAT_EXTENDED_LENGTH_SCCB },\n { S390_FEAT_SIPL, S390_FEAT_EXTENDED_LENGTH_SCCB },\n+ { S390_FEAT_SCLAF, S390_FEAT_EXTENDED_LENGTH_SCCB },\n+ { S390_FEAT_SCLAF, S390_FEAT_SIPL },\n { S390_FEAT_NNPA, S390_FEAT_VECTOR },\n { S390_FEAT_RDP, S390_FEAT_LOCAL_TLB_CLEARING },\n { S390_FEAT_UV_FEAT_AP, S390_FEAT_AP },\ndiff --git a/target/s390x/gen-features.c b/target/s390x/gen-features.c\nindex bd2060ab93..c3e0c6ceff 100644\n--- a/target/s390x/gen-features.c\n+++ b/target/s390x/gen-features.c\n@@ -722,6 +722,7 @@ static uint16_t full_GEN16_GA1[] = {\n S390_FEAT_UV_FEAT_AP_INTR,\n S390_FEAT_CERT_STORE,\n S390_FEAT_SIPL,\n+ S390_FEAT_SCLAF,\n };\n \n static uint16_t full_GEN17_GA1[] = {\n@@ -924,6 +925,7 @@ static uint16_t qemu_MAX[] = {\n S390_FEAT_EXTENDED_LENGTH_SCCB,\n S390_FEAT_CERT_STORE,\n S390_FEAT_SIPL,\n+ S390_FEAT_SCLAF,\n };\n \n /****** END FEATURE DEFS ******/\ndiff --git a/target/s390x/kvm/kvm.c b/target/s390x/kvm/kvm.c\nindex 11b0740c1b..85db8b4172 100644\n--- a/target/s390x/kvm/kvm.c\n+++ b/target/s390x/kvm/kvm.c\n@@ -2522,6 +2522,7 @@ bool kvm_s390_get_host_cpu_model(S390CPUModel *model, Error **errp)\n \n /* Some Secure IPL facilities are emulated by QEMU */\n set_bit(S390_FEAT_SIPL, model->features);\n+ set_bit(S390_FEAT_SCLAF, model->features);\n \n /* Test for Ultravisor features that influence secure guest behavior */\n query_uv_feat_guest(model->features);\n", "prefixes": [ "v8", "21/30" ] }