Skip to content

Commit f4eee30

Browse files
Fuad TabbaMarc Zyngier
authored andcommitted
KVM: arm64: Do not allow KVM_CAP_ARM_MTE for any guest in pKVM
Supporting MTE in pKVM introduces significant complexity to the hypervisor at EL2, even for non-protected VMs, since it would require EL2 to handle tag management. For now, do not allow KVM_CAP_ARM_MTE for any VM type in protected mode. Signed-off-by: Fuad Tabba <tabba@google.com> Link: https://patch.msgid.link/20251211104710.151771-7-tabba@google.com Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent 43a21a0 commit f4eee30

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/arm64/include/asm/kvm_pkvm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ static inline bool kvm_pkvm_ext_allowed(struct kvm *kvm, long ext)
4444
case KVM_CAP_ARM_PTRAUTH_ADDRESS:
4545
case KVM_CAP_ARM_PTRAUTH_GENERIC:
4646
return true;
47+
case KVM_CAP_ARM_MTE:
48+
return false;
4749
default:
4850
return !kvm || !kvm_vm_is_protected(kvm);
4951
}

0 commit comments

Comments
 (0)