From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 80089C87FCB for ; Mon, 4 Aug 2025 22:00:52 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uj3ET-0007xQ-G0; Mon, 04 Aug 2025 18:00:38 -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 1uj3EL-0007rp-E7 for qemu-devel@nongnu.org; Mon, 04 Aug 2025 18:00:31 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uj3ED-0000S9-23 for qemu-devel@nongnu.org; Mon, 04 Aug 2025 18:00:27 -0400 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-23636167afeso32634375ad.3 for ; Mon, 04 Aug 2025 15:00:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1754344815; x=1754949615; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=oi1O7Q3igp6bnzBL6BB5D6pyZZ0fQZAe1GRRfA9DyGs=; b=gMX5YilqrRHyp5T2kUPt4s/HgEM2UZV9anrMqgs4ieJ2KXs2eOtbC5jczrt5pOpIYa kPLW9/JwJ7pIxiLYNT9UEHneU1KaPh0AxVHpwTrViYRCVRScBii6uzII6zF0tUWjt5pa pU08UGyxcYoeeFxtYzy4xp4qedBdhejh+f+Cf375O3oNPINrEZ4GzcuK0gG7/aeoI4E9 mscEipdwGXjHpM2FUht3yaerakTb8OK9gVNg/iEQvDK68trysDcbOjyE1hj0dLO76Umr WJEhvD6fm9Ial4BRV47vehkC+y1avbobV6J9V7439wvpIrchRdgatGxnqG0vr3Rv6Pl5 q6dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754344815; x=1754949615; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oi1O7Q3igp6bnzBL6BB5D6pyZZ0fQZAe1GRRfA9DyGs=; b=GHw58YfdnsqKq0NKHfESgCZbjlIrRGd3PkzXl20+voAJrGFo0d6dmt+aThrkmoBN8X FvhSVC6uQ1meRNWCZkIgYQxRdCAc1HvCcIZiWT27Byi8u7T8/CydSNvtLMsQpvausv/A gOOFP29hkMSuT1L82dGDIGSlRtMQNuhr8CCn1gIJLkOJnF3r3skSgGbqzNQ4NTXvS1Ar SRudadzKuVUrrsyoYIPEm3uR7A3kdkDmXZDxmfDcFdxRuVDaAWnBWgn4w0kBunkXpGuL xiNAfzemF829Ez3vkirf7p6hDFEnH7VW7NAMfU6VCiMtuLO88NiyJC5G3hkpb+FicM3x rmLg== X-Gm-Message-State: AOJu0YzqknbG1O6L1vcdL970gNQ1CZ8/ad7ebIX0VN/ZvSTFLghmDyFH CwL0JhBAeEwVQY8S88Vx5b0xZnr/+HCS+AZ+5UgGUZxo+eAxzWUl6nDDF/pHD9tTuSw= X-Gm-Gg: ASbGncttedOuXdohAWa4sH2kW+C3k1NwxZVrk8n/RJHN78gElQqBUZKtUaiu7mu6ctf hSwYu3r+I7/Jb2dws5YDWg3MUpiY9Mmz2dMhhTw/zk1Jpin4d8gQCQ79G0329dU/st3zwq1XpJ8 73KgNNqHZl/u9K6LYNkT2QU49MB1F6a6wg9yQoa/zd54RZdSwUfzlvhoXUT5ViuXMFR2YFfcIhJ gXnMdu10ENsUp0+gio6zlSn4kgxolHdL+fEvTSvz115C8tq8OiTOXLQlhreqz/TP2z5RsiCNDfa 94NloFasLHElXHQIuR/o3iE6sdZSPOddUDPCI07VoIe1lmx+ipTD8MPxAobnEV3AoMcCcKYNNN6 W/gWgjjzBEsQ399ZtKSyq1FP5z6lWr0g8MxE= X-Google-Smtp-Source: AGHT+IH8P3WynBqRKJyl90mePv8MYP02GM/wLIKGDb5Z2XjANrt5tL5M53JXbq+4zRQJMwNTcb+11A== X-Received: by 2002:a17:903:11d1:b0:21f:4649:fd49 with SMTP id d9443c01a7336-24247065be5mr178855455ad.49.1754344814910; Mon, 04 Aug 2025 15:00:14 -0700 (PDT) Received: from [192.168.1.87] ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-241e89769fasm116603175ad.107.2025.08.04.15.00.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Aug 2025 15:00:14 -0700 (PDT) Message-ID: <9e8b4efa-7eee-4c17-817f-78822d0dc579@linaro.org> Date: Mon, 4 Aug 2025 15:00:13 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 15/17] whpx: arm64: implement -cpu host Content-Language: en-US To: Mohamed Mediouni Cc: qemu-devel@nongnu.org, Shannon Zhao , Ani Sinha , =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , Phil Dennis-Jordan , Roman Bolshakov , Igor Mammedov , Eduardo Habkost , Mads Ynddal , =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= , Sunil Muthuswamy , Zhao Liu , "Michael S. Tsirkin" , Alexander Graf , qemu-arm@nongnu.org, Peter Maydell , Marcel Apfelbaum , Yanan Wang , Richard Henderson , Cameron Esfahani , Paolo Bonzini , =?UTF-8?Q?Marc-Andr=C3=A9_Lureau?= References: <20250804142326.72947-1-mohamed@unpredictable.fr> <20250804142326.72947-16-mohamed@unpredictable.fr> <4182240b-59bf-4bb3-ba73-e5c4216608e4@linaro.org> From: Pierrick Bouvier In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62b.google.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_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 8/4/25 2:49 PM, Mohamed Mediouni wrote: > > >> On 4. Aug 2025, at 23:27, Pierrick Bouvier wrote: >> >> On 8/4/25 7:23 AM, Mohamed Mediouni wrote: >>> OpenProcessorKey and ReadRegU64 adapted from: >>> https://github.com/FEX-Emu/FEX/blob/e6de17e72ef03aa88ba14fa0ec13163061608c74/Source/Windows/Common/CPUFeatures.cpp#L62 >>> Signed-off-by: Mohamed Mediouni >>> --- >>> hw/arm/virt.c | 2 +- >>> target/arm/cpu64.c | 19 ++++--- >>> target/arm/whpx/whpx-all.c | 107 +++++++++++++++++++++++++++++++++++++ >>> target/arm/whpx_arm.h | 1 + >>> 4 files changed, 122 insertions(+), 7 deletions(-) >> >> Reviewed-by: Pierrick Bouvier >> >> Additional question, what is missing for SVE/SME support? > For SVE it’s mainly about the state save/restore part. And having good hardware for testing it too. > > For SME, Hyper-V doesn’t support it yet, but done preventively so that it doesn’t suddenly get enabled once that happens. (and that scenario happened on macOS and promptly broke things) > Thanks. Worth adding it in comment next to deactivation part for next reader.