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=1772219254; cv=none; d=zohomail.com; s=zohoarc; b=KyPAKkF4fWhzRNi/0xIyFqUdUzvWnC8VKEBdhfOam7Oa09Y8gobngea+zrUb0nTX3esFPO/zIz3CFZopCYiLOqMwsnL+1JzSOkK+OnrB3yhCnN0CgslfXa1x/+vkC13zvrG+HtcTCjkYhq9Ko/cwJsD/Svi7DDo+/Ei3DMy/HjI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772219254; 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=4n4xIy8i5xV9kHLwKpAQhwfVxRJH3sNm66Cv+vgl914=; b=gPSL6sf/nCgaRu5+bv5t29ODXkSVj/qIi/XGxlvM2IgTYwAtIJ+Se9F7r3WpQfacydv6LqnNCFfflZbJAlTZJwgfcn4ADV996so/X5BFd8GrYUvB1P8TjEZxBzdf4A5YobLs+K0C3KeDFgCyNo/dFPMmNcxN7+b3Fgppcnk0w6A= 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 1772219254282185.84704191005937; Fri, 27 Feb 2026 11:07:34 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vw3Af-0003Fs-Np; Fri, 27 Feb 2026 14:06:41 -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 1vw3AW-0003E5-HF for qemu-devel@nongnu.org; Fri, 27 Feb 2026 14:06:32 -0500 Received: from p-west2-cluster3-host9-snip4-9.eps.apple.com ([57.103.69.72] 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 1vw3AU-0006R2-AY for qemu-devel@nongnu.org; Fri, 27 Feb 2026 14:06:31 -0500 Received: from outbound.mr.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-2a-100-percent-0 (Postfix) with ESMTPS id 25BD718000A6; Fri, 27 Feb 2026 19:06:25 +0000 (UTC) Received: from localhost.localdomain (unknown [17.57.152.38]) by p00-icloudmta-asmtp-us-west-2a-100-percent-0 (Postfix) with ESMTPSA id C64161800171; Fri, 27 Feb 2026 19:06:23 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr; s=sig1; t=1772219186; x=1774811186; bh=4n4xIy8i5xV9kHLwKpAQhwfVxRJH3sNm66Cv+vgl914=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=beeRE0hzMf6oj5ZjM4lMbOqFCOJONdwUBBIjRXcoAHeB+wSRdiFFkkHKP7fyxZ9VxiUfF2a6KOqs3CXOTtRxSufw2RWfrmVjG2fwUS78qagM01eUFabUJuxZMfXo/tmRFPsbz3cIBb/liHZBq3UU7DcnRXZro8LTjU00APbvViAF8ZRDyMrNLZZ+qItzuPvzgSfTYOw1gsKQpBfr2iqkj4fGPltcPdWsGNPr3d4GOpzklqpGxZ4jhM9slYxQChxHkLUKHpPCJhUJryLKQaWmmo4GimuVkXIg5KtI3P2NbTqpDMYW8SOqrjmU7kNzhE/FRYt3Ssyj5ssBo4/xDVXnUQ== mail-alias-created-date: 1752046281608 From: Mohamed Mediouni To: qemu-devel@nongnu.org Cc: Mohamed Mediouni , Pedro Barbuda Subject: [PATCH 1/4] whpx: i386: move whpx_vcpu_kick_out_of_hlt() invocation to interrupt raise time Date: Fri, 27 Feb 2026 20:06:16 +0100 Message-ID: <20260227190619.8867-2-mohamed@unpredictable.fr> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260227190619.8867-1-mohamed@unpredictable.fr> References: <20260227190619.8867-1-mohamed@unpredictable.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjI3MDE2OCBTYWx0ZWRfX5+4bJ0qZxnOm NCALgzMTKGkJl0hreC+5JIyAhD33ijcl6UCPs33dSte3qkqoa7xfitsWWRvysMDP8VVFiKj8/sV gFUn1WzS6ud/RQktS3h+Hjt7rJVCYqpAVT04uTzoimdruka+/wVIq+y7JSjIRlgyN2tVz3pHQbQ KAdkukaY2om0nvOh7FR3kDyVfBjVa4hR9LEvAlkUx83jUuPC5Jg9RRulzVCY0TB5SGDwBZ1hWlm N4Odcf3BCWouRqce9ilMr8Z4UnaPsb4X//TmYF+OeUMWp3chTZtAP6WfH358xElZ/8z4i+ZLbHc GkSWrUBAhYsrAVxK5E9dLxfxF5GKrQwiICim+6Sa2TgpKwCyGg7KtIiPb6s62I= X-Proofpoint-GUID: wYGUP3lI72CoypRWrWwvwlLaeNNcRrfC X-Authority-Info-Out: v=2.4 cv=RYadyltv c=1 sm=1 tr=0 ts=69a1eb31 cx=c_apl:c_apl_out:c_pps a=9OgfyREA4BUYbbCgc0Y0oA==:117 a=9OgfyREA4BUYbbCgc0Y0oA==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=o8I7T96M5UCSVa1h564A:9 X-Proofpoint-ORIG-GUID: wYGUP3lI72CoypRWrWwvwlLaeNNcRrfC 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-02-27_03,2026-02-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 clxscore=1030 suspectscore=0 adultscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 mlxscore=0 phishscore=0 lowpriorityscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602270168 X-JNJ: AAAAAAABVP2HDaZOd/r5FMXVj76K5HmnFbFheYm7kgnW4MIfRrpy9RUN0bccWc9po2/nPAzMv5rTz1KUENJTUzM6NuFYKX6jBTDQELK0hZNvEJjgGN8LglQMjcc/qSR0EqYIVViJR4FUEfJXDj2alrHDZZ1q9McGsaKnv06+BxUeluyQcwSdIHy5BqobUxrFdUpyh5ezp8he/HzvShv7QZLjluA7sbfAauecIsqmg98m3mhjGOM9JcSLWb1czhnI/amzMGZ/glgh8P5Q4RE0qbrBy9Vc4JsatnT3phHP1c2mYvTkC0epf1GKvA1oWKh0Qcz8BGu23XySmx5Jw9E4TLw2YipwNM+OHTnpdlerrSnwrFAgAMkw7cIgoKPfCp+KvCOb6TAlMDvVm4FBI49QQVEdBmQS4WloMfa7L7nMxx7DvM/MxOC79pMOnIuezlO5uBGauIrc32BARFoI+JKHx7EqVklSg1WLtlo1+oEd9TaKISDmlFFr4EsMHccWofJZbAnf64p9Jckc5mTui+fiUlMGH1VK7PzmoSq9P+TezLyp5gA698PlPS/CPiWtHb0pngUEsnABHcK+YBe9D2CFovPw0INRzUhoFYe4m/TY29HJfOCKFBI2/G176eD17gxminlH5bzDioY= 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.69.72; envelope-from=mohamed@unpredictable.fr; helo=outbound.mr.icloud.com X-Spam_score_int: -9 X-Spam_score: -1.0 X-Spam_bar: - X-Spam_report: (-1.0 / 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.706, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.401, 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: 1772219263664158500 Content-Type: text/plain; charset="utf-8" This fixes the sti followed by hlt kvm_unit_tests. Signed-off-by: Mohamed Mediouni --- target/i386/whpx/whpx-all.c | 49 ++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 28 deletions(-) diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c index 6d2771a98a..90f51fc4dd 100644 --- a/target/i386/whpx/whpx-all.c +++ b/target/i386/whpx/whpx-all.c @@ -1308,6 +1308,16 @@ static int whpx_handle_halt(CPUState *cpu) return ret; } =20 +static void whpx_vcpu_kick_out_of_hlt(CPUState *cpu)=20 +{ + WHV_REGISTER_VALUE reg; + whpx_get_reg(cpu, WHvRegisterInternalActivityState, ®); + if (reg.InternalActivity.HaltSuspend) { + reg.InternalActivity.HaltSuspend =3D 0; + whpx_set_reg(cpu, WHvRegisterInternalActivityState, reg); + } +} + static void whpx_vcpu_pre_run(CPUState *cpu) { HRESULT hr; @@ -1391,6 +1401,17 @@ static void whpx_vcpu_pre_run(CPUState *cpu) .Vector =3D irq, }; reg_count +=3D 1; + /*=20 + * When the Hyper-V APIC is enabled, to get out of HLT we + * either have to request an interrupt or manually get it away + * from HLT. + * + * We also manually do inject some interrupts via WHvRegisterP= endingEvent + * instead of WHVRequestInterrupt, which does not reset the HL= T state. + */ + if (whpx_irqchip_in_kernel()) { + whpx_vcpu_kick_out_of_hlt(cpu); + } } } =20 @@ -1453,15 +1474,6 @@ static void whpx_vcpu_post_run(CPUState *cpu) !vcpu->exit_ctx.VpContext.ExecutionState.InterruptShadow; } =20 -static void whpx_vcpu_kick_out_of_hlt(CPUState *cpu)=20 -{ - WHV_REGISTER_VALUE reg; - whpx_get_reg(cpu, WHvRegisterInternalActivityState, ®); - if (reg.InternalActivity.HaltSuspend) { - reg.InternalActivity.HaltSuspend =3D 0; - whpx_set_reg(cpu, WHvRegisterInternalActivityState, reg); - } -} =20 static void whpx_vcpu_process_async_events(CPUState *cpu) { @@ -1770,25 +1782,6 @@ int whpx_vcpu_run(CPUState *cpu) cpu->exception_index =3D EXCP_INTERRUPT; ret =3D 1; } - /*=20 - * When the Hyper-V APIC is enabled, to get out of HLT we - * either have to request an interrupt or manually get it away - * from HLT. - * - * We also manually do inject some interrupts via WHvRegisterP= endingEvent - * instead of WHVRequestInterrupt, which does not reset the HL= T state. - * - * However, even with this done, if the guest does an HLT with= out - * interrupts enabled (which the test_sti_inhibit KVM unit tes= t does) - * then the guest will stay in HLT forever. - * - * Keep it this way for now, with perhaps adding a heartbeat l= ater - * so that we get the CPU time savings from having Hyper-V han= dle HLT - * instead of going away from it as soon as possible. - */ - if (whpx_irqchip_in_kernel()) { - whpx_vcpu_kick_out_of_hlt(cpu); - } break; case WHvRunVpExitReasonX64MsrAccess: { WHV_REGISTER_VALUE reg_values[3] =3D {0}; --=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=1772219225; cv=none; d=zohomail.com; s=zohoarc; b=nkkwAIwQ8biX6SrrDbzzuZDhdVMlb7zpSCBI6jdZTYMywI0zMFnmhFV+EuCnzisd3ZYE3KygjfX8Vx+n8wvY5QdbzKOaMhINmm4niK3hCdozsBKE8AHCPG9LHjtbSi18UnNUnXpalvNPkNR9jRxy7DrgAxFbMBk40XeMLZJ4fcQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772219225; 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=x5vmcSdYHKQ1byZOmRZeGIdImPo+Cp8DSOTH0Tm5/x8=; b=fMpvBUhvdeurVAfkH8Y/d5NZ1MOQHkbBJKRklTAsxzjdUb0lES45/8Wg1GBIX+YhSAu0ZNDHxuDPojgsXAJP7J0UDdYMA6lvrwqIXPEiY/eYQ/3qh/RexlBLQIP6XRpIUj1ySGRVkZcxGJZgk66AEGLGyL4HJHh+3h9Y/dmEwKo= 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 1772219224390976.1759546089605; Fri, 27 Feb 2026 11:07:04 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vw3Ah-0003GN-C6; Fri, 27 Feb 2026 14:06:43 -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 1vw3AX-0003EQ-E0 for qemu-devel@nongnu.org; Fri, 27 Feb 2026 14:06:34 -0500 Received: from p-west2-cluster3-host10-snip4-1.eps.apple.com ([57.103.69.74] 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 1vw3AU-0006R6-AU for qemu-devel@nongnu.org; Fri, 27 Feb 2026 14:06:33 -0500 Received: from outbound.mr.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-2a-100-percent-0 (Postfix) with ESMTPS id 6B839180029A; Fri, 27 Feb 2026 19:06:26 +0000 (UTC) Received: from localhost.localdomain (unknown [17.57.152.38]) by p00-icloudmta-asmtp-us-west-2a-100-percent-0 (Postfix) with ESMTPSA id EBB8818000A3; Fri, 27 Feb 2026 19:06:24 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr; s=sig1; t=1772219187; x=1774811187; bh=x5vmcSdYHKQ1byZOmRZeGIdImPo+Cp8DSOTH0Tm5/x8=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=fiRKPHAbhLtbIi4NhOjRl/OvlnKUev0dEbI4z90DCSGY9gNue+vNMTaGmClNVON36TXD05Rrr2buUxVn9Z+T7BobspoDUBJI57W42gAf7XEg0v7qWX1JqDZOpRed/07RP/hIv33x1kpxn5P9fC+IYcOuDnOwpXZtRzvENJdbup9XBCKXD2QqFtniKLA+PdIuZQUDtp46Hh81cQ5M9JwVPJw4Kly3rkks7LKNYUU3YzMuqtIjSUnLzw2BRbKE8UXDvniRbsG2qXJMv2jK9bhPennwf3sr0/4u7cd1R8Bf1jbakyTJhKpqkPcitQgcDdEcZq4YMqozvC/FdU0i3BwuOA== mail-alias-created-date: 1752046281608 From: Mohamed Mediouni To: qemu-devel@nongnu.org Cc: Mohamed Mediouni , Pedro Barbuda Subject: [PATCH 2/4] whpx: i386: enable all supported host features Date: Fri, 27 Feb 2026 20:06:17 +0100 Message-ID: <20260227190619.8867-3-mohamed@unpredictable.fr> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260227190619.8867-1-mohamed@unpredictable.fr> References: <20260227190619.8867-1-mohamed@unpredictable.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Info-Out: v=2.4 cv=a9E9NESF c=1 sm=1 tr=0 ts=69a1eb32 cx=c_apl:c_apl_out:c_pps a=9OgfyREA4BUYbbCgc0Y0oA==:117 a=9OgfyREA4BUYbbCgc0Y0oA==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=268zvHjo1I8v1SDp_XwA:9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjI3MDE2OCBTYWx0ZWRfX7q1Em4Ix0omU yR1nONPhsiibmXM9xElV07wcoeSBEZZTgbBEw2ryu3Qnmfj+t6R0k8bzfopn5PPLbJUCdoABcxN VDKFmvwja5xRazabUmd6qGNURw4JMpv0M3fo7Uc1rdOx4OuF6+s1M6XcTDtrJ0XZWgGGxawv+Ng 62cqVEJyOXD8JzrT3C1JAl/t4v4PMdldGM84c4Xa2p0fME70XiYIOmb29UxDrRNfwIOpFBYLT4j X/N1U24BmC+qrMGh46bdnNvJEFIl+z4OYSvYSVNPpWTrhsxNsIw8Ppu2AkQWK0KJoEe8mneE6c2 Z/Asug/nRFJZgy2ae2UuR+fg76yVSq0nSjRcLG9yPxv/P1fkYxeVysMBvhe80k= X-Proofpoint-GUID: douEmjVZadDod2LZlLKH4PzJcBoce-yH X-Proofpoint-ORIG-GUID: douEmjVZadDod2LZlLKH4PzJcBoce-yH 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-02-27_03,2026-02-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 malwarescore=0 adultscore=0 spamscore=0 mlxlogscore=800 lowpriorityscore=0 phishscore=0 mlxscore=0 clxscore=1030 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602270168 X-JNJ: AAAAAAABrBtT7Xfbki2xEF7f4AYjz8AmlDmyEO7OULyLE5NwRQX1nXFeMEsC7O370PtZ/G3x/Qpj+9eB5NV2qPgi7c5nItD1tCx09a9Bl28w2pZZ3k1vC7HVn5Vb99qViDGU0LIapBvf7WL2NuwwdSJPbnG+3nDti4Vl2DTBmmpIzTGdJBx7J2y+fghHzWLwi7EW7qIE/1tg0tffERJyK4q1VvB5vjkSO3f32GNjg+vsnp52Qv6rN0wsr/nLHmunf+ud222a74JPDreJPar/kda/V0mgSMKJ+QSzeNic23Qk/IP6sCUXgIsyXsSttPbT+xudZgXfYe1+PZqr9hTGr5zQCGeBgXT0txGgd1YEprVVsRqtvZR0fgUgEUH8P7RZWAU+dXIo7lF17/r2g3Sc7OxOiQ8/gvvaTHtQYKAY/AxYjvzvDA/0C+HsiqJSYvrIOPawnkbhRCs4riQOe8O8q0lVuADGZIeqDLOXBOhu+c/eNRJUR7yHrpxIhZsg6URl+5mHReSfTB+aCPSWsXwX5tlP0Q7rmQQLeZH21snzVF2YZEu7pa0PK+vJfHGLeBRXHQa9y3cKlyUlLYLFsNXAF9oriyI/1xhzXy8DKnwOtO6ia9aUaqrpCTRu1A== 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.69.74; envelope-from=mohamed@unpredictable.fr; helo=outbound.mr.icloud.com X-Spam_score_int: -9 X-Spam_score: -1.0 X-Spam_bar: - X-Spam_report: (-1.0 / 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.706, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.401, 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: 1772219229408158501 Content-Type: text/plain; charset="utf-8" Signed-off-by: Mohamed Mediouni --- target/i386/whpx/whpx-all.c | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c index 90f51fc4dd..ccc52d1f96 100644 --- a/target/i386/whpx/whpx-all.c +++ b/target/i386/whpx/whpx-all.c @@ -2007,6 +2007,7 @@ int whpx_accel_init(AccelState *as, MachineState *ms) UINT32 whpx_cap_size; WHV_PARTITION_PROPERTY prop; WHV_CAPABILITY_FEATURES features =3D {0}; + WHV_PROCESSOR_FEATURES_BANKS processor_features; =20 whpx =3D &whpx_global; =20 @@ -2112,6 +2113,45 @@ int whpx_accel_init(AccelState *as, MachineState *ms) } } =20 + /* Set all the supported features, to follow the MSHV example */ + memset(&processor_features, 0, sizeof(WHV_PROCESSOR_FEATURES_BANKS)); + processor_features.BanksCount =3D 2; + + hr =3D whp_dispatch.WHvGetCapability( + WHvCapabilityCodeProcessorFeaturesBanks, &processor_features, + sizeof(WHV_PROCESSOR_FEATURES_BANKS), &whpx_cap_size); + if (FAILED(hr)) { + error_report("WHPX: Failed to get processor features, hr=3D%08lx",= hr); + ret =3D -ENOSPC; + goto error; + } + + if (processor_features.Bank1.NestedVirtSupport) { + memset(&prop, 0, sizeof(WHV_PARTITION_PROPERTY)); + prop.NestedVirtualization =3D 1; + hr =3D whp_dispatch.WHvSetPartitionProperty( + whpx->partition, + WHvPartitionPropertyCodeNestedVirtualization, + &prop, + sizeof(WHV_PARTITION_PROPERTY)); + if (FAILED(hr)) { + error_report("WHPX: Failed to enable nested virtualization= , hr=3D%08lx", hr); + ret =3D -EINVAL; + goto error; + } + } + + hr =3D whp_dispatch.WHvSetPartitionProperty( + whpx->partition, + WHvPartitionPropertyCodeProcessorFeaturesBanks, + &processor_features, + sizeof(WHV_PROCESSOR_FEATURES_BANKS)); + if (FAILED(hr)) { + error_report("WHPX: Failed to set processor features, hr=3D%08lx",= hr); + ret =3D -EINVAL; + goto error; + } + /* Register for MSR and CPUID exits */ memset(&prop, 0, sizeof(WHV_PARTITION_PROPERTY)); prop.ExtendedVmExits.X64MsrExit =3D 1; --=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=1772219247; cv=none; d=zohomail.com; s=zohoarc; b=a8u1yw/B6sIBRcGwYEeeFNrkysC81z3n7I1S6rcPx6hW0y4LwqKKvfb5IaO0D+r6+Qgh0q0Zc/O2AixDKxZGmTftEfQ8r2bhA0o6cQW/9JNeJk1muHZyjpN0h0a5A0hXGy0dq1bWxBgeLQj8FZPVlMXIgxj2YI6M37PgyWMwA8c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772219247; 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=LjzGrhEn0ykJAOrChlujow4EMgIqhCxyPavUws3eZDg=; b=Dd8Nz8Ow/d09CMdK+mewctSo1RkXmHay6zNrHVLSkZv21WcKF3u9C/YCf12K2lWa6YhQo7YBqsAvFT+4GURSHxheCbCcOMhAbmrN6FKi5+TLsUYPi4a8D/zz9YN5yBHoOAXE5ryFavGTKOXRutpTIBXODdkkLq/iJtr82lFQXIA= 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 1772219247375172.57003935079194; Fri, 27 Feb 2026 11:07:27 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vw3Ah-0003G4-54; Fri, 27 Feb 2026 14:06:43 -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 1vw3AY-0003Es-Oe for qemu-devel@nongnu.org; Fri, 27 Feb 2026 14:06:35 -0500 Received: from p-west2-cluster3-host6-snip4-4.eps.apple.com ([57.103.69.97] 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 1vw3AW-0006RE-8Y for qemu-devel@nongnu.org; Fri, 27 Feb 2026 14:06:34 -0500 Received: from outbound.mr.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-2a-100-percent-0 (Postfix) with ESMTPS id 768E51800155; Fri, 27 Feb 2026 19:06:27 +0000 (UTC) Received: from localhost.localdomain (unknown [17.57.152.38]) by p00-icloudmta-asmtp-us-west-2a-100-percent-0 (Postfix) with ESMTPSA id 1E53818001B0; Fri, 27 Feb 2026 19:06:25 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr; s=sig1; t=1772219188; x=1774811188; bh=LjzGrhEn0ykJAOrChlujow4EMgIqhCxyPavUws3eZDg=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=f4fW1R68Yt+08jCkuj2LELOVbDapZWkwDw2sAhhxgUJh9+AlEyVUm5jrNSvDeZhEue5JsuWjLbxE5nPn8PJyQShF0ghN9NJiJJJ3J7O1sfPbs/jfkjlczCUJ02erJd7/tAr0Tb7QDomt7MKGz12LHBHOZIqb7dzu/KMVdLqpthYRWgOuJvaIGEcBoKHo41UQtdh3/O2bwnmhbBODYMCHfpf6WqwHeNqEXfgpbepxjWnEo+VgntJLZopsmUB79x+zNfayOAe1aql6u19V0ReVhh+N7Ah2XzkeAFn3ZVCu4NgtiP6FE7+enBUkHpmGcNlZeTJbnUB2B5VMpAxCILIURA== mail-alias-created-date: 1752046281608 From: Mohamed Mediouni To: qemu-devel@nongnu.org Cc: Mohamed Mediouni , Pedro Barbuda Subject: [PATCH 3/4] whpx: i386: enable synthetic processor features Date: Fri, 27 Feb 2026 20:06:18 +0100 Message-ID: <20260227190619.8867-4-mohamed@unpredictable.fr> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260227190619.8867-1-mohamed@unpredictable.fr> References: <20260227190619.8867-1-mohamed@unpredictable.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: K0CYA5vu2nTuqjOGsJNdEAifx3tsW4qq X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjI3MDE2OCBTYWx0ZWRfX46fsds8AoWCe LTh1P7aSMUxUqkWqcyJrrrUSMYB4EXcpwxidmbxICUyToma2tnYWP5uQVv7MaJrTSJXvHgAYIwo Rl5v8SA2EdlNrirEeTke4lpBxXi8FtsLmbwTCYbTFFO0xEeEdnvc3NH3uGoBquNYucGB6otnrmo cGglka2yMYy7hjQLWNIX+sXAXgKU+nynbt7GrufZt3qP8HuzqoAegbL9rSmgExhTGW9SxqMnWbb SF+fZHfLUdIU+6uEEbPl2vThb1CI3XOMnd+Q9toWpFNv6QemHwvPZT08dozJymhQoES6GQggM0E 8QfqAs7leA1fzfNyPTmAm7GhXzti8MV5HU0xAlHGZzxwEwnoIaFyQ5W6phUuyY= X-Proofpoint-ORIG-GUID: K0CYA5vu2nTuqjOGsJNdEAifx3tsW4qq X-Authority-Info-Out: v=2.4 cv=N9Uk1m9B c=1 sm=1 tr=0 ts=69a1eb33 cx=c_apl:c_apl_out:c_pps a=9OgfyREA4BUYbbCgc0Y0oA==:117 a=9OgfyREA4BUYbbCgc0Y0oA==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=zrTx395S4Ej948ve6SYA: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-02-27_03,2026-02-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 clxscore=1030 bulkscore=0 spamscore=0 malwarescore=0 mlxscore=0 suspectscore=0 mlxlogscore=852 lowpriorityscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602270168 X-JNJ: AAAAAAAB8iFCAEPAbKZgLVEkUVVYiZqkYMGYQrq4sHTiZ2Fdhu6LYC57GujvsOcy54dtRp1EaL3A8nsTGofdpt1tI4iyKIl6ktA3v9iY/UpkGCcjRz+zlwrGei232iHXvASwiW4rKU7D0obvMi09FoHjLYMuZHf/EnmPu7XWbE3C6mElEkWWhc2jrPtfV2ua8VIH/DnalwyIYwoxuVGNEqgg7+Kmy5+Yk6LKuJYBlo7TKcFYTuGY0yf0oSpc/bcLU8OndyVK9s3FXa2PMaEWSM0iLPMqdj3zS4g51Ybb5AQWSllFuN2VIRwAbZQeEqm7iq4Cnl/FBKbp4iUfKe0tus1IGScgrfsXtrWql7Vz23pze/URxWAq17OCqBNL02dFU+qcpcn5Nf3NSR/SIiWrjpud74TPlX11hvIJCKdZP+6FJ4uAAAJhdsG3gFolXHgMPwXirbE7RAvXiN4ONjKoNVCKFR6Rh0l+NbsTHSyZhHRxNrJfLkhhsEPumaE2j8K+mH8m/HoD0Ic5Nw+aA3AXgjs7ZbrwaAd2JJ8NCT/46/zAr8f1Rr4K216Ve3EGT+1e7RILadb0LjwyW2aBDuHBd5J/cmcMEFgLGDWQ0mI= 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.69.97; envelope-from=mohamed@unpredictable.fr; helo=outbound.mr.icloud.com X-Spam_score_int: -9 X-Spam_score: -1.0 X-Spam_bar: - X-Spam_report: (-1.0 / 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.706, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.401, 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: 1772219248080158500 Content-Type: text/plain; charset="utf-8" At the point in time in which we setup the partition, the vCPUs aren't available yet. So enable them by default for now like what the MSHV backend does. AccessFrequencyRegs is shared for both the LAPIC frequency reporting and th= e TSC frequency. To still benefit from the fixed TSC frequency reporting when kernel-irqchip= =3Doff, still enable AccessFrequencyRegs anyway. Signed-off-by: Mohamed Mediouni --- target/i386/whpx/whpx-all.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c index ccc52d1f96..e7e0a50da6 100644 --- a/target/i386/whpx/whpx-all.c +++ b/target/i386/whpx/whpx-all.c @@ -2152,6 +2152,40 @@ int whpx_accel_init(AccelState *as, MachineState *ms) goto error; } =20 + /* Enable synthetic processor features */ + WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS synthetic_features; + memset(&synthetic_features, 0, sizeof(WHV_SYNTHETIC_PROCESSOR_FEATURES= _BANKS)); + synthetic_features.BanksCount =3D 1; + + synthetic_features.Bank0.HypervisorPresent =3D 1; + synthetic_features.Bank0.Hv1 =3D 1; + synthetic_features.Bank0.AccessPartitionReferenceCounter =3D 1; + synthetic_features.Bank0.AccessPartitionReferenceTsc =3D 1; + /* if kernel-irqchip=3Doff, HV_X64_MSR_APIC_FREQUENCY =3D 0. */ + synthetic_features.Bank0.AccessFrequencyRegs =3D 1; + synthetic_features.Bank0.AccessVpIndex =3D 1; + synthetic_features.Bank0.AccessHypercallRegs =3D 1; + synthetic_features.Bank0.TbFlushHypercalls =3D 1; + + if (whpx_irqchip_in_kernel()) { + synthetic_features.Bank0.AccessSynicRegs =3D 1; + synthetic_features.Bank0.AccessSyntheticTimerRegs =3D 1; + synthetic_features.Bank0.AccessIntrCtrlRegs =3D 1; + synthetic_features.Bank0.SyntheticClusterIpi =3D 1; + synthetic_features.Bank0.DirectSyntheticTimers =3D 1; + } + + hr =3D whp_dispatch.WHvSetPartitionProperty( + whpx->partition, + WHvPartitionPropertyCodeSyntheticProcessorFeaturesBanks, + &synthetic_features, + sizeof(WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS)); + if (FAILED(hr)) { + error_report("WHPX: Failed to set synthetic features, hr=3D%08lx",= hr); + ret =3D -EINVAL; + goto error; + } + /* Register for MSR and CPUID exits */ memset(&prop, 0, sizeof(WHV_PARTITION_PROPERTY)); prop.ExtendedVmExits.X64MsrExit =3D 1; --=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=1772219224; cv=none; d=zohomail.com; s=zohoarc; b=HF8Xa8oJAfjY+czCgGTvPO79CBdWtTLw9UbUkL7Wj2VC0R2xxvXDNNHWuwkwTbX1EyG9DVRid4av7X/H0ividnl1dXXCKwkQ9R3DgrDCAD0dsldIJQLVWWhm2tGnekpiG7Qwhmw0GF7slmoCyypiuWOeCAwUSq6E0qFGtMRM8t0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772219224; 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=gWqREj2PmGRoTAKiY4qI6uX1E9aTXQTeVV/xFA3kCyI=; b=FOiaXgQSyJU+UWfCfV1xg6tp8dFqmF7B3C+bCU+lvltb5kQgbgmPQcf2j8ROtAufTmBG9GAZPiAL1Eh8yLZpgjXY+dUCo+tGgEAQlc7tW3kHjaoDOtFVMOpuTMBWfeWadtdRNMVKovN92me3ps+NLbyEpgVNdWulknT99G1weD8= 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 1772219224077335.0876817143518; Fri, 27 Feb 2026 11:07:04 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vw3Ac-0003F4-Fq; Fri, 27 Feb 2026 14:06:38 -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 1vw3AY-0003EV-60 for qemu-devel@nongnu.org; Fri, 27 Feb 2026 14:06:34 -0500 Received: from p-west2-cluster3-host10-snip4-6.eps.apple.com ([57.103.69.79] 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 1vw3AU-0006RO-Jb for qemu-devel@nongnu.org; Fri, 27 Feb 2026 14:06:33 -0500 Received: from outbound.mr.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-2a-100-percent-0 (Postfix) with ESMTPS id B6ED91800287; Fri, 27 Feb 2026 19:06:28 +0000 (UTC) Received: from localhost.localdomain (unknown [17.57.152.38]) by p00-icloudmta-asmtp-us-west-2a-100-percent-0 (Postfix) with ESMTPSA id 4E30518001BE; Fri, 27 Feb 2026 19:06:27 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr; s=sig1; t=1772219189; x=1774811189; bh=gWqREj2PmGRoTAKiY4qI6uX1E9aTXQTeVV/xFA3kCyI=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=Hkk3/OuhikoQAhN2gF+acMeRdh+9fhSjfYPtyzpdhfdfiGrA48y1MS7dQQMrMdtIB8LuWxPZAQXR9v/S1Nmt8WVOZSRjrzfvrimpJKODO9QmKCUlO7Ej6TwYTQ74mUQqV6/TPkBTdgnModGnZoksF5OaAc/DJkDGWLae6bh3T6PQfLeCdJSzGU7kfaQ92rUEKvcRbQPT8gsj1AWE9E1nNw86Z+uDIKUeUnEYdZId5Yct/PIWFDud0vbYXj7SNhKw6K/4kCEZEvVp7JUYFzE+ZMM9OgEdgAHfwHmDIO5dXnXo0XOM4O9pcv9bwq5QuRLoSyaoH6Mh3wfBXGEetAlE2g== mail-alias-created-date: 1752046281608 From: Mohamed Mediouni To: qemu-devel@nongnu.org Cc: Mohamed Mediouni , Pedro Barbuda Subject: [PATCH 4/4] whpx: i386: warn on unsupported MSR access instead of failing silently Date: Fri, 27 Feb 2026 20:06:19 +0100 Message-ID: <20260227190619.8867-5-mohamed@unpredictable.fr> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260227190619.8867-1-mohamed@unpredictable.fr> References: <20260227190619.8867-1-mohamed@unpredictable.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Info-Out: v=2.4 cv=MKZtWcZl c=1 sm=1 tr=0 ts=69a1eb35 cx=c_apl:c_apl_out:c_pps a=9OgfyREA4BUYbbCgc0Y0oA==:117 a=9OgfyREA4BUYbbCgc0Y0oA==:17 a=HzLeVaNsDn8A:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=qc3z_Y1wnV_HfSY8uEAA:9 a=zZCYzV9kfG8A:10 X-Proofpoint-GUID: RdlcglUIO8SveWwayZMzq63eZgIX7wFO X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjI3MDE2OCBTYWx0ZWRfXyDRU1yCodTG/ JCKPrYR4e5RVrCmqTdURW+jKRkyZPyYDYj3p+pXtkmcEpzvvqKZO2GxkLCyXDxVxBUOh2QNH67d cQ9f413pShwBYjaMYj/QL2qGdE37GNTdLFx7hh9dlglb9WDuIT8gIFvdh1IMRKnDLWuofmWa/07 6W05jNvsSQJQm57dNWs2Nqp3rI/KFfoHFc6Qu2ztpFDbwfFd9L3qCTZorKr4pcjnZ/HvszM8nfn XbpkGXf3vGZq7MifRQb4Ray6IRAycbWmea3SiQgjOYtVnlvCYQk1wQrNzDsu8F2uWXyNej0qpDg bLoLw1zuNaDySJi3Q6TOuKUuLf0DTlJQfsyooJamFC4DMQkyrkSFLycYLBlqGY= X-Proofpoint-ORIG-GUID: RdlcglUIO8SveWwayZMzq63eZgIX7wFO 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-02-27_03,2026-02-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=682 malwarescore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 adultscore=0 mlxscore=0 clxscore=1030 bulkscore=0 phishscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602270168 X-JNJ: AAAAAAABA3esUpypvGfnFyn+lf/IlrK95zylnwbRm4hqtW0bPUcq1577HPh2IWdIJXViWeXl0q+ArPovC1DyfXXvspWFk8m4S3kOPMPhT78oV5JR7qQUU4zBMs0FsPMNywEhSwIUJrRh/Vf6O6D1V6ZuBduLa+p31I35C7sZh7ZAJMA9b8BpbkqHRAG7e8qWXZHGs5lesCw3L0JBHbTC9z0PF6FDXc3DDN8F1M9Wie4nVuSZC1xzCqhmyCz40dU5o7OUN071Hu4Guc1jMFJOtRtubpzBZFYq3VNfsO9RPfiiIhJTsJG54gqoIOqHAyTvQq72vjnalSK3bWG8nGsUsk7CZ5vNaXC4eFZ71/Tn15G7hXtNYISqiWcjWJq9dF4WIgdhNcxikTTkoFFR61qy1y99oerd324XtvGTpvV8j3KMg3ODmnkqisjiLiBa6xbldzQBxiTrSO8n6+RBSnZiAi9xO6eztQr3bLgAN99Y6fKHj8I6mnWdIYRuIWrXaJMpoppuq8tgaEk0Rg79VWA3QS5Toleszx716z79QEDYOa+gxDG5ffObJqnMN4fmOlxkkvBBMAV4f+McVEnaP8B00mkLcMAH0cQ7yX13VqtRWSAh9Z2SsD8RKNBz3BlcSOiIFOajR011VyAyBZI= 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.69.79; envelope-from=mohamed@unpredictable.fr; helo=outbound.mr.icloud.com X-Spam_score_int: -9 X-Spam_score: -1.0 X-Spam_bar: - X-Spam_report: (-1.0 / 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.706, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.401, 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: 1772219229387158500 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 e7e0a50da6..5aa8baa4a2 100644 --- a/target/i386/whpx/whpx-all.c +++ b/target/i386/whpx/whpx-all.c @@ -1804,6 +1804,9 @@ int whpx_vcpu_run(CPUState *cpu) reg_count =3D vcpu->exit_ctx.MsrAccess.AccessInfo.IsWrite ? 1 : 3; =20 + warn_report("WHPX: Unsupported MSR access (0x%x), IsWrite=3D%i= ",=20 + vcpu->exit_ctx.MsrAccess.MsrNumber, vcpu->exit_ctx.MsrAcce= ss.AccessInfo.IsWrite); + hr =3D whp_dispatch.WHvSetVirtualProcessorRegisters( whpx->partition, cpu->cpu_index, --=20 2.50.1 (Apple Git-155)