From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Subject: Re: [RFC PATCH 05/11] target/arm: Introduce arm_hw_accel_cpu_feature_supported()
Date: Tue, 12 Aug 2025 06:06:37 +0200 [thread overview]
Message-ID: <ca7bf8c2-1128-4873-96fe-7bdaf2ed7fa8@linaro.org> (raw)
In-Reply-To: <2e5d40ac-927f-4109-b285-c0635b959066@linaro.org>
On 12/8/25 02:35, Richard Henderson wrote:
> On 8/12/25 03:06, Philippe Mathieu-Daudé wrote:
>> Introduce arm_hw_accel_cpu_feature_supported() helper,
>> an accelerator implementation to return whether a ARM
>> feature is supported by host hardware. Allow optional
>> fallback on emulation.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>> target/arm/cpu.h | 12 ++++++++++++
>> target/arm/hvf/hvf.c | 20 ++++++++++++++++++++
>> target/arm/kvm.c | 22 ++++++++++++++++++++++
>> 3 files changed, 54 insertions(+)
>>
>> diff --git a/target/arm/cpu.h b/target/arm/cpu.h
>> index dc9b6dce4c9..5136c4caabf 100644
>> --- a/target/arm/cpu.h
>> +++ b/target/arm/cpu.h
>> @@ -2507,6 +2507,18 @@ static inline ARMSecuritySpace
>> arm_secure_to_space(bool secure)
>> }
>> #if !defined(CONFIG_USER_ONLY)
>> +
>> +/**
>> + * arm_hw_accel_cpu_feature_supported:
>> + * @feat: Feature to test for support
>> + * @can_emulate: Whether Allow to fall back to emulation if @feat is not
>> + * supported by hardware accelerator
>> + *
>> + * Hardware accelerator implementation of cpu_feature_supported().
>> + */
>> +bool arm_hw_accel_cpu_feature_supported(enum arm_features feat,
>> + bool can_emulate);
>
> internals.h.
>
> I guess this is ok. If we ignore xen, which is a thing of its own, we
Does Xen manage vCPUs runtime?
> don't currently have more than one accelerator per OS. That hasn't
> always been true for x86, where we had 2 or 3 at once for Windows.
I felt than adding as per-target per-accel methods would be over
engineering at this point, but I can give it a try if preferred.
next prev parent reply other threads:[~2025-08-12 4:07 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-11 17:06 [RFC PATCH 00/11] target/arm: Introduce host_cpu_feature_supported() API Philippe Mathieu-Daudé
2025-08-11 17:06 ` [RFC PATCH 01/11] accel/system: Introduce hwaccel_enabled() helper Philippe Mathieu-Daudé
2025-08-11 17:06 ` [RFC PATCH 02/11] target/arm: Use generic hwaccel_enabled() to check 'host' cpu type Philippe Mathieu-Daudé
2025-08-11 17:06 ` [RFC PATCH 03/11] target/arm: Restrict PMU to system mode Philippe Mathieu-Daudé
2025-08-12 0:02 ` Richard Henderson
2025-08-11 17:06 ` [RFC PATCH 04/11] target/arm: Factor hvf_psci_get_target_el() out Philippe Mathieu-Daudé
2025-08-12 0:26 ` Richard Henderson
2025-08-11 17:06 ` [RFC PATCH 05/11] target/arm: Introduce arm_hw_accel_cpu_feature_supported() Philippe Mathieu-Daudé
2025-08-12 0:35 ` Richard Henderson
2025-08-12 4:06 ` Philippe Mathieu-Daudé [this message]
2025-08-12 4:58 ` Philippe Mathieu-Daudé
2025-08-11 17:06 ` [RFC PATCH 06/11] target/arm: Introduce host_cpu_feature_supported() Philippe Mathieu-Daudé
2025-08-12 0:44 ` Richard Henderson
2025-08-12 4:30 ` Philippe Mathieu-Daudé
2025-08-11 17:06 ` [RFC PATCH 07/11] target/arm: Replace kvm_arm_pmu_supported by host_cpu_feature_supported Philippe Mathieu-Daudé
2025-08-12 0:48 ` Richard Henderson
2025-08-12 4:49 ` Philippe Mathieu-Daudé
2025-08-12 6:03 ` Philippe Mathieu-Daudé
2025-08-12 7:33 ` Philippe Mathieu-Daudé
2025-08-12 12:42 ` Richard Henderson
2025-08-12 13:12 ` Philippe Mathieu-Daudé
2025-08-11 17:06 ` [RFC PATCH 08/11] target/arm: Replace kvm_arm_el2_supported " Philippe Mathieu-Daudé
2025-08-11 17:06 ` [RFC PATCH 09/11] target/arm/hvf: Sync registers used at EL2 Philippe Mathieu-Daudé
2025-08-12 0:20 ` Richard Henderson
2025-08-13 7:20 ` Philippe Mathieu-Daudé
2025-08-11 17:06 ` [RFC PATCH 10/11] target/arm/hvf: Consider EL2 acceleration for Silicon M3+ chipsets Philippe Mathieu-Daudé
2025-08-11 17:06 ` [RFC PATCH 11/11] target/arm/hvf: Allow EL2/EL3 emulation on Silicon M1 / M2 Philippe Mathieu-Daudé
2025-08-12 0:23 ` Richard Henderson
2025-08-12 3:56 ` Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ca7bf8c2-1128-4873-96fe-7bdaf2ed7fa8@linaro.org \
--to=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.