From nobody Mon Feb 9 21:21:20 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=1768398272; cv=none; d=zohomail.com; s=zohoarc; b=OvN2CyLu3vTN06LYa5YI9i5Mj3hZcW5lvPI+ThCQpQ5eQjgExg+XuDqMq7YaTFJuivAoHzJaaVF1pGOkt8K47JFk8Oi2Zk5l/Iip6dC4tRTE/YfDgjjWq0dJil8D7DQbo0u1YjXNNIkNeH22R+yWP+oM+aVH2uBBC6zUH9vv+jg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768398272; 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=usn+5WRKOGJaDLoRmA1S0SGx2PVU5yWwDmjw2JCpvZ4=; b=F0qbUbJOhH47fo3mLVuYXVtggsSvP7NoyHSyklv/ahgRU+0XQ9j5IxiehyFBBxFq1zuv9NN+lj0juC2p1QitlxsNRDankO/v7fwGwN9UmZh6ZQQkh1tIhHVmvgo0haW9xMKwgZcD6Pn0tZW8UQWU/Rs3yJw0XQpfxKBWUS4T3fY= 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 1768398272560814.5039431830572; Wed, 14 Jan 2026 05:44:32 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vg194-00083o-Qg; Wed, 14 Jan 2026 08:42:46 -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 1vg192-000822-TB for qemu-devel@nongnu.org; Wed, 14 Jan 2026 08:42:44 -0500 Received: from p-east2-cluster5-host7-snip4-3.eps.apple.com ([57.103.79.26] 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 1vg191-0007R9-5Q for qemu-devel@nongnu.org; Wed, 14 Jan 2026 08:42:44 -0500 Received: from outbound.st.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-east-1a-100-percent-2 (Postfix) with ESMTPS id 100AD1800160; Wed, 14 Jan 2026 13:42:36 +0000 (UTC) Received: from localhost.localdomain (unknown [17.42.251.67]) by p00-icloudmta-asmtp-us-east-1a-100-percent-2 (Postfix) with ESMTPSA id B13C01800334; Wed, 14 Jan 2026 13:42:32 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr; s=sig1; bh=usn+5WRKOGJaDLoRmA1S0SGx2PVU5yWwDmjw2JCpvZ4=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=ITjG/MEW/k7t1dmFCTlErglavB0qp83KIgy3dryNpqowS8+ZOAyNSTTG7UbVs3DPiR/45lpnhHfAqFxU8zQFbNcIRKkGXwMwebZNT2zM5K7HoTZmyZcjWc0585ONBcuEi4J1tnzS/YLEy1Oi6b1FPaZ+tpycc2LhcW7l8++7h3/NJj3zNnouvDSCINY+YcikqVhkB6D2H3tiG5LYlAUbyVkor9DOf6Mol/ZyreimQ4MSwelbn7kL9kCzQuuzVzrMp26hR0uRz8zxzUKfq9frEBzzg+wBrRBDNFUwO3lZDg4K44ACeYA4ooEzW/2TO4Mb45QhK9DFc5+oNTNJxaxogQ== mail-alias-created-date: 1752046281608 From: Mohamed Mediouni To: mohamed@unpredictable.fr, qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, "Michael S. Tsirkin" , Zhao Liu , Yanan Wang , Pedro Barbuda , Marcel Apfelbaum , Phil Dennis-Jordan , Shannon Zhao , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Akihiko Odaki , Ani Sinha , Richard Henderson , Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Xu , Mads Ynddal , Igor Mammedov , Alexander Graf , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Cameron Esfahani , Pierrick Bouvier Subject: [PATCH v14 12/26] whpx: common: add WHPX_INTERCEPT_DEBUG_TRAPS define Date: Wed, 14 Jan 2026 14:41:29 +0100 Message-ID: <20260114134143.26198-13-mohamed@unpredictable.fr> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260114134143.26198-1-mohamed@unpredictable.fr> References: <20260114134143.26198-1-mohamed@unpredictable.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: Su8mb2hJMuwDjy8YI0t06e7fG-KO47oz X-Proofpoint-GUID: Su8mb2hJMuwDjy8YI0t06e7fG-KO47oz X-Authority-Info: v=2.4 cv=UcpciaSN c=1 sm=1 tr=0 ts=69679d50 cx=c_apl:c_apl_out:c_pps a=YrL12D//S6tul8v/L+6tKg==:117 a=YrL12D//S6tul8v/L+6tKg==:17 a=vUbySO9Y5rIA:10 a=VkNPw1HP01LnGYTKEx00:22 a=KKAkSRfTAAAA:8 a=2psWIPzlEfUqwKpUe20A:9 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTE0MDExNCBTYWx0ZWRfX5tzOwaQBl+LW k6uz7n7ju+BC/XFyHxKyXQA/yLxPBqFpZFgb++9Akn+npk75ErVhTnPRbMzVrhf8mBS2k7eLCYh A4zRg/2paF4Cr7cKgWLe5MH8B/O3GtApEC60nJvST8+DlG87O4n2sFCzvByH2JmK0WbZc33hhx/ MZ0HJEMuC4ksnhFaK7PEdsVEkuwUNMjaMRAQrBvDA3fCqECtIuWOU1CvhSnGtGKLk8Dv4qkMLh/ JDWc8v5y62SNlARUAE/5zZYZVqBNxZ0x+av92ssMxPpkYjwEbixIKD+We1YaUHyKqasbZ1GztH0 BfFunifHlESZ0vZhtAU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2026-01-14_04,2026-01-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1030 adultscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 spamscore=0 phishscore=0 bulkscore=0 malwarescore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2601140114 X-JNJ: AAAAAAABQJTFM2EEXgUXzvDUwB34vZtSS776B37Zyw+JE//10mYT6vxyA7f4s3E1rlIZYgEvsQAJt2eg+Ldo6lyiD40/6X570i8xGpphIb18dyQH3djw4Cus+pa/o3/I+UrcrPh1dZhEViWpvZzXK1mRKQXOGDmSM8Y9gIdQylfMM0pbBNkXsx8lRx92rMltjDL53T3yn4PnEztWSMBlyQumcpuEqRV0EuKLnxxYHI4Atd1Bi3SET1bR+lizn0bHPByhQIhlHjpveCEl4YbyvMLBiNoSgsOxvEuBdG11J1i87pTF6XpQqvdjE0ZGkY5qiexa+Yxvvc/7wTT1/qotGO4KPzlldx8IpfWj22HxwBwhszy5h3Li2ZN+bhpOCBNC4Bww90rCMOIG8x4nCgGOJlT5E6xguevEyu7eLUA2+joVQge7Ov64DETZN+CBGEFDZ9YJX/XAZtAnD7K7NXQ2dpHQXkI+E6vpk34DfXrjtqtyS06LDWCRp6MpxM2OxSkNe+qr8EaBCdtGqI0MGaYUO7LEI5kwI5xICIn5HI0+wgWJv4m7k0PioIkvv3LIaiwdoiHTrXrMSuyHZud9yi/7HBacbQDEWM0SFpppBfpIXjDU8qxQyNhtnphakLRsR8L8i5FFP2XiW3wGGdc0MHOfYuthdXnLHKFhnBehCuidFMPAOqRFj3EF0Xzt3ONAZQ/1QkbcW96iZLa8x6JTUOnbjUNQR7l7Ac7RFI91nMhLeelxOr15FPqnRmv/Bx4AUkkcF769NlTrl//3EVZeqqJTst1qXCkhO1LWQFhpYNdMEloOAsFpgR30MHJLQ6A2sOywIkCvC5cTKneaI7b+hthaTLbnrrD2eM9DJHD5rn0H+mLqGugOgZxKGbzX0Zh8GwwJT+5XztihxpB25fdbrbsRjGzgjvzzsoPAp1qFwuRS4LLifGSiTPl+Sg== 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 (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.79.26; envelope-from=mohamed@unpredictable.fr; helo=outbound.st.icloud.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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: 1768398274365158500 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 c58344cb61..c0610815d9 100644 --- a/accel/whpx/whpx-common.c +++ b/accel/whpx/whpx-common.c @@ -119,7 +119,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 8f171d1397..b86fe9db6e 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)