From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>, qemu-devel@nongnu.org
Cc: Alexander Graf <agraf@csgraf.de>, Mads Ynddal <mads@ynddal.dk>,
Peter Maydell <peter.maydell@linaro.org>,
qemu-arm@nongnu.org
Subject: Re: [RFC PATCH v2 10/10] target/arm/hvf: Allow EL2/EL3 emulation on Silicon M1 / M2
Date: Wed, 13 Aug 2025 08:34:09 +1000 [thread overview]
Message-ID: <2f3cd701-6051-46e0-b7e2-e807b29afa28@linaro.org> (raw)
In-Reply-To: <20250812173234.86970-1-philmd@linaro.org>
On 8/13/25 03:32, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Another API PoC.
> ---
> target/arm/hvf/hvf.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
I imagine this waits until accel/split is present? If so,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
> diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c
> index 84c0c0275d6..df63584f456 100644
> --- a/target/arm/hvf/hvf.c
> +++ b/target/arm/hvf/hvf.c
> @@ -17,6 +17,7 @@
> #include "system/hvf.h"
> #include "system/hvf_int.h"
> #include "system/hw_accel.h"
> +#include "system/tcg.h"
> #include "hvf_arm.h"
> #include "cpregs.h"
> #include "cpu-sysregs.h"
> @@ -585,11 +586,14 @@ bool host_cpu_feature_supported(enum arm_features feature)
> case ARM_FEATURE_GENERIC_TIMER:
> return true;
> case ARM_FEATURE_EL2:
> + if (tcg_enabled()) {
> + return true;
> + }
> ret = hv_vm_config_get_el2_supported(&supported);
> assert_hvf_ok(ret);
> return supported;
> case ARM_FEATURE_EL3:
> - return false;
> + return tcg_enabled();
> default:
> g_assert_not_reached();
> }
next prev parent reply other threads:[~2025-08-12 22:35 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-12 17:28 [RFC PATCH v2 00/10] target/arm: Introduce host_cpu_feature_supported() API Philippe Mathieu-Daudé
2025-08-12 17:28 ` [PATCH v2 01/10] accel/system: Introduce hwaccel_enabled() helper Philippe Mathieu-Daudé
2025-08-12 17:28 ` [PATCH v2 02/10] target/arm: Use generic hwaccel_enabled() to check 'host' cpu type Philippe Mathieu-Daudé
2025-08-12 17:28 ` [PATCH v2 03/10] target/arm: Restrict PMU to system mode Philippe Mathieu-Daudé
2025-08-12 17:28 ` [PATCH v2 04/10] target/arm: Factor hvf_psci_get_target_el() out Philippe Mathieu-Daudé
2025-08-12 17:31 ` [RFC PATCH v2 05/10] target/arm: Introduce host_cpu_feature_supported() Philippe Mathieu-Daudé
2025-08-12 17:31 ` [RFC PATCH v2 06/10] target/arm: Replace kvm_arm_pmu_supported by host_cpu_feature_supported Philippe Mathieu-Daudé
2025-08-12 22:23 ` Richard Henderson
2025-08-12 17:31 ` [RFC PATCH v2 07/10] target/arm: Replace kvm_arm_el2_supported " Philippe Mathieu-Daudé
2025-08-12 22:27 ` Richard Henderson
2025-08-12 22:22 ` [RFC PATCH v2 05/10] target/arm: Introduce host_cpu_feature_supported() Richard Henderson
2025-08-12 17:31 ` [RFC PATCH v2 08/10] target/arm/hvf: Sync registers used at EL2 Philippe Mathieu-Daudé
2025-08-12 17:31 ` [RFC PATCH v2 09/10] target/arm/hvf: Consider EL2 acceleration for Silicon M3+ chipsets Philippe Mathieu-Daudé
2025-08-12 22:32 ` Richard Henderson
2025-08-12 22:31 ` [RFC PATCH v2 08/10] target/arm/hvf: Sync registers used at EL2 Richard Henderson
2025-08-13 7:20 ` Philippe Mathieu-Daudé
2025-08-13 7:35 ` Richard Henderson
2025-08-12 17:32 ` [RFC PATCH v2 10/10] target/arm/hvf: Allow EL2/EL3 emulation on Silicon M1 / M2 Philippe Mathieu-Daudé
2025-08-12 22:34 ` Richard Henderson [this message]
2025-08-13 6:08 ` 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=2f3cd701-6051-46e0-b7e2-e807b29afa28@linaro.org \
--to=richard.henderson@linaro.org \
--cc=agraf@csgraf.de \
--cc=mads@ynddal.dk \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).