From nobody Mon Feb 9 01:16:25 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=1768436286; cv=none; d=zohomail.com; s=zohoarc; b=MU3rfmlkCKcg9q1Dy/gnS81UeMcHJ92V5/AhcYeskWFwGj7QZ+x+YWQmo9kiFJObGh3XUce4t3zM+x6LQM9WIAv73DsmKXzi2WFzakVZcK2T6eUKswDxbgVyasWEAIumosy1kUGrvDXel0MOcTiMvlkwAjQS9bzJaSXSwpKQnFs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768436286; 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=Rk0URHLzFbQb2J2pqqyT/zI1JsK2Hqgs3DZKJWsJ2S8=; b=bgP/8ppMFWK13IN1g+mhlqDvlkKR1wK2Gajg0J/R3o4A2gF75gzNMEN3tqnNq2XLUqZZe9x8/7LcJAAkrBrw1pr9Rv8m8dH0F+vrbhf6dSgmQbWdW7lvVBgPKLMCfDCE3sF5J6Qh4CqYsrT8S5yIe8mM1XVAuUZTWIU1ooOcJzU= 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 1768436286850617.6205119576157; Wed, 14 Jan 2026 16:18:06 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vgB3d-0004kw-Q6; Wed, 14 Jan 2026 19:17:49 -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 1vgB3c-0004cq-CX for qemu-devel@nongnu.org; Wed, 14 Jan 2026 19:17:48 -0500 Received: from p-west3-cluster4-host11-snip4-1.eps.apple.com ([57.103.74.212] helo=outbound.ms.icloud.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vgB3a-0002HB-O8 for qemu-devel@nongnu.org; Wed, 14 Jan 2026 19:17:48 -0500 Received: from outbound.ms.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-3a-60-percent-0 (Postfix) with ESMTPS id 19E201800452; Thu, 15 Jan 2026 00:17:42 +0000 (UTC) Received: from localhost.localdomain (unknown [17.57.154.37]) by p00-icloudmta-asmtp-us-west-3a-60-percent-0 (Postfix) with ESMTPSA id 490C71800435; Thu, 15 Jan 2026 00:17:36 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr; s=sig1; bh=Rk0URHLzFbQb2J2pqqyT/zI1JsK2Hqgs3DZKJWsJ2S8=; h=From:To:Subject:Date:Message-ID:MIME-Version:x-icloud-hme; b=ZLxKHhwddhUTljJce5T3qCBKngBTAgv3lQ1P91iaIGzwNfCQyZhJtK67Q72vh0rT0WIldxnKw4uGDvrQU/8G/TLZ3tEL7Plg0ftE4EqnvxrIsgbvbAFp3Rris047ve1zpUy1kFJo1OkKI45m/QVwFTpfd4cL0EPEUbiCgneCMkqH0HtzUWpdu8C2KZ40HX5nbU3LegyuCIVl33WrBMX3SWrYdyHLdJ0uUiC7x951w7o/UbrlpRE4oQDbvoIBwHzM+//xFiM/6b1tXfz354rIhp8uQH+5oGilU78pRRaKBF+yfPWY7qwCyIfu74c6LvGsPwEhJ10T3OpwdB0xPej/gw== mail-alias-created-date: 1752046281608 From: Mohamed Mediouni To: mohamed@unpredictable.fr, qemu-devel@nongnu.org Cc: Paolo Bonzini , Yanan Wang , Phil Dennis-Jordan , Shannon Zhao , Alexander Graf , Mads Ynddal , Peter Xu , Roman Bolshakov , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Ani Sinha , Marcel Apfelbaum , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Akihiko Odaki , Pedro Barbuda , Cameron Esfahani , Eduardo Habkost , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Igor Mammedov , Peter Maydell , "Michael S. Tsirkin" , qemu-arm@nongnu.org, Richard Henderson , Zhao Liu , Pierrick Bouvier Subject: [PATCH v15 23/26] whpx: enable arm64 builds Date: Thu, 15 Jan 2026 01:15:02 +0100 Message-ID: <20260115001505.57237-24-mohamed@unpredictable.fr> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260115001505.57237-1-mohamed@unpredictable.fr> References: <20260115001505.57237-1-mohamed@unpredictable.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: EFDse8HgdwV1SDUF3J5Iwzn-LsN9dZaq X-Proofpoint-ORIG-GUID: EFDse8HgdwV1SDUF3J5Iwzn-LsN9dZaq X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTE1MDAwMCBTYWx0ZWRfX4BHCCU7Rh0KV MCwToJxKDSNCjkCaFQ0aZOrUov7eTief/oy2TS0hdKhLV83C8LkXIN0X+7WGqBuUm676LzgVONI wuGWRsQiDt2uvHBn5A8AV+msl2CH9Al7KTudYamDzgNVrdOdKP38JjlE4GyNg8Rfs4e7MwgFskI mzdXAVCmQHlEcvG1/yH/oC6NcsF/7KLq1xsoUgyQsA9CGVhj9GBmbehLvHIMGL3AtQJRL2ha5zA FmzHufdgNsED7lQLdTnjAi9gf/gKOGQRnG0QkrOl2dY5ehSIpbOg2Rnf44lrLja0pDL7JrauzsJ IzvD+I4m32SZFtk6ubZ X-Authority-Info: v=2.4 cv=WoYm8Nfv c=1 sm=1 tr=0 ts=69683229 cx=c_apl:c_apl_out:c_pps a=qkKslKyYc0ctBTeLUVfTFg==:117 a=vUbySO9Y5rIA:10 a=VkNPw1HP01LnGYTKEx00:22 a=KKAkSRfTAAAA:8 a=Ck9h3XeVBPDugYI9Na4A:9 a=cvBusfyB2V15izCimMoJ:22 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_07,2026-01-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 mlxlogscore=848 adultscore=0 spamscore=0 bulkscore=0 mlxscore=0 phishscore=0 clxscore=1030 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2601150000 X-JNJ: AAAAAAABBUffu0PRf7M3htzPKtcU9n6nMChP7Gcoqc+li9Oi9TnvvOjVtcvmOU1dAtL8CRNia2hOLDHjxiC+cPerwXE6fTLXTGqpYNXFwRmIkxjeX/aui8YOs+eUGzvl0HigBM584LUw72yLnnLPdzcvBRIQTYKiX2izOrJo3QlTPSakFrnxombo3FO2hG67AP4zeZ0L11lJmDSL2ipYEuoFIl78u2RNqYITtN4ma5+ZEztM2HEEwc49jWXUCzJneoGlXdP0r0PizwODTrTVyMxD9Qh3RDAliwj6t3E1VYoXd2HCCRA/Cx6qO2LIc6Tqj0ILV1AW/NsOJUyZtk6YlZiTwiBBB7aPVMIAl0YhuWgqntXPKrSjP4lF7oOMkB4MbANynlEUMICDH2JuyJ3qLDQzcgXoVQYCaPJz5suKQyo3l7k1UCClCpAYBIRw6duOwYP7JnIYkujqsLeOSVTMAGz7OzzFYdb3JDIyiPVOtSQzyw1zVt0wyM33kcKft6JFd0oBj61hB1x0H/4Qhj6v93bfjvGkfQjc7l+q9GLZa3kCZFhiVMQbiAacuUlp8VSWO2Ag23EcmduSOFbaaDJCWczPtwxg5BSwH1kDwdnR27pHDxYmyO9alaYEZu67PjjVlM009hSAupU9fy4qNdjRHYdRjb0LM9Q0NFG/H1ZHB2pWc7qAAagWINN9nlfZddvzrYghRt4ef0rZWKKVoV+EMovEqtgVuVHX1zdHJjS7EYzIi4niH/arAZ4uy4K1Qkt2ygjxWqVE/vPCa1G8TLfD5V3Kr6P80Ml7RFeb+m4S26QOuR7pUrcX96Ba6EhlBRiKjk4GF1JGBZuqIe9bn2IHkTlH8KF0iwBGXH4c6KCs5GW/Of542sqyhh/uwGvtaplldIWL/i0M8clrTvhZzteXWCOv5gsCh14N7eGKrOnF37Q= 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.74.212; envelope-from=mohamed@unpredictable.fr; helo=outbound.ms.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: 1768436288135158500 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 c58007291a..34c799e066 100644 --- a/meson.build +++ b/meson.build @@ -317,7 +317,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 { @@ -892,13 +893,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)