Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2003166/?format=api
{ "id": 2003166, "url": "http://patchwork.ozlabs.org/api/patches/2003166/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20241028091536.600913-1-amachhiw@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": "<20241028091536.600913-1-amachhiw@linux.ibm.com>", "list_archive_url": null, "date": "2024-10-28T09:15:36", "name": "spapr: nested: Add Power11 capability support for Nested PAPR guests in TCG L0", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "c03307c1ad032bd1fab16ecfeb7ae609e6088e13", "submitter": { "id": 87864, "url": "http://patchwork.ozlabs.org/api/people/87864/?format=api", "name": "Amit Machhiwal", "email": "amachhiw@linux.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20241028091536.600913-1-amachhiw@linux.ibm.com/mbox/", "series": [ { "id": 430102, "url": "http://patchwork.ozlabs.org/api/series/430102/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=430102", "date": "2024-10-28T09:15:36", "name": "spapr: nested: Add Power11 capability support for Nested PAPR guests in TCG L0", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/430102/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2003166/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2003166/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=ovunFy5i;\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 4XcSSk3Vr5z1xw0\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 28 Oct 2024 20:16:54 +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 1t5LrD-000665-Vj; Mon, 28 Oct 2024 05:16:16 -0400", "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 <amachhiw@linux.ibm.com>)\n id 1t5LrC-00065c-Gw; Mon, 28 Oct 2024 05:16:14 -0400", "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 <amachhiw@linux.ibm.com>)\n id 1t5LrA-0006Dx-KX; Mon, 28 Oct 2024 05:16:14 -0400", "from pps.filterd (m0353729.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id\n 49S4WcKh014824;\n Mon, 28 Oct 2024 09:16:03 GMT", "from pps.reinject (localhost [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 42j3nshdcv-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Mon, 28 Oct 2024 09:16:02 +0000 (GMT)", "from m0353729.ppops.net (m0353729.ppops.net [127.0.0.1])\n by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 49S9G23L026367;\n Mon, 28 Oct 2024 09:16:02 GMT", "from ppma11.dal12v.mail.ibm.com\n (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 42j3nshdcm-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Mon, 28 Oct 2024 09:16:02 +0000 (GMT)", "from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1])\n by ppma11.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 49S52OP1015831;\n Mon, 28 Oct 2024 09:16:01 GMT", "from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228])\n by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 42hdf155f8-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Mon, 28 Oct 2024 09:16:01 +0000", "from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com\n [10.20.54.105])\n by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 49S9FvKl15270270\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Mon, 28 Oct 2024 09:15:57 GMT", "from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id A9F702033E;\n Mon, 28 Oct 2024 09:15:57 +0000 (GMT)", "from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 6E9402034C;\n Mon, 28 Oct 2024 09:15:47 +0000 (GMT)", "from li-e7e2bd4c-2dae-11b2-a85c-bfd29497117c.ibm.com.com (unknown\n [9.39.17.130]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP;\n Mon, 28 Oct 2024 09:15:47 +0000 (GMT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n :content-transfer-encoding:date:from:message-id:mime-version\n :subject:to; s=pp1; bh=US5bFQgBmGn4kfWluInv+VpA5egg1XHmMAMzGm18X\n LE=; b=ovunFy5iMleJ7S5XyP2HdOoWSG/i5IIFmxyq52nSfIv79xOpa6Ur0U+ao\n gK8RBcklROVpJpia/ZR2z26xlCvpx91qzZI93gUBOhFcoOSbLIuFu6c/LouZrJ+i\n W3v6zFrmkvJDuYGaoEil+i8QVHSfjTzW7ltkGCWeSrFpHj7Toa3GtxcgIySu6Rqc\n sjE3bpcudXwjxK71u6YPNFu2Dm3hROd4fpiJHbNs+nu80XXLqyfca1T4T8n8oxG8\n LGuc7kG+pxY90KeNZ8nxsfYwdfs+gwAEu3aCRxJbhTkCaPq3eXiLJfKc0WwOxKaw\n P2RB2gcEVGgqz9dKzdQz7wwJOh5xg==", "From": "Amit Machhiwal <amachhiw@linux.ibm.com>", "To": "Nicholas Piggin <npiggin@gmail.com>, qemu-ppc@nongnu.org,\n Vaibhav Jain <vaibhav@linux.ibm.com>,\n Harsh Prateek Bora <harshpb@linux.ibm.com>", "Cc": "David Gibson <david@gibson.dropbear.id.au>,\n Daniel Henrique Barboza <danielhb413@gmail.com>, qemu-devel@nongnu.org,\n Amit Machhiwal <amachhiw@linux.ibm.com>", "Subject": "[PATCH] spapr: nested: Add Power11 capability support for Nested PAPR\n guests in TCG L0", "Date": "Mon, 28 Oct 2024 14:45:36 +0530", "Message-ID": "<20241028091536.600913-1-amachhiw@linux.ibm.com>", "X-Mailer": "git-send-email 2.47.0", "X-TM-AS-GCONF": "00", "X-Proofpoint-ORIG-GUID": "uvwQBfUsbYy0kL3D8VjfUXwAja-5zmoa", "X-Proofpoint-GUID": "_8ThbooamAo6pPICOhcILlK7lS9UIjlL", "Content-Transfer-Encoding": "8bit", "X-Proofpoint-UnRewURL": "0 URL was un-rewritten", "MIME-Version": "1.0", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30\n definitions=2024-10-15_01,2024-10-11_01,2024-09-30_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n phishscore=0 adultscore=0\n bulkscore=0 mlxlogscore=999 clxscore=1015 priorityscore=1501\n suspectscore=0 lowpriorityscore=0 mlxscore=0 impostorscore=0\n malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1\n engine=8.19.0-2409260000 definitions=main-2410280073", "Received-SPF": "pass client-ip=148.163.156.1;\n envelope-from=amachhiw@linux.ibm.com; helo=mx0a-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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,\n RCVD_IN_VALIDITY_RPBL_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-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 Power11 architected and raw mode support in Linux was merged via [1]\nand the corresponding support in QEMU is waiting to be added by [2]\nwhich in V6 currently.\n\nAdd the Power11 capabilities and the required handling in TCG L0\nimplementation of the \"Nested PAPR API\".\n\nNote: This patch is based on [2].\n\n[1] https://lore.kernel.org/all/20240221044623.1598642-1-mpe@ellerman.id.au/\n[2] https://lore.kernel.org/all/20240731055022.696051-1-adityag@linux.ibm.com/\n\nSigned-off-by: Amit Machhiwal <amachhiw@linux.ibm.com>\n---\n hw/ppc/spapr_nested.c | 12 +++++++++++-\n include/hw/ppc/spapr_nested.h | 5 ++++-\n 2 files changed, 15 insertions(+), 2 deletions(-)", "diff": "diff --git a/hw/ppc/spapr_nested.c b/hw/ppc/spapr_nested.c\nindex c02785756c1e..066d40e3c1b7 100644\n--- a/hw/ppc/spapr_nested.c\n+++ b/hw/ppc/spapr_nested.c\n@@ -771,6 +771,7 @@ static void copy_logical_pvr(void *a, void *b, bool set)\n \n if (*pvr_logical_ptr) {\n switch (*pvr_logical_ptr) {\n+ case CPU_POWERPC_LOGICAL_3_10_P11:\n case CPU_POWERPC_LOGICAL_3_10:\n pcr = PCR_COMPAT_3_10 | PCR_COMPAT_3_00;\n break;\n@@ -1184,6 +1185,12 @@ static target_ulong h_guest_get_capabilities(PowerPCCPU *cpu,\n return H_PARAMETER;\n }\n \n+ /* P11 capabilities */\n+ if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_10_P11, 0,\n+ spapr->max_compat_pvr)) {\n+ env->gpr[4] |= H_GUEST_CAPABILITIES_P11_MODE;\n+ }\n+\n /* P10 capabilities */\n if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_10, 0,\n spapr->max_compat_pvr)) {\n@@ -1226,7 +1233,10 @@ static target_ulong h_guest_set_capabilities(PowerPCCPU *cpu,\n env->gpr[4] = 1;\n \n /* set R5 to the first supported Power Processor Mode */\n- if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_10, 0,\n+ if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_10_P11, 0,\n+ spapr->max_compat_pvr)) {\n+ env->gpr[5] = H_GUEST_CAP_P11_MODE_BMAP;\n+ } else if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_10, 0,\n spapr->max_compat_pvr)) {\n env->gpr[5] = H_GUEST_CAP_P10_MODE_BMAP;\n } else if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_00, 0,\ndiff --git a/include/hw/ppc/spapr_nested.h b/include/hw/ppc/spapr_nested.h\nindex 93ef14adcc5e..24531c3fd2e9 100644\n--- a/include/hw/ppc/spapr_nested.h\n+++ b/include/hw/ppc/spapr_nested.h\n@@ -210,11 +210,14 @@ typedef struct SpaprMachineStateNestedGuest {\n #define H_GUEST_CAPABILITIES_COPY_MEM 0x8000000000000000\n #define H_GUEST_CAPABILITIES_P9_MODE 0x4000000000000000\n #define H_GUEST_CAPABILITIES_P10_MODE 0x2000000000000000\n-#define H_GUEST_CAP_VALID_MASK (H_GUEST_CAPABILITIES_P10_MODE | \\\n+#define H_GUEST_CAPABILITIES_P11_MODE 0x1000000000000000\n+#define H_GUEST_CAP_VALID_MASK (H_GUEST_CAPABILITIES_P11_MODE | \\\n+ H_GUEST_CAPABILITIES_P10_MODE | \\\n H_GUEST_CAPABILITIES_P9_MODE)\n #define H_GUEST_CAP_COPY_MEM_BMAP 0\n #define H_GUEST_CAP_P9_MODE_BMAP 1\n #define H_GUEST_CAP_P10_MODE_BMAP 2\n+#define H_GUEST_CAP_P11_MODE_BMAP 3\n #define PAPR_NESTED_GUEST_MAX 4096\n #define H_GUEST_DELETE_ALL_FLAG 0x8000000000000000ULL\n #define PAPR_NESTED_GUEST_VCPU_MAX 2048\n", "prefixes": [] }