get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196101,
    "url": "http://patchwork.ozlabs.org/api/patches/2196101/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260212204352.1044699-17-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-17-zycai@linux.ibm.com>",
    "list_archive_url": null,
    "date": "2026-02-12T20:43:37",
    "name": "[v8,16/30] s390x: Guest support for Secure-IPL Facility",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "1c548810eda8cb6f319a246561c45f85832063ff",
    "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-17-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/2196101/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196101/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=JNIDaKDP;\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 4fBnSh74kyz1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 07:48:20 +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 1vqdYD-0000s4-95; Thu, 12 Feb 2026 15:44:37 -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 1vqdYB-0000oZ-5O; Thu, 12 Feb 2026 15:44:35 -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 1vqdY9-0007kr-At; Thu, 12 Feb 2026 15:44:34 -0500",
            "from pps.filterd (m0356517.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 61CH3Wwc192099; Thu, 12 Feb 2026 20:44:29 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 4c696ur4cw-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Thu, 12 Feb 2026 20:44:29 +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 61CHxo68012616;\n Thu, 12 Feb 2026 20:44:28 GMT",
            "from smtprelay07.dal12v.mail.ibm.com ([172.16.1.9])\n by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4c6h7km14w-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Thu, 12 Feb 2026 20:44:28 +0000",
            "from smtpav06.wdc07v.mail.ibm.com (smtpav06.wdc07v.mail.ibm.com\n [10.39.53.233])\n by smtprelay07.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 61CKiQ7D30737066\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Thu, 12 Feb 2026 20:44:26 GMT",
            "from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 3477258054;\n Thu, 12 Feb 2026 20:44:26 +0000 (GMT)",
            "from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 5AD2958060;\n Thu, 12 Feb 2026 20:44:24 +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:24 +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=VcXg+pSpQNFOM/Iyf\n wDzRYewf8TiEzKlQsE2ojvuEkw=; b=JNIDaKDPZG+iNiQAP1EFyyRH3FJPjo0p5\n 3wabAu8CUThbSeWJdua0HwSMQ/A2jscqfpUjhyC6cpA8DcLI2302yN4EU3xL+Vaa\n 5fW5+96w3r5FAvF85Tf3gmJlotEN9NCmFywE3rfLAOG5xHFU+j1UzVEAkehuDovO\n klTXUCSrL79Uy5eTP2ZILqPV6yEGx2G1OuN9L6tdsfZQ92IjqVvvzEiF61yOAP1d\n gSTVNSggzYfe+N4nud2fae098s/fKxeERtRccZpSKL1AtL7eyZuLM2uTma5ikXsl\n DC8LlujgDSM9IDTHn+gr3G3zPhCe5mprMC5Xw3ysEaggt3UZdjlYw==",
        "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 16/30] s390x: Guest support for Secure-IPL Facility",
        "Date": "Thu, 12 Feb 2026 15:43:37 -0500",
        "Message-ID": "<20260212204352.1044699-17-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-Authority-Analysis": "v=2.4 cv=YZiwJgRf c=1 sm=1 tr=0 ts=698e3bad 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=Bichc5AjJS213ZhIJUEA:9",
        "X-Proofpoint-ORIG-GUID": "4BuOZlmT4iTHrtuzZnZgLdC1SkGC7bPZ",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMjEyMDE1NyBTYWx0ZWRfX30HhfJj5u1K3\n tBgY/Kh0hPZCtwgCu6kENwmstndt0Yd6fUntWzucK5XDHtlReVwHH8kF1iFNvjkG0g4GOhsa4Pr\n apEZiIlWjIw7ha+yD89ZJd/m77SunBKSVHdh3nW1wjy3+WvwigiILWSjPVacLttMHDzjMbXzcjg\n LW7HxqFPWVZG9/2JX9IiqFN8dVrV+t/1oltrXntydzf+iQCy3qbuzlAOCt9+LBRlsPkQUph4hu7\n 0mcJT0f5/ZiNu3xbv540+qUzo9h1tE7Eb9euaZKKmORt02308cqLLPZfC1GqtQHrMcGIkyN9XdV\n lJwo8HqA2lqo4KSM8XGJ8XK2503TgUxhBjbGr5hozkgtVDJ/weMD4LIdMxef83AFg/g7YegYvga\n m/VbneYyYn3yTDZ+Q7vQZt9oBJIXJWeaSaDbODCD/L4hX0IE9fcZsA+59gW2+dPxpZu1mlTThFy\n U3XnKMb64vQZypsp8ug==",
        "X-Proofpoint-GUID": "4BuOZlmT4iTHrtuzZnZgLdC1SkGC7bPZ",
        "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 spamscore=0 impostorscore=0 suspectscore=0 malwarescore=0\n phishscore=0 bulkscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2601150000 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": "Introduce Secure-IPL (SIPL) facility.\n\nUse fac_ipl to represent bytes 136 and 137 for IPL device facilities\nof the SCLP Read Info block.\n\nAvailability of SIPL facility is determined by byte 136 bit 1 of the\nSCLP Read Info block. Byte 136's facilities cannot be represented\nwithout the availability of the extended-length-SCCB, so add it as a\ncheck for consistency.\n\nSecure IPL is not available for guests under protected virtualization.\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 hw/s390x/sclp.c                     | 2 ++\n include/hw/s390x/sclp.h             | 4 +++-\n target/s390x/cpu_features.c         | 4 ++++\n target/s390x/cpu_features.h         | 1 +\n target/s390x/cpu_features_def.h.inc | 3 +++\n target/s390x/cpu_models.c           | 2 ++\n target/s390x/gen-features.c         | 2 ++\n target/s390x/kvm/kvm.c              | 3 +++\n 8 files changed, 20 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/hw/s390x/sclp.c b/hw/s390x/sclp.c\nindex b9c3983df1..666bae33f0 100644\n--- a/hw/s390x/sclp.c\n+++ b/hw/s390x/sclp.c\n@@ -146,6 +146,8 @@ static void read_SCP_info(SCLPDevice *sclp, SCCB *sccb)\n     if (s390_has_feat(S390_FEAT_EXTENDED_LENGTH_SCCB)) {\n         s390_get_feat_block(S390_FEAT_TYPE_SCLP_FAC134,\n                             &read_info->fac134);\n+        s390_get_feat_block(S390_FEAT_TYPE_SCLP_FAC_IPL,\n+                            read_info->fac_ipl);\n     }\n \n     read_info->facilities = cpu_to_be64(SCLP_HAS_CPU_INFO |\ndiff --git a/include/hw/s390x/sclp.h b/include/hw/s390x/sclp.h\nindex ddc61f1c21..a9595d8007 100644\n--- a/include/hw/s390x/sclp.h\n+++ b/include/hw/s390x/sclp.h\n@@ -136,7 +136,9 @@ typedef struct ReadInfo {\n     uint32_t hmfai;\n     uint8_t  _reserved7[134 - 128];     /* 128-133 */\n     uint8_t  fac134;\n-    uint8_t  _reserved8[144 - 135];     /* 135-143 */\n+    uint8_t  _reserved8;\n+    uint8_t  fac_ipl[2];                /* 136-137 */\n+    uint8_t  _reserved9[144 - 138];     /* 138-143 */\n     struct CPUEntry entries[];\n     /*\n      * When the Extended-Length SCCB (ELS) feature is enabled the\ndiff --git a/target/s390x/cpu_features.c b/target/s390x/cpu_features.c\nindex 436471f4b4..200bd8c15b 100644\n--- a/target/s390x/cpu_features.c\n+++ b/target/s390x/cpu_features.c\n@@ -119,6 +119,7 @@ void s390_fill_feat_block(const S390FeatBitmap features, S390FeatType type,\n      * Some facilities are not available for CPUs in protected mode:\n      * - All SIE facilities because SIE is not available\n      * - DIAG318\n+     * - Secure IPL 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@@ -149,6 +150,9 @@ void s390_fill_feat_block(const S390FeatBitmap features, S390FeatType type,\n         clear_be_bit(s390_feat_def(S390_FEAT_DIAG_318)->bit, data);\n         clear_be_bit(s390_feat_def(S390_FEAT_CERT_STORE)->bit, data);\n         break;\n+    case S390_FEAT_TYPE_SCLP_FAC_IPL:\n+        clear_be_bit(s390_feat_def(S390_FEAT_SIPL)->bit, data);\n+        break;\n     default:\n         return;\n     }\ndiff --git a/target/s390x/cpu_features.h b/target/s390x/cpu_features.h\nindex 5635839d03..b038198555 100644\n--- a/target/s390x/cpu_features.h\n+++ b/target/s390x/cpu_features.h\n@@ -24,6 +24,7 @@ typedef enum {\n     S390_FEAT_TYPE_SCLP_CONF_CHAR,\n     S390_FEAT_TYPE_SCLP_CONF_CHAR_EXT,\n     S390_FEAT_TYPE_SCLP_FAC134,\n+    S390_FEAT_TYPE_SCLP_FAC_IPL,\n     S390_FEAT_TYPE_SCLP_CPU,\n     S390_FEAT_TYPE_MISC,\n     S390_FEAT_TYPE_PLO,\ndiff --git a/target/s390x/cpu_features_def.h.inc b/target/s390x/cpu_features_def.h.inc\nindex 2976ecd0ee..bcf8a666e4 100644\n--- a/target/s390x/cpu_features_def.h.inc\n+++ b/target/s390x/cpu_features_def.h.inc\n@@ -140,6 +140,9 @@ DEF_FEAT(SIE_IBS, \"ibs\", SCLP_CONF_CHAR_EXT, 10, \"SIE: Interlock-and-broadcast-s\n DEF_FEAT(DIAG_318, \"diag318\", SCLP_FAC134, 0, \"Control program name and version codes\")\n 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+\n /* Features exposed via SCLP CPU info. */\n DEF_FEAT(SIE_F2, \"sief2\", SCLP_CPU, 4, \"SIE: interception format 2 (Virtual SIE)\")\n DEF_FEAT(SIE_SKEY, \"skey\", SCLP_CPU, 5, \"SIE: Storage-key facility\")\ndiff --git a/target/s390x/cpu_models.c b/target/s390x/cpu_models.c\nindex 6b8471700e..f99536ef9a 100644\n--- a/target/s390x/cpu_models.c\n+++ b/target/s390x/cpu_models.c\n@@ -263,6 +263,7 @@ bool s390_has_feat(S390Feat feat)\n         case S390_FEAT_SIE_CMMA:\n         case S390_FEAT_SIE_PFMFI:\n         case S390_FEAT_SIE_IBS:\n+        case S390_FEAT_SIPL:\n         case S390_FEAT_CONFIGURATION_TOPOLOGY:\n             return false;\n             break;\n@@ -507,6 +508,7 @@ static void check_consistency(const S390CPUModel *model)\n         { S390_FEAT_AP_QUEUE_INTERRUPT_CONTROL, S390_FEAT_AP },\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_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 6c20c3a862..bd2060ab93 100644\n--- a/target/s390x/gen-features.c\n+++ b/target/s390x/gen-features.c\n@@ -721,6 +721,7 @@ static uint16_t full_GEN16_GA1[] = {\n     S390_FEAT_UV_FEAT_AP,\n     S390_FEAT_UV_FEAT_AP_INTR,\n     S390_FEAT_CERT_STORE,\n+    S390_FEAT_SIPL,\n };\n \n static uint16_t full_GEN17_GA1[] = {\n@@ -922,6 +923,7 @@ static uint16_t qemu_MAX[] = {\n     S390_FEAT_PRNO_TRNG,\n     S390_FEAT_EXTENDED_LENGTH_SCCB,\n     S390_FEAT_CERT_STORE,\n+    S390_FEAT_SIPL,\n };\n \n /****** END FEATURE DEFS ******/\ndiff --git a/target/s390x/kvm/kvm.c b/target/s390x/kvm/kvm.c\nindex e06b760e03..11b0740c1b 100644\n--- a/target/s390x/kvm/kvm.c\n+++ b/target/s390x/kvm/kvm.c\n@@ -2520,6 +2520,9 @@ bool kvm_s390_get_host_cpu_model(S390CPUModel *model, Error **errp)\n \n     set_bit(S390_FEAT_CERT_STORE, model->features);\n \n+    /* Some Secure IPL facilities are emulated by QEMU */\n+    set_bit(S390_FEAT_SIPL, model->features);\n+\n     /* Test for Ultravisor features that influence secure guest behavior */\n     query_uv_feat_guest(model->features);\n \n",
    "prefixes": [
        "v8",
        "16/30"
    ]
}