summaryrefslogtreecommitdiffstats
path: root/include/asm-i386/pgtable-3level-defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/pgtable-3level-defs.h')
-rw-r--r--include/asm-i386/pgtable-3level-defs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-i386/pgtable-3level-defs.h b/include/asm-i386/pgtable-3level-defs.h
index eb3a1ea88671..c0df89f66e8b 100644
--- a/include/asm-i386/pgtable-3level-defs.h
+++ b/include/asm-i386/pgtable-3level-defs.h
@@ -1,6 +1,12 @@
#ifndef _I386_PGTABLE_3LEVEL_DEFS_H
#define _I386_PGTABLE_3LEVEL_DEFS_H
+#ifdef CONFIG_PARAVIRT
+#define SHARED_KERNEL_PMD (paravirt_ops.shared_kernel_pmd)
+#else
+#define SHARED_KERNEL_PMD 1
+#endif
+
/*
* PGDIR_SHIFT determines what a top-level page table entry can map
*/