Skip to content

Commit b1319c0

Browse files
kristina-martsenkoctmarinas
authored andcommitted
arm64: mops: don't disable host MOPS instructions from EL2
To allow nVHE host EL0 and EL1 to use FEAT_MOPS instructions, configure EL2 to not cause these instructions to be treated as UNDEFINED. A VHE host is unaffected by this control. Reviewed-by: Catalin Marinas <[email protected]> Signed-off-by: Kristina Martsenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent f32c053 commit b1319c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/include/asm/kvm_arm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
#define HCR_HOST_VHE_FLAGS (HCR_RW | HCR_TGE | HCR_E2H)
9595

9696
#define HCRX_GUEST_FLAGS (HCRX_EL2_SMPME)
97-
#define HCRX_HOST_FLAGS 0
97+
#define HCRX_HOST_FLAGS (HCRX_EL2_MSCEn)
9898

9999
/* TCR_EL2 Registers bits */
100100
#define TCR_EL2_RES1 ((1U << 31) | (1 << 23))

0 commit comments

Comments
 (0)