From nobody Fri Nov 14 18:05:09 2025 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=1760636646; cv=none; d=zohomail.com; s=zohoarc; b=ZNI3KiPNjIwAW4dvnKGTwwcsY04SRnaQIradGs07qM/zQHtAZE0mcjtzFjJoAo2OAOdsLCht6N2eE2PS42kFnDlAqGl8nvgl6n3MUQOt+DJYSrh7oaWA7gy1AdxmNtc93lUr0xDxZkC+sp0gGyIwgHw7tY8TmOCFHD5WAD8AsdI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1760636646; 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=zNv66cYWOjcoM4iD8mPZ0d3N5D4+2q07Wwy2NtrQNPs=; b=LQ9gW0+YICyAV4UXFIl0ZMQARS/Snj0hen49bRZb+/6Q5k9Pt/gMU6hSU7kb9GvyD0d6NXEmv5AzcwiwqUobhZGqy2F8VB0ujLDt6JLs+PxHMhpaJFdyzP8qB5d7ttzqYp/w1UbrXTfn8/v+hW/3yjA5vfJL2Jq7/imtqHGQ6tA= 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 1760636646615900.375131594692; Thu, 16 Oct 2025 10:44:06 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v9Rwb-0006m7-FB; Thu, 16 Oct 2025 13:39:17 -0400 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 1v9RwT-0006h2-0x for qemu-devel@nongnu.org; Thu, 16 Oct 2025 13:39:09 -0400 Received: from p-east2-cluster4-host1-snip4-5.eps.apple.com ([57.103.78.156] helo=outbound.st.icloud.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v9RwA-0007gI-0F for qemu-devel@nongnu.org; Thu, 16 Oct 2025 13:39:08 -0400 Received: from outbound.st.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-east-1a-100-percent-6 (Postfix) with ESMTPS id E0FDB180012D; Thu, 16 Oct 2025 17:38:39 +0000 (UTC) Received: from localhost.localdomain (unknown [17.42.251.67]) by p00-icloudmta-asmtp-us-east-1a-100-percent-6 (Postfix) with ESMTPSA id 07D541800155; Thu, 16 Oct 2025 17:38:35 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr; s=sig1; bh=zNv66cYWOjcoM4iD8mPZ0d3N5D4+2q07Wwy2NtrQNPs=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=Yyh9tf1/m8Z5QpQbWeVRwi27/+eu7f3Ljy1FVHRHKx+Ri35IH3mk00UTYqc0OhcHYV+HrkcvwX53a/jAdd0kLhULKpxqxjY0lm+30ITUmR4KruLj1XmjMAE4+/nNm6LuzY1y4XY9xEuUOLxZwOwEApEuQ0QYYZdQLE+EAt7PX5tde5KxEGXiBN7lUHfuB4Gy0r9lnFs3KOIGjJRZY+hmw3VcFlyg+IaaAxEHNQeiFWnkOlKBK/TVAg91uNZIXpgXIplbQPq6LLr74o7SdkAerzzTvkm1HX13WCP6L1K71ISP+fFet27dZMgB+52aHPyNmgMEdpk0v8PMy1UsRgPOcQ== mail-alias-created-date: 1752046281608 From: Mohamed Mediouni To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, kvm@vger.kernel.org, Richard Henderson , Sunil Muthuswamy , "Michael S. Tsirkin" , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Eduardo Habkost , Igor Mammedov , Yanan Wang , Ani Sinha , Shannon Zhao , Cameron Esfahani , Mads Ynddal , Zhao Liu , Phil Dennis-Jordan , Roman Bolshakov , Peter Maydell , Marcel Apfelbaum , Mohamed Mediouni , Paolo Bonzini , Alexander Graf , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pedro Barbuda , Pierrick Bouvier Subject: [PATCH v8 09/24] whpx: common: add WHPX_INTERCEPT_DEBUG_TRAPS define Date: Thu, 16 Oct 2025 19:37:48 +0200 Message-ID: <20251016173803.65764-10-mohamed@unpredictable.fr> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20251016173803.65764-1-mohamed@unpredictable.fr> References: <20251016173803.65764-1-mohamed@unpredictable.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: UCCIHf5tKeN5wa-1OjFUKoiKpIX7YiqF X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMDE2MDEyOCBTYWx0ZWRfX5uBomq7Ui9M6 U9cL/NpdHEziYw3FKwc4hUfvUadvGoetBu5Tck3glPKobv48eEb6meV8aa/YkJ8saF80E1rCqNi NV/cLDBFnDxoQafzeP6uw1wjsp9J0O6oEvFN6HaWWajmCkTFJO6n9HCpIo9Il4jRtIpPXSaKhpB WMRRdw2yeCuuren9Agi9zgWegM++5Zrj8J6+5/dAkHbhmepZTXKuWtXBc5cIb6eJcl29gr8/OgO T8AfbFTKDM+qVxjwg3yHC3N2x39tzFDRCFH6bhvWfRCvOgQBRrIuxrnXb+LNOhsV3VUdiCqZg= X-Proofpoint-GUID: UCCIHf5tKeN5wa-1OjFUKoiKpIX7YiqF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-10-16_03,2025-10-13_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxlogscore=999 spamscore=0 malwarescore=0 bulkscore=0 suspectscore=0 mlxscore=0 clxscore=1030 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.22.0-2506270000 definitions=main-2510160128 X-JNJ: AAAAAAABZvmWqyV66dGcPV1/nPVdzd6cABkqkNxFVOkuPkBAATvd720SbWTzwDMUT3ZUbEUe7yrckklOJwXhmQImZblhRO15LwuWykpf8Y/uqWZow4NWwIWIlydDAn7+DFYQ9vpuBHEB6iuE/zznNgwIWmmfFwDhgj472sZb8FiN+Yo6GvVz0LPhkIjV1WMVw02D8if3hON+aAJBLT3E3EEC6Fp2SebwmiRUi5a+0w4YQqIlAG2J4/kuv6kIsUrSQVATEgua9yNNAyMHR00XJkKMtNakeA0M7G3MVxXsm/HGn1hnJwyJGBFrrpdY7KL61kC3fTFlhBqM+/xJdNpLMO6XOManQaDE0Qd7t77G+RY37RUolM/T/3AJbe7YUIVcwv+fVzHBLp+wtGBi3CFJBd0iNf9W6hsLCnbh6AOteCkrJWXqxhwXMoGtOl/3ypfJKr2zqAOEYtXlNa38li+bHIJaWx24W7mcA3aDtakYEbeb0XZFmpp53EIccFVC6QTdnURHLZxZ2TxsooURFskoJ63jP7i/fb0CVtskidmkDSYq0/KjeZTpG5+jQsLTmENbAy/nHmHm7n0wpcB2AtR8XI4gj14Ds3FTv45zAoetYr5J/3nJ4KZlSuHIToLTsnoGnoron5Bk6ofmFZOD2tmRNxbK6SZozhiqSxlKwrZB/1kQMT9+tsS+GpYpHY8EOA0QJ4JN8tIG+ev9GZGICo3DnrS3Cc/Ultrfm3xsoJrTbXYoT2LL4iVdTm+IruVJ4RI5//JaFH0H1ylDEeGbMy18T+/fAzpUlCAPmXbV0rFZWysgs/TeHVDx34x7CvFn+I/n/aWSvxgaUeFrPqPS15sF1i+JHLRtiYqXh/oYM+yG04ENGXThlnS7R0n7UVEDotwSnj+qpra5c0rU+s7QgGZJFFG41w1BnrhFPVebvG/uX80r 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.78.156; envelope-from=mohamed@unpredictable.fr; helo=outbound.st.icloud.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FORGED_SPF_HELO=1, KHOP_HELO_FCRDNS=0.399, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, T_SPF_TEMPERROR=0.01 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: 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: 1760636648405154100 Content-Type: text/plain; charset="utf-8" As of why: WHPX on arm64 doesn't have debug trap support as of today. Keep the exception bitmap interface for now - despite that being entirely u= navailable on arm64 too. Signed-off-by: Mohamed Mediouni Reviewed-by: Pierrick Bouvier --- accel/whpx/whpx-common.c | 2 +- include/system/whpx-common.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/accel/whpx/whpx-common.c b/accel/whpx/whpx-common.c index 95664a1df7..c0ff6cacb8 100644 --- a/accel/whpx/whpx-common.c +++ b/accel/whpx/whpx-common.c @@ -123,7 +123,7 @@ int whpx_first_vcpu_starting(CPUState *cpu) * have one or more breakpoints enabled. Both require intercepting * the WHvX64ExceptionTypeBreakpointTrap exception. */ - exception_mask =3D 1UL << WHvX64ExceptionTypeDebugTrapOrFault; + exception_mask =3D 1UL << WHPX_INTERCEPT_DEBUG_TRAPS; } else { /* Let the guest handle all exceptions. */ exception_mask =3D 0; diff --git a/include/system/whpx-common.h b/include/system/whpx-common.h index 7a7c607e0a..73b9f7c119 100644 --- a/include/system/whpx-common.h +++ b/include/system/whpx-common.h @@ -20,4 +20,7 @@ int whpx_first_vcpu_starting(CPUState *cpu); int whpx_last_vcpu_stopping(CPUState *cpu); void whpx_memory_init(void); struct whpx_breakpoint *whpx_lookup_breakpoint_by_addr(uint64_t address); + +/* On x64: same as WHvX64ExceptionTypeDebugTrapOrFault */ +#define WHPX_INTERCEPT_DEBUG_TRAPS 1 #endif --=20 2.50.1 (Apple Git-155)