qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC v3 4/5] target/arm: Enable feature ARM_FEATURE_EL2 if EL2 is su


From: Richard Henderson
Subject: Re: [RFC v3 4/5] target/arm: Enable feature ARM_FEATURE_EL2 if EL2 is supported
Date: Tue, 26 Mar 2024 09:07:35 -1000
User-agent: Mozilla Thunderbird

On 3/26/24 08:22, Eric Auger wrote:
From: Haibo Xu<haibo.xu@linaro.org>

KVM_CAP_ARM_EL2 must be supported by the cpu to enable ARM_FEATURE_EL2.
In case the host does support NV, expose the feature.

Signed-off-by: Haibo Xu<haibo.xu@linaro.org>
Signed-off-by: Miguel Luis<miguel.luis@oracle.com>
Signed-off-by: Eric Auger<eric.auger@redhat.com>

---
v2 -> v3:
- check pmu->has_el2 on kvm_arch_init_vcpu() when setting
   KVM_ARM_VCPU_HAS_EL2 feature (Peter)

v1 -> v2:
- remove isar_feature_aa64_aa32_el2 modif in target/arm/cpu.h
   [Richard] and use el2_supported in kvm_arch_init_vcpu
---
  target/arm/kvm.c | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]