ANDROID: KVM: arm64: Enable MOPS for protected VMs Now that all the infrastructure needed to support MOPS is in place, enable them for protected VMs if supported by the system. Bug: 357781595 Bug: 378431255 Change-Id: Ia216ff388733335703210975264513d1014e6768 Signed-off-by: Fuad Tabba <tabba@google.com>
diff --git a/arch/arm64/kvm/hyp/nvhe/sys_regs.c b/arch/arm64/kvm/hyp/nvhe/sys_regs.c index f92b60a..0c4ef4f 100644 --- a/arch/arm64/kvm/hyp/nvhe/sys_regs.c +++ b/arch/arm64/kvm/hyp/nvhe/sys_regs.c
@@ -176,6 +176,7 @@ static const struct pvm_feature pvmid_aa64isar1[] = { static const struct pvm_feature pvmid_aa64isar2[] = { MAX_FEAT_FUNC(ID_AA64ISAR2_EL1, GPA3, IMP, _vcpu_has_ptrauth), MAX_FEAT_FUNC(ID_AA64ISAR2_EL1, APA3, PAuth, _vcpu_has_ptrauth), + MAX_FEAT(ID_AA64ISAR2_EL1, MOPS, IMP), MAX_FEAT(ID_AA64ISAR2_EL1, ATS1A, IMP), FEAT_END };