From nobody Fri Nov 14 21:04:57 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=1761695715; cv=none; d=zohomail.com; s=zohoarc; b=TuAkTIEPqk1w57ESkStjA/cqoLAlq7ej9FxHWrVu5BRaZnKwpAdo5YENX8eBjxMma3ebpKl7elBZv+Cdgvpk+ZZXxFAvUQSsVDei7cwV0PMuQ/rCo4DxxMmpYTVIi6ZkMToBbs4v68nm5Mq6h72wYxIaD2Wr3WLLPSXH6bVazjw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761695715; 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=pef4PPcFVIJAL6pBQzzaJ8/pUKAGPGBCWFIwX7eqUAE=; b=FvkqIsR1uQH0+7eJepELbu+sglDS0y97lnxC4xjmKrBxhiAo3eb3sZcZj1zoaPl2Y/5V//RU9LOwj7w1iXBsiYtCI7TfEuW67CVWodG2M9P6svEHb9n+HBZalJiw/1RD+TrhABFLlFx8cxyeZscDZxQ58RoiMqH01m6UUxMs2is= 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 176169571565815.640263154982222; Tue, 28 Oct 2025 16:55:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vDtRu-0002Il-VL; Tue, 28 Oct 2025 19:49:59 -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 1vDtRl-0002GB-Lg for qemu-devel@nongnu.org; Tue, 28 Oct 2025 19:49:49 -0400 Received: from p-east1-cluster6-host10-snip4-8.eps.apple.com ([57.103.90.229] helo=outbound.ci.icloud.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vDtR4-0004pm-Ai for qemu-devel@nongnu.org; Tue, 28 Oct 2025 19:49:49 -0400 Received: from outbound.ci.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-central-1k-20-percent-0 (Postfix) with ESMTPS id 186D418034F3; Tue, 28 Oct 2025 23:48:59 +0000 (UTC) Received: from localhost.localdomain (unknown [17.57.156.36]) by p00-icloudmta-asmtp-us-central-1k-20-percent-0 (Postfix) with ESMTPSA id 1814E18034E5; Tue, 28 Oct 2025 23:48:57 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr; s=sig1; bh=pef4PPcFVIJAL6pBQzzaJ8/pUKAGPGBCWFIwX7eqUAE=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=XzQVlVK+38Yt46CN75ThYAfhKro80xxMMNOSgl6tMuZ/TuE13gbjZc+1cQ3JArC9VfeEDn59iFXKG0FmdOlDtPD7oaBonwn+jkxJZOaCisccLkyrwaw3K+rtdVPPlIZJb/Ia8GKbjO4v5Kt1j72HPJAw4dUAKtx/tIZPZQ8jaDJU/oDLASgxNQzwBV2fyODTa+IxXlUyKAyQ1snfzwIIp4ji5Nm94GAeZSs0/62BAg7qfAAafeCaMk2z9d4UNUqSFTEfsnL7cWyZEFuNb6fXKP0HeQqVQkgkeJWgkoR9k+s491l1AmE4Fwe0DiaMRVN03+dRt7K51JccXtAATasGXQ== mail-alias-created-date: 1752046281608 From: Mohamed Mediouni To: mohamed@unpredictable.fr, qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Alexander Graf , Phil Dennis-Jordan , Peter Maydell , Paolo Bonzini , qemu-arm@nongnu.org, Richard Henderson , Pedro Barbuda , Pierrick Bouvier Subject: [PATCH v9 24/27] whpx: enable arm64 builds Date: Wed, 29 Oct 2025 00:47:54 +0100 Message-ID: <20251028234757.39609-25-mohamed@unpredictable.fr> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20251028234757.39609-1-mohamed@unpredictable.fr> References: <20251028234757.39609-1-mohamed@unpredictable.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: _IrdBYOWjrAyVpBNgZ0eea7NSg7pArMN X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMDI4MDIwMiBTYWx0ZWRfX5ogQG+qbu/OG HCbB6RIWSmNhi/sq2ZFUtWYzXNsURKLkGIKYZItXBnWNlD0sOJNbTOQt++JsT4aQy+NM6EgWo9U Kyv31wmMO54xYEgsq3qQ8jOsTCY560EU2+j97jfs/P0m8BDe1ysOvf3hNHBfve5m2fy2Q5FA9be DZHRheQd3jL16yZouObH7gcj5HgROROTIg04t3QurLiEzU9zRm3tiqxPlBQH1yqVo4SVccNDbql iRo/nkxdQqyj8eZSZQDxOaQ5P+4T1LPhO76rTp6Hgp6zptw0OCpSBucWTFHBPDPhD4NQ1QDbo= X-Proofpoint-ORIG-GUID: _IrdBYOWjrAyVpBNgZ0eea7NSg7pArMN 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-28_09,2025-10-22_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=761 mlxscore=0 malwarescore=0 phishscore=0 suspectscore=0 spamscore=0 adultscore=0 clxscore=1030 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.22.0-2506270000 definitions=main-2510280202 X-JNJ: AAAAAAABdmyUK7BjZBYyMdjH9Yll7CrnEkK3sn1t+V+rAf+X6+JF5NyLTUTqOXl4labMdvwlWklCp5XSovx6l6Rl1h+hwmTKg+6CdtjyDAdFX5lHO7mOqjYMw0rjZ2ZxjtyzESdN//FJMqTXE8+roLUa+SgjgfL+7/RCiNsOm2GzGnNQx3aNc4D/cVfGWJ1D+Zq4TNKCWcWCE+NozZL0mQEuh97QLHvQjwH4tlIh9SlZki06f2YY13OXOKcRFBtwi0ckFhvH+JBJxJAfZK07wW/2qanydKu0FjZPsWKJlm1lMNCbEEqZs3h1RqlHAWPzJcyV5YueXoFIoAQt5M5uHmawmBK7L5G5c1YTGcJ9k/ec/qSC+H4TJubXy522hIiTeRHC76bpYN1YoWXqGDhm4Qwdr3XTF5xRg8t6i0T7E/4JOEsc10JJ59GxtQVi+l1S7V8tX5KRf+mjtycQZxmHccWM10Oo0OSjQ5B4tbxVg5xMdkk2rc82FvuSu7W66gwxbn68DtQmuYspsHf6eXJQ/CE6ZVkWlgXH8n0AGItmxjChP9QdxfBS1CYMoP2SAkfjDqPsfAYPViHCUlf15UM3yNdQnyqObcskwY2tAgQ5Lv4BL5gmY6qwGg7exDyEJ3EUYASFCsI3bu3BN6LY8jwPk5UjDygnXoj1cSnLOu7+hBR1PaHNFq+cVq1+OsX5htoTS75FzrA7RTsfcn5wBm8OfdaiFr9HfnDoPQ== 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.90.229; envelope-from=mohamed@unpredictable.fr; helo=outbound.ci.icloud.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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: 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: 1761695718578154100 Content-Type: text/plain; charset="utf-8" Signed-off-by: Mohamed Mediouni Reviewed-by: Pierrick Bouvier --- meson.build | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/meson.build b/meson.build index c5710a6a47..6759dbda15 100644 --- a/meson.build +++ b/meson.build @@ -325,7 +325,8 @@ accelerator_targets +=3D { 'CONFIG_XEN': xen_targets } =20 if cpu =3D=3D 'aarch64' accelerator_targets +=3D { - 'CONFIG_HVF': ['aarch64-softmmu'] + 'CONFIG_HVF': ['aarch64-softmmu'], + 'CONFIG_WHPX': ['aarch64-softmmu'] } elif cpu =3D=3D 'x86_64' accelerator_targets +=3D { @@ -891,13 +892,18 @@ if get_option('mshv').allowed() and host_os =3D=3D 'l= inux' endif =20 if get_option('whpx').allowed() and host_os =3D=3D 'windows' - if get_option('whpx').enabled() and host_machine.cpu() !=3D 'x86_64' - error('WHPX requires 64-bit host') - elif cc.has_header('winhvplatform.h', required: get_option('whpx')) and \ - cc.has_header('winhvemulation.h', required: get_option('whpx')) - accelerators +=3D 'CONFIG_WHPX' + if cpu =3D=3D 'i386' + if get_option('whpx').enabled() + error('WHPX requires 64-bit host') + endif + # Leave CONFIG_WHPX disabled + else + if cc.has_header('winhvplatform.h', required: get_option('whpx')) and \ + cc.has_header('winhvemulation.h', required: get_option('whpx')) + accelerators +=3D 'CONFIG_WHPX' + endif endif -endif + endif =20 hvf =3D not_found if get_option('hvf').allowed() --=20 2.50.1 (Apple Git-155)