Protected VMs don't support MTE, so MTE_frac in their ID_AA64PFR1_EL1 doesn't apply and is RES0, as it is for a non-protected VM without MTE. Commit 3d7ff00700d1a ("KVM: arm64: Rework specifying restricted features for protected VMs") caps the field at NI in the pVM restriction table. However, NI is 0xF and the clamp is unsigned, so the cap does nothing and a protected guest sees the host's value. On a CPU with MTE2 but without FEAT_MTE_ASYNC, that value is 0xF. Drop the entry so that the field reads as 0 again. It was the only entry capping an unsigned field at an NI other than 0. Signed-off-by: Fuad Tabba --- arch/arm64/kvm/hyp/nvhe/sys_regs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/kvm/hyp/nvhe/sys_regs.c b/arch/arm64/kvm/hyp/nvhe/sys_regs.c index 32e82653ebf7e..e1749138f7507 100644 --- a/arch/arm64/kvm/hyp/nvhe/sys_regs.c +++ b/arch/arm64/kvm/hyp/nvhe/sys_regs.c @@ -105,7 +105,6 @@ static const struct pvm_ftr_bits pvmid_aa64pfr0[] = { static const struct pvm_ftr_bits pvmid_aa64pfr1[] = { MAX_FEAT(ID_AA64PFR1_EL1, BT, IMP), MAX_FEAT(ID_AA64PFR1_EL1, SSBS, SSBS2), - MAX_FEAT_ENUM(ID_AA64PFR1_EL1, MTE_frac, NI), FEAT_END }; -- 2.47.3