]> www.infradead.org Git - users/hch/misc.git/commitdiff
KVM: arm64: nv: Expose FEAT_TWED to NV-enabled VMs
authorOliver Upton <oliver.upton@linux.dev>
Fri, 12 Sep 2025 21:22:55 +0000 (14:22 -0700)
committerMarc Zyngier <maz@kernel.org>
Fri, 19 Sep 2025 13:01:35 +0000 (14:01 +0100)
KVM now handles HCR_EL2.{TWEDEn,TWEDEL} correctly when computing the
effective HCR for a nested context. Advertise the feature.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/nested.c

index 4e70b4908c999617ad2a7e052c7f8937f57acda1..a5e1a3de2742e693315568423020cd04d3d0e477 100644 (file)
@@ -1528,7 +1528,6 @@ u64 limit_nv_id_reg(struct kvm *kvm, u32 reg, u64 val)
                         ID_AA64MMFR1_EL1_TIDCP1        |
                         ID_AA64MMFR1_EL1_nTLBPA        |
                         ID_AA64MMFR1_EL1_ETS           |
-                        ID_AA64MMFR1_EL1_TWED          |
                         ID_AA64MMFR1_EL1_XNX           |
                         ID_AA64MMFR1_EL1_SpecSEI       |
                         ID_AA64MMFR1_EL1_HAFDBS);