diff --git a/arch/x86/kernel/relocate_kernel_64.S b/arch/x86/kernel/relocate_kernel_64.S index e9e88c342f752..ecbd77aab1221 100644 --- a/arch/x86/kernel/relocate_kernel_64.S +++ b/arch/x86/kernel/relocate_kernel_64.S @@ -155,6 +155,8 @@ SYM_CODE_START_LOCAL_NOALIGN(identity_mapped) */ andl $(X86_CR4_PAE | X86_CR4_LA57), %r13d ALTERNATIVE "", __stringify(orl $X86_CR4_MCE, %r13d), X86_FEATURE_TDX_GUEST + /* Invalidate Global entries from the TLB: */ + andq $~(X86_CR0_PGE), %r13d movq %r13, %cr4 /* Flush the TLB (needed?) */