Cover Letter Detail
Show a cover letter.
GET /api/1.1/covers/2230847/?format=api
{ "id": 2230847, "url": "http://patchwork.ozlabs.org/api/1.1/covers/2230847/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/cover/20260430061333.37905-1-amachhiw@linux.ibm.com/", "project": { "id": 69, "url": "http://patchwork.ozlabs.org/api/1.1/projects/69/?format=api", "name": "QEMU powerpc development", "link_name": "qemu-ppc", "list_id": "qemu-ppc.nongnu.org", "list_email": "qemu-ppc@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260430061333.37905-1-amachhiw@linux.ibm.com>", "date": "2026-04-30T06:13:31", "name": "[0/2] ppc/kvm: Handle CPU compatibility mode correctly for nested guests", "submitter": { "id": 87864, "url": "http://patchwork.ozlabs.org/api/1.1/people/87864/?format=api", "name": "Amit Machhiwal", "email": "amachhiw@linux.ibm.com" }, "mbox": "http://patchwork.ozlabs.org/project/qemu-ppc/cover/20260430061333.37905-1-amachhiw@linux.ibm.com/mbox/", "series": [ { "id": 502208, "url": "http://patchwork.ozlabs.org/api/1.1/series/502208/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/list/?series=502208", "date": "2026-04-30T06:13:32", "name": "ppc/kvm: Handle CPU compatibility mode correctly for nested guests", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502208/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/2230847/comments/", "headers": { "Return-Path": "<qemu-ppc-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=dIptz9GJ;\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-ppc-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 4g5kRT32BCz1yGq\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 16:15:01 +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-ppc-bounces@nongnu.org>)\n\tid 1wIKex-0002ua-AF; Thu, 30 Apr 2026 02:14:03 -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 <amachhiw@linux.ibm.com>)\n id 1wIKeu-0002tP-Mm; Thu, 30 Apr 2026 02:14:00 -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 <amachhiw@linux.ibm.com>)\n id 1wIKep-0006Fy-Gb; Thu, 30 Apr 2026 02:13:57 -0400", "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 63TMX0TS3705253; Thu, 30 Apr 2026 06:13:51 GMT", "from ppma21.wdc07v.mail.ibm.com\n (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4drm1e4jc0-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Thu, 30 Apr 2026 06:13:51 +0000 (GMT)", "from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1])\n by ppma21.wdc07v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 63U6CecJ020219;\n Thu, 30 Apr 2026 06:13:50 GMT", "from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229])\n by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4ds8xk9p0y-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Thu, 30 Apr 2026 06:13:50 +0000 (GMT)", "from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com\n [10.20.54.102])\n by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 63U6DkcZ49742256\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Thu, 30 Apr 2026 06:13:46 GMT", "from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id B395B20040;\n Thu, 30 Apr 2026 06:13:46 +0000 (GMT)", "from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 4ECAE20043;\n Thu, 30 Apr 2026 06:13:43 +0000 (GMT)", "from localhost.localdomain (unknown [9.39.18.70])\n by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP;\n Thu, 30 Apr 2026 06:13:43 +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=BoVrbhhZTtyFzhjhqEHFbnlMkbunPWcBJaMQvhPlE\n GU=; b=dIptz9GJoSvVAdPSqx1xu2ZKJjz/s1qeejuqT1mt4/9W6Rpz0uQNasQpd\n 9i8Uj4U7/MMDh0sxagMK/7s8LOG9uss7Q2qVFMX2ZMLhJGBbryDZS1l6cItF8Ny7\n w8jOlpBOF97lTmHVS8bQN5TOk7opXkFcrKEJqsQzNv9JsHNMAQaVq9aOk4SusVvS\n XxlJ+1b2wQ0YffyzUDh3XHgbLgJ3EqAn3X9MI7litu1d6pCMJy5AW6t3LCKCOoqd\n Bel4BhdEIewgAbu8Nq+0i0vkxW8efMgPKWryEXfd5/wLBQl87Adsb7Gh1E0IGGZM\n NYdOd59L4JjIPTDcMxQfMz9Um1R7Q==", "From": "Amit Machhiwal <amachhiw@linux.ibm.com>", "To": "qemu-ppc@nongnu.org, Harsh Prateek Bora <harshpb@linux.ibm.com>", "Cc": "Amit Machhiwal <amachhiw@linux.ibm.com>,\n Vaibhav Jain <vaibhav@linux.ibm.com>, Nicholas Piggin <npiggin@gmail.com>,\n Chinmay Rath <rathc@linux.ibm.com>, Glenn Miles <milesg@linux.ibm.com>,\n Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org,\n kvm@vger.kernel.org", "Subject": "[PATCH 0/2] ppc/kvm: Handle CPU compatibility mode correctly for\n nested guests", "Date": "Thu, 30 Apr 2026 11:43:31 +0530", "Message-ID": "<20260430061333.37905-1-amachhiw@linux.ibm.com>", "X-Mailer": "git-send-email 2.50.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-TM-AS-GCONF": "00", "X-Proofpoint-Reinject": "loops=2 maxloops=12", "X-Proofpoint-ORIG-GUID": "94hG800faMXWk8v6Haz5UenxaMHWjis1", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDMwMDA1NSBTYWx0ZWRfXxhsa6TJH/xQ0\n B3gnRpNaMjOjUtjMvf0/hT43bYF9ZzMsHSndZCt8uWx/d2J7HdHul7HW4VVsnni7uSqZtFpvAE8\n oNsBvXsbcxjEwP5X+QiUNXxx7dIxS+BEjuUTePge45XAnT71U97JiWVruYwkiDp5Uq393SjBKEb\n LxSDjqQ2kU+VT3vtqvIdjGsgN31bypUGYSfa4jEt+NrBeXgNT9YPlnY27mjosaumheccMSpISHi\n JP8fMKatEY0UehcJ999QXJSdRxtslIz5IMYdbZfUb4iTVQuUQQvGgd6NKFvJCKRQ9QR1xYKT5jp\n 3KTDNtp1PiR0uPwVh1uomwjd4gF+E7cNGBNze58dV5XNKP5/5XmlcTFoo1N6yBT4UjyFR31gaR5\n yOurSFlJVbliwHsNAfsIdfdFufoMp00qkcoARMfm3CvPyVqJ/5GM4JOiKEClaTYO+jVG9hAYoDy\n RT/u4xhYM6jdscvjrdA==", "X-Authority-Analysis": "v=2.4 cv=VZLH+lp9 c=1 sm=1 tr=0 ts=69f2f31f cx=c_pps\n a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17\n a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=V8glGbnc2Ofi9Qvn3v5h:22 a=VwQbUJbxAAAA:8 a=VnNF1IyMAAAA:8\n a=M_kZukdR289U2EYsLHYA:9", "X-Proofpoint-GUID": "Smxxb0R-qk6hM6ePIKqsrWD8BqUQDg28", "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-04-30_01,2026-04-28_01,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n clxscore=1011 suspectscore=0 adultscore=0 lowpriorityscore=0 phishscore=0\n spamscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 impostorscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604300055", "Received-SPF": "pass client-ip=148.163.158.5;\n envelope-from=amachhiw@linux.ibm.com; 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-ppc@nongnu.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<qemu-ppc.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-ppc>,\n <mailto:qemu-ppc-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-ppc>", "List-Post": "<mailto:qemu-ppc@nongnu.org>", "List-Help": "<mailto:qemu-ppc-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-ppc>,\n <mailto:qemu-ppc-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "On POWER systems, newer processor generations can operate in compatibility\nmodes corresponding to earlier generations (e.g., a Power11 system running\nin Power10 compatibility mode). In such cases, the effective CPU level\nexposed to guests differs from the physical processor generation.\n\nThis creates issues for nested virtualization. When booting a nested KVM\nguest, QEMU may derive the CPU model from the raw hardware PVR and attempt\nto configure the guest accordingly. However, the host is constrained by the\ncompatibility level negotiated with the hypervisor, and requests exceeding\nthat level are rejected by KVM, leading to guest boot failures such as:\n\n KVM-NESTEDv2: couldn't set guest wide elements\n\nThis series addresses the issue in two ways:\n\n1. Do not silently fall back to raw mode when KVM rejects a requested\n compatibility level during CAS. Instead, propagate the error so invalid\n configurations are visible and fail early.\n\n2. Query the effective CPU compatibility modes supported by the host via\n KVM and use this information to select an appropriate CPU model for\n nested guests.\n\nWith these changes, QEMU avoids masking KVM errors and ensures that nested\nguests are configured with CPU models consistent with the host\ncompatibility mode, allowing them to boot correctly.\n\nPatch summary:\n [1/2] hw/ppc/spapr: Do not fallback to raw mode when KVM rejects compat\n [2/2] target/ppc/kvm: Use host compatibility mode for nested guests\n\nTested on:\n - Power11 pSeries LPAR in Power10 compatibility mode\n - Power10 PowerNV and QEMU PowerNV 11 TCG L0 host\n\nNote: The corresponding Linux patches have been posted [1]\n\n[1] https://lore.kernel.org/all/20260430054906.94431-1-amachhiw@linux.ibm.com/\n\nAmit Machhiwal (2):\n hw/ppc/spapr: Do not fallback to raw mode when KVM rejects compat\n target/ppc/kvm: Use host compatibility mode for nested guests\n\n hw/ppc/spapr_hcall.c | 9 ++++++++\n target/ppc/kvm.c | 52 ++++++++++++++++++++++++++++++++++++++++++++\n 2 files changed, 61 insertions(+)\n\n\nbase-commit: 759c456b1d22fe4083c8b384da27d3f56fd53f82\n--\n2.50.1" }