Advertise FEAT_MOPS to protected VMs. With the field set, vcpu_set_hcrx() sets HCRX_EL2.{MSCEn,MCE2} for them, and kvm_hyp_handle_mops() already handles their MOPS exceptions. Signed-off-by: Fuad Tabba --- arch/arm64/kvm/hyp/nvhe/sys_regs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kvm/hyp/nvhe/sys_regs.c b/arch/arm64/kvm/hyp/nvhe/sys_regs.c index 4f13b100007fa..acba7489809f3 100644 --- a/arch/arm64/kvm/hyp/nvhe/sys_regs.c +++ b/arch/arm64/kvm/hyp/nvhe/sys_regs.c @@ -211,6 +211,7 @@ static const struct pvm_ftr_bits pvmid_aa64isar1[] = { static const struct pvm_ftr_bits pvmid_aa64isar2[] = { MAX_FEAT_FUNC(ID_AA64ISAR2_EL1, GPA3, IMP, vm_has_ptrauth), MAX_FEAT_FUNC(ID_AA64ISAR2_EL1, APA3, PAuth, vm_has_ptrauth), + MAX_FEAT(ID_AA64ISAR2_EL1, MOPS, IMP), MAX_FEAT(ID_AA64ISAR2_EL1, ATS1A, IMP), FEAT_END }; -- 2.47.3