]> www.infradead.org Git - users/hch/misc.git/commitdiff
KVM: arm64: nv: Advertise FEAT_TIDCP1 to NV-enabled VMs
authorOliver Upton <oliver.upton@linux.dev>
Fri, 12 Sep 2025 21:22:57 +0000 (14:22 -0700)
committerMarc Zyngier <maz@kernel.org>
Fri, 19 Sep 2025 13:01:35 +0000 (14:01 +0100)
While KVM does not expose IMPDEF features to VMs, FEAT_TIDCP1 is an
architecturally-defined EL1 trap of a particular sysreg encoding range.
Furthermore, KVM already advertises this feature to non-NV VMs.

As there is no interaction with EL2 traps, expose 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 d3186f656d830169e9b6df648f4b284a8129f6ed..65b5fbb88510031c2d546d87dde3529438a29538 100644 (file)
@@ -1525,7 +1525,6 @@ u64 limit_nv_id_reg(struct kvm *kvm, u32 reg, u64 val)
 
        case SYS_ID_AA64MMFR1_EL1:
                val &= ~(ID_AA64MMFR1_EL1_CMOW          |
-                        ID_AA64MMFR1_EL1_TIDCP1        |
                         ID_AA64MMFR1_EL1_nTLBPA        |
                         ID_AA64MMFR1_EL1_ETS           |
                         ID_AA64MMFR1_EL1_XNX           |