diff options
-rw-r--r-- | arch/x86/include/asm/pgtable-3level_types.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/include/asm/pgtable-3level_types.h b/arch/x86/include/asm/pgtable-3level_types.h index 6a59a6d0cc50..78038e057876 100644 --- a/arch/x86/include/asm/pgtable-3level_types.h +++ b/arch/x86/include/asm/pgtable-3level_types.h | |||
@@ -21,9 +21,10 @@ typedef union { | |||
21 | #endif /* !__ASSEMBLY__ */ | 21 | #endif /* !__ASSEMBLY__ */ |
22 | 22 | ||
23 | #ifdef CONFIG_PARAVIRT | 23 | #ifdef CONFIG_PARAVIRT |
24 | #define SHARED_KERNEL_PMD (pv_info.shared_kernel_pmd) | 24 | #define SHARED_KERNEL_PMD ((!static_cpu_has(X86_FEATURE_PTI) && \ |
25 | (pv_info.shared_kernel_pmd))) | ||
25 | #else | 26 | #else |
26 | #define SHARED_KERNEL_PMD 1 | 27 | #define SHARED_KERNEL_PMD (!static_cpu_has(X86_FEATURE_PTI)) |
27 | #endif | 28 | #endif |
28 | 29 | ||
29 | /* | 30 | /* |