From nobody Mon Mar 2 08:45:02 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=unpredictable.fr ARC-Seal: i=1; a=rsa-sha256; t=1772421937; cv=none; d=zohomail.com; s=zohoarc; b=eRJlFjq7+Vs3fKkhskCNKoJqp+hXih3u70IXi0U1D6P4KS/472Qw7yzgqTpusdPhBuFAYpTRbB5QyBrvYiMYv+PVLpdC/KoWtkx0Z5/ZhwcIoiGQMg92XOnLdJVuLD1uUX0+ylNuSgv1XsdyQRPYDtgZX1V/Nn9yy8RJ1OIO7y0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772421937; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Lk6bTEpwGD75rPYbjWBDL/wm+6tJrip/XWCznrT97K8=; b=SujAi37metIBiZwTYZhCB3ob/5OTGg3HQnqX8VccXNa05lFhclLa5ST8b+3j0+Yu+keDAeSq8lOX1MS6qnhcIfXHcf4eCz7+D06nz3XJRGP8fkkKIbH6NI40iDOLuauf3yqDFFt0Qkzw6hGMlaLDvrDM+1FD3d3EsSQFBANnCA0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772421937338173.8941817746529; Sun, 1 Mar 2026 19:25:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vwttu-00049t-Oy; Sun, 01 Mar 2026 22:24:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vwttm-00048L-Tq for qemu-devel@nongnu.org; Sun, 01 Mar 2026 22:24:46 -0500 Received: from p-west2-cluster6-host2-snip4-10.eps.apple.com ([57.103.70.83] helo=outbound.mr.icloud.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vwttk-0008It-F7 for qemu-devel@nongnu.org; Sun, 01 Mar 2026 22:24:45 -0500 Received: from outbound.mr.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-2a-60-percent-11 (Postfix) with ESMTPS id 445AD18000B4; Mon, 2 Mar 2026 03:24:42 +0000 (UTC) Received: from localhost.localdomain (unknown [17.57.152.38]) by p00-icloudmta-asmtp-us-west-2a-60-percent-11 (Postfix) with ESMTPSA id 1630B1800094; Mon, 2 Mar 2026 03:24:39 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr; s=sig1; t=1772421883; x=1775013883; bh=Lk6bTEpwGD75rPYbjWBDL/wm+6tJrip/XWCznrT97K8=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=RMzH3RxzrGpFkr1C7RWT7AV3apX/1TtG96K5fAL8xOx8QV0A5Mr8WoWxvYD6zHdobQ0ZK4cGd5770hopRJV8EvppELEDjOZkWOHKECQiHd2pXGCA9Z4iLpcKlx9+xaNNhD9xqqZE59g9EL/hrdNp1tTFUC4hV6USTBWB5jFzlJVcm+CWPnwmDVHnx9pqBzFOS7R5/ZsXwIcoZYpS4DRfygEZTQC4AYnJ9xTAKSq35gTw3vhJ4BGEATZus2jfiFgH4unHuXX/VgmL1CSXomiBjpt4nyttv4sNL/b8HmIIMLzSqG6jzN4iadNAcNqNvB/GHWptAR4kQG2MU7Kaxuk9Jg== mail-alias-created-date: 1752046281608 From: Mohamed Mediouni To: qemu-devel@nongnu.org Cc: Pedro Barbuda , Wei Liu , Cameron Esfahani , Mohamed Mediouni , Roman Bolshakov , Phil Dennis-Jordan Subject: [PATCH 1/3] whpx: i386: do not enable nested virt when kernel-irqchip=off Date: Mon, 2 Mar 2026 04:24:33 +0100 Message-ID: <20260302032435.42698-2-mohamed@unpredictable.fr> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260302032435.42698-1-mohamed@unpredictable.fr> References: <20260302032435.42698-1-mohamed@unpredictable.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzAyMDAyOCBTYWx0ZWRfX5aQB0RG0a125 JnKnyEp2H4mo5VmqpBbYFUAMdy66HCnHR7k/UJg3eq1ZwwNlnZrkxDsVqZvooXWO65817i2FuQZ UTNtC5eBNlJwXV8tc7wjzxI5FpcKb7dBJarKofxtFt3dzZ0iNAInuShsRl507obyL7tTeu+OFkN dKEB91nfLsrAV3z+0646uyeM1YSAW46E/4nUcUcsgiJQdGd/3NEcbG2pVprVJSf36cciZKGFUQR ZIvF85y6vUeeFBj7iBcwtEX/9PmxnQIrxlrVNyNRaasnv00Pnk5f+75y7R/yekX0hgKNCDyZlbL E95enbrG5WHtmJsh8zVjcx1JHoIPknF6ZSOvL4erNPDYT29si2E5WEZCYd3NfA= X-Authority-Info-Out: v=2.4 cv=J66nLQnS c=1 sm=1 tr=0 ts=69a502fa cx=c_apl:c_apl_out:c_pps a=9OgfyREA4BUYbbCgc0Y0oA==:117 a=9OgfyREA4BUYbbCgc0Y0oA==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=eKpLbWQDCUPTAuIwU-0A:9 X-Proofpoint-GUID: H6GMC6GaLdvb4M4qJeC5r_ZFQJIJ19fo X-Proofpoint-ORIG-GUID: H6GMC6GaLdvb4M4qJeC5r_ZFQJIJ19fo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-02_01,2026-02-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 spamscore=0 clxscore=1030 adultscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxlogscore=832 lowpriorityscore=0 bulkscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2603020028 X-JNJ: AAAAAAABCaXxZA2Dqa2lliHjvDk8kpD10J9L9Xuc4pEA0B2RwgyA35T3Cx4k8aL9QfiaGnH81ZWg2FYEutzMYbDImh/WJULyZ++udB2AtOSgoEugow6QqH6w3NQgUpJqOOS/Lzvx2x0LG1+L1ipyzlrmrswzbTbUhYK4TnEY1eo4lj1Tp+1nfcD4MtzzRINoT++60R7m/v9Pv57u06EP5ho0TzLb6LuRTFnc+TPHnDkkF9gMeJT1AZhD2Qhcd+pNfFiZAgUxWD0unmCDk3vdYkMtYel5+uedsiYnCXKoepAKdYlz9h6/dxp6pTPXfsAc7fkJNd1Zgqs5biLUDKx+/eQYrNX7J7WfFI1OnWmB92Rkw9RH7A6IvyhFtWctdKUdwpPGdYd5QuxrugmAhQ927LIZgiaJML0VGwKwltcHyfmH1TC4K9ERPySaN0JoLQehVKWTKq1h74RC8t3yFE5HEg1+VlarcpDwLWYI5iJLjEPWiE589aOBQPjFDDyxSD9lnQVqSvyzup8M9SpjpDYAMr/J1/QsViiezrSTLvdMZo2S/uRwF1mrezHihd9cOOKQpj/NdFQCl5/R7IZglymE2YS6pBHmBMHa/rU1oa98ZFahLmEgwD7mqKPUSzcRlPHXkYGqdhtchaBG0eK1+MVLoFRS4IC48rVxD2Dl9WMOt19lw0qizDr/J33nSPLIgtWVm2kGW/nwJW4r Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=57.103.70.83; envelope-from=mohamed@unpredictable.fr; helo=outbound.mr.icloud.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.012, RCVD_IN_VALIDITY_RPBL_BLOCKED=1.188, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @unpredictable.fr) X-ZM-MESSAGEID: 1772421939271158500 Content-Type: text/plain; charset="utf-8" This combination is not allowed as of build 26300.7939 and results in: qemu-system-x86_64.exe: WHPX: Failed to setup partition, hr=3Dc0350005 qemu-system-x86_64.exe: failed to initialize whpx: Invalid argument Signed-off-by: Mohamed Mediouni --- target/i386/whpx/whpx-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c index bb1afb9cd1..99c4d03f42 100644 --- a/target/i386/whpx/whpx-all.c +++ b/target/i386/whpx/whpx-all.c @@ -2145,7 +2145,7 @@ int whpx_accel_init(AccelState *as, MachineState *ms) goto error; } =20 - if (processor_features.Bank1.NestedVirtSupport) { + if (whpx_irqchip_in_kernel() && processor_features.Bank1.NestedVirtSup= port) { memset(&prop, 0, sizeof(WHV_PARTITION_PROPERTY)); prop.NestedVirtualization =3D 1; hr =3D whp_dispatch.WHvSetPartitionProperty( --=20 2.50.1 (Apple Git-155) From nobody Mon Mar 2 08:45:02 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=unpredictable.fr ARC-Seal: i=1; a=rsa-sha256; t=1772421927; cv=none; d=zohomail.com; s=zohoarc; b=Bwr+WSoHU8+9WHQhiEO/TUqVda9pRCrAZZ7K6th84qGPVq4L+VoyXeYYv1rXpzuoSKpw+H0qP8EXZF7Xz6VAnMkfCapsALAYU4cwpK92LvmaTd0NJVU0GUi0Yd3bLxd8d4WM0jA8i41XFCUl/95dGZDJwuX2S5RZgA7+rXZdSiM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772421927; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=9l5pgpdno1+ME50mWO0AryTvHBGwI33pwK6V+Ah9HEU=; b=Rk8brM8t13PpkH+D6Q2VfnWCatWS8AOeegSPVS4CIXJBJ3OOprgyrmkQcZC2V6DolNEG/wJdi4RXCeb3+T2sgDMdo1piZBBzBu92dBAQ+xRPQA6A8KbUWYXgqfKjYywrGLBdWcZKuhpWzsPs1jLPKgHqjD0uX0f8LI6PmwMLK2w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772421926937417.7025174221644; Sun, 1 Mar 2026 19:25:26 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vwtts-00049K-8A; Sun, 01 Mar 2026 22:24:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vwtto-00048a-1g for qemu-devel@nongnu.org; Sun, 01 Mar 2026 22:24:48 -0500 Received: from p-west2-cluster6-host3-snip4-6.eps.apple.com ([57.103.70.9] helo=outbound.mr.icloud.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vwttm-0008Iz-Le for qemu-devel@nongnu.org; Sun, 01 Mar 2026 22:24:47 -0500 Received: from outbound.mr.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-2a-60-percent-11 (Postfix) with ESMTPS id 1FC93180014B; Mon, 2 Mar 2026 03:24:43 +0000 (UTC) Received: from localhost.localdomain (unknown [17.57.152.38]) by p00-icloudmta-asmtp-us-west-2a-60-percent-11 (Postfix) with ESMTPSA id 190F8180017B; Mon, 2 Mar 2026 03:24:41 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr; s=sig1; t=1772421885; x=1775013885; bh=9l5pgpdno1+ME50mWO0AryTvHBGwI33pwK6V+Ah9HEU=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=TmrekDvdE10IMPa99Nr4vAK3WYfHBEWeADYigdKwuyvsQA1g1jBb4/Sdu0egG57l7ULn4N/IZLH7fVEPH/Ol34anHaXD8KR5Itxc9mEmdBx8DlN9i9ix7ueg2jM2eNCPzBmgd2A+RDBL97/9Wa8/I7yiYwfclcY7SPnX15Xj2CnzKAdsKz1OByzf0Vj43zKWpyNir38QTafk1UT2LEsyxXP3hZIUW7ARUtcBb1Ltq6ERyHPtrpqXJbW2NxyTlYFRDCS3jyt5sZLkGiU4XXr8Lvuc5l/kmXozvW81HIzPVYkSpX1uuu5tjJCawzI3orfhpuIlBSU2fg/ja4sP7yW5EA== mail-alias-created-date: 1752046281608 From: Mohamed Mediouni To: qemu-devel@nongnu.org Cc: Pedro Barbuda , Wei Liu , Cameron Esfahani , Mohamed Mediouni , Roman Bolshakov , Phil Dennis-Jordan Subject: [PATCH 2/3] target/i386: emulate: LA57 fix Date: Mon, 2 Mar 2026 04:24:34 +0100 Message-ID: <20260302032435.42698-3-mohamed@unpredictable.fr> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260302032435.42698-1-mohamed@unpredictable.fr> References: <20260302032435.42698-1-mohamed@unpredictable.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzAyMDAyOCBTYWx0ZWRfXybcbEQQttsc4 TxgwLej7UrhxC12BHENkK4jUv7085x9cAVxQvpM7Q6ESNfHX1LmJXFa2+otBM8iPxoB4rXi6iVx 4GJ10C2Xw3EZqyGepHINm/qqfXnWLKwY7K8eAjsP0sRi1FORqBch8DRIkgFdQ2BA56bljzglH0l K51KMtCNE5QXsaS0fwwXLbkznO4qvfsyCoGcIOGSwvvESIQlGPW51ewEux8wrLIeMpIEMGqJoq8 ab6xf0p/6Sy7nkKy/6HqcZQPSjNd69mMWcB3ZkHaHV7O4PGXK5gBasU0NzNW/DF/5liZm1sDJP7 YUFDmzsH66Wx4ok/TMDS95Lw5+eqyxBABTdM23bjhPcSKVw8hr6SRahOLKh3fM= X-Authority-Info-Out: v=2.4 cv=R54O2NRX c=1 sm=1 tr=0 ts=69a502fc cx=c_apl:c_apl_out:c_pps a=9OgfyREA4BUYbbCgc0Y0oA==:117 a=9OgfyREA4BUYbbCgc0Y0oA==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=gy8mmgNRbJmCihZvwREA:9 X-Proofpoint-ORIG-GUID: mqAqu5RGurumxadTef7ADyZIfF7XvX6r X-Proofpoint-GUID: mqAqu5RGurumxadTef7ADyZIfF7XvX6r X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-02_01,2026-02-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=789 bulkscore=0 mlxscore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1030 phishscore=0 adultscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2603020028 X-JNJ: AAAAAAABgxrCbq28i8YOkaWTlPbnuY5L+ihVRGqe6Yxva0Hk5tl8INcbH31nJ5Ra5Zi053jl7kPTsUhMZuwDo++tdeEfh4nENG91147gdREjWvEfZjhzmaVlC81lDSYVZdhu8/H5FJsOwpLej321aFtzObj8IHtFRC/1aIi+61/TQFEfaal2aab8DaX4TlHoh2Rf1vo3Uh5eBxFXrHDhkQr0nvG06glhbI+nOqb5a32z1rIcBDPZrEn1AX34Cbt9R4n1NS2cCQEa9/cgwk1mrwsIOrvvxIFk6EVoXOLH/rOLEMl+ConcVTWPnEiS+EHQgTpBAXqipVlNp6puwYFvapGtJu08W0o7LGLz/2xjPrTRuYm022TmvRsA4cJNoNPgvRorKsf0IedSUrCUh+7XHaCPTXK2OgvuzQAh4lQtUmoauY+eFz3wn7w7IO7kTukMnVPA5NMb1rwza/Y4EkUVxcOjZukJM8pJR4HlPvULgEpM1OqZwZbi3Oe2prGZX5pNtm3vaKy1gtMwmZJgLmiyHiu4ldlmMEFSzoWavtooYVN4vCmHC05IzoFxJFKT+jQy4kFc8mb5LqG2gP3LXnJvidQogJvHLe0P40Nn5Mq5n0YLwqz83fhEUjvo3aqAbobRQ7oO9ay9CP/PXWUHW7Iy0R1gtZ9R79IU9OOmgX3xM6pWvtYONjE= Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=57.103.70.9; envelope-from=mohamed@unpredictable.fr; helo=outbound.mr.icloud.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.012, RCVD_IN_VALIDITY_RPBL_BLOCKED=1.188, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @unpredictable.fr) X-ZM-MESSAGEID: 1772421932376158500 Content-Type: text/plain; charset="utf-8" Seen on a Sapphire Rapids box with LA57. Signed-off-by: Mohamed Mediouni --- target/i386/emulate/x86_mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/emulate/x86_mmu.c b/target/i386/emulate/x86_mmu.c index d30f6c4a3e..3546609a90 100644 --- a/target/i386/emulate/x86_mmu.c +++ b/target/i386/emulate/x86_mmu.c @@ -56,7 +56,7 @@ static bool is_user(CPUState *cpu) struct gpt_translation { target_ulong gva; uint64_t gpa; - uint64_t pte[5]; + uint64_t pte[6]; }; =20 static int gpt_top_level(CPUState *cpu, bool pae) --=20 2.50.1 (Apple Git-155) From nobody Mon Mar 2 08:45:02 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=unpredictable.fr ARC-Seal: i=1; a=rsa-sha256; t=1772421928; cv=none; d=zohomail.com; s=zohoarc; b=ZTFdzz+G/9bCjITYG5oXXXusOIsukQuo4RjQ+/YMKZ72Tu9uFx7Z3x7xZY4eRZCmu83Q+D7ofE6+rBs+mrnuFhu8FyWxPDaP0CPQKmVREgooE1hf9HitpSOtbjUCCiObEQseAlvlwZLYc+ihnUk3fFWtA87qQg0JAIwNz9KShmU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772421928; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=QTr9+DhQbA8z2ptcwK+NwgjYEPC4vv3DDRrzD0hRmz8=; b=hYVqPPIHJg+7m7SHDXOnOeZ+iVt5CYSine2jZxxR+xZ/QFUylr2vBC2FLgwruSD399dmc7nvyZxB2ka1zMhU18Yyhx9ilNbux7gpbJa71pwBy9XNrsEsmitHILkeJeO9RYclf1M5vc3MgvoyDgcaSD1ezIRxFPIYOCVEbIv35qg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772421927241852.3871920190901; Sun, 1 Mar 2026 19:25:27 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vwttw-0004A1-R4; Sun, 01 Mar 2026 22:24:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vwttq-00048m-3s for qemu-devel@nongnu.org; Sun, 01 Mar 2026 22:24:50 -0500 Received: from p-west2-cluster6-host7-snip4-10.eps.apple.com ([57.103.70.53] helo=outbound.mr.icloud.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vwtto-0008JO-PJ for qemu-devel@nongnu.org; Sun, 01 Mar 2026 22:24:49 -0500 Received: from outbound.mr.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-2a-60-percent-11 (Postfix) with ESMTPS id 206141800171; Mon, 2 Mar 2026 03:24:45 +0000 (UTC) Received: from localhost.localdomain (unknown [17.57.152.38]) by p00-icloudmta-asmtp-us-west-2a-60-percent-11 (Postfix) with ESMTPSA id 1872518000A6; Mon, 2 Mar 2026 03:24:43 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr; s=sig1; t=1772421887; x=1775013887; bh=QTr9+DhQbA8z2ptcwK+NwgjYEPC4vv3DDRrzD0hRmz8=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=OQGFPoMOG45tPUcvHFqz5V2qax0aax8Ri7/VZOJ/oPm8I0n4j5Ybtx/nMGYyGlRtZluuJOnrgSp7Lx8AqBykvJFbH4K2KduSZQZHEjJ+QS9GE0o3KUMAfSWVt7Hfg2Omr4BqLWOaMvbt1n9Zrx0ardvLuG0O3zJvEvcN5D/kqTvgkUj7TE1nHQSRGvBv6dZqRxZKsAZOBDhMwT+rCItgm4xUCnIPGr1SesNKPKmwmKHD4DYNFzn+fyQIyoUyrCBMoPJi6qqzBE2PR5zHJSRw5GENT5bSxKS8z7ezIznvRCRbBmcLNqgsqb9rqPjwTndP8Nkxzt6yYiqukFhuLhU6Ag== mail-alias-created-date: 1752046281608 From: Mohamed Mediouni To: qemu-devel@nongnu.org Cc: Pedro Barbuda , Wei Liu , Cameron Esfahani , Mohamed Mediouni , Roman Bolshakov , Phil Dennis-Jordan Subject: [PATCH 3/3] whpx: i386: enable some more enlightenments Date: Mon, 2 Mar 2026 04:24:35 +0100 Message-ID: <20260302032435.42698-4-mohamed@unpredictable.fr> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260302032435.42698-1-mohamed@unpredictable.fr> References: <20260302032435.42698-1-mohamed@unpredictable.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzAyMDAyOCBTYWx0ZWRfX67CGOgBXRilp vJMjeHTFLeKfWPxQzfU3pXgsEl51qEVqLfn4ENoD5m8y0s9hONri4CGAVdfxdfJyCnNaAVN7sDc K2QPP75WI64tiujQgJ8+LF9HNTbxCV3n3CvKUUpAiqw/NC8Rc21dA0DhNgpq8tQBA6OADw02tjJ B+I1+eTzQ5H9ul+oVN2UBouY+PgpmCRypwhiqzNi3Cf329aD4rB/OHn0Ltl1xUD19qmDUiDWdDZ TebI2ErKZMR6cgWo64zb62p465AkcKaCmwNbcKcl6L6j6PfNXWDdBvp+rhH/tbf576fnEr6CD4R jMK4HxeSyLzsp8lYghJcWor8GEAlzky/O4VPGE24r/ZjU4WN4iwv9JsMV9EVfE= X-Proofpoint-GUID: 6UwK83FJjBVz7UqI2f88FVfhnSU-scTg X-Proofpoint-ORIG-GUID: 6UwK83FJjBVz7UqI2f88FVfhnSU-scTg X-Authority-Info-Out: v=2.4 cv=YbKwJgRf c=1 sm=1 tr=0 ts=69a502fe cx=c_apl:c_apl_out:c_pps a=9OgfyREA4BUYbbCgc0Y0oA==:117 a=9OgfyREA4BUYbbCgc0Y0oA==:17 a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=lWQTlSF5RC17BzGQrLAA:9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-02_01,2026-02-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 clxscore=1030 malwarescore=0 adultscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 mlxlogscore=758 phishscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2603020028 X-JNJ: AAAAAAABT/cVV45kfeorZ6r8z3cWs4CEhoCnSg2YiNkNrAt/tBM2+vywZMyElDtuF3rxvfUH/WpcPPTiVeXbbckGmNT787Ie3x3wftHwOWYo0Q8YE4bsqSF4cdn6zHxpOzreaynepxJNuR5+AFndS8WPxR76F4ih8ZXN6fFmNhrs2YYev5GghHiUybYUUNmRnYaQBig6eh+6GI3UDWQNoZYM8AKOy5sYgQPZC1paZA6WsF6yMXb+MD7iYhq7cApEpuHr0ZCMLPeDd4wGwvNcgS/1I6+6cXpIOX1XJWkvR0wfCMFvSrMHSqVWXuLV5Jw6tFuVuXpodkUPxB3H+MERmUZPu5dkwnxlFKjwFQdOUHaLl9zdYa3WKgvW/Ia9ZH0WJWHhbWxLNX5KgLZd6GmM+anjmVGocdsn53vHf9XWouO8Vn6lhMzgSTBdlqA+WOe7DbflaEbyCUE2yA7b77nZQusmt8AioIp+2RBzEkf57JuidSY45+DjQxna1O+hkF123tq0bNcVdf/cTD+jhPjsj0efemEgo97By3obC6l2zT4ZYvwZ16HMD9A85cGsgqhFB6wy2I15tP+7gaBNVXWxm3DcX2kxiHbvuYddSUp5TL7nYkO7quPoz25LpevBf6B22YgVf7ennPe3hemvYD0zr2osDsKBdQ7jF78NqAGCU0gar8UtGjr0tWDJfGdsYroYB9s= Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=57.103.70.53; envelope-from=mohamed@unpredictable.fr; helo=outbound.mr.icloud.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.012, RCVD_IN_VALIDITY_RPBL_BLOCKED=1.188, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @unpredictable.fr) X-ZM-MESSAGEID: 1772421932391158500 Content-Type: text/plain; charset="utf-8" Signed-off-by: Mohamed Mediouni --- target/i386/whpx/whpx-all.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c index 99c4d03f42..84fa980d35 100644 --- a/target/i386/whpx/whpx-all.c +++ b/target/i386/whpx/whpx-all.c @@ -2199,9 +2199,12 @@ int whpx_accel_init(AccelState *as, MachineState *ms) =20 synthetic_features.Bank0.HypervisorPresent =3D 1; synthetic_features.Bank0.Hv1 =3D 1; + synthetic_features.Bank0.AccessVpRunTimeReg =3D 1; synthetic_features.Bank0.AccessPartitionReferenceCounter =3D 1; synthetic_features.Bank0.AccessPartitionReferenceTsc =3D 1; + synthetic_features.Bank0.AccessHypercallRegs =3D 1; synthetic_features.Bank0.AccessFrequencyRegs =3D 1; + synthetic_features.Bank0.EnableExtendedGvaRangesForFlushVirtualAddress= List =3D 1; synthetic_features.Bank0.AccessVpIndex =3D 1; synthetic_features.Bank0.AccessHypercallRegs =3D 1; synthetic_features.Bank0.TbFlushHypercalls =3D 1; --=20 2.50.1 (Apple Git-155)