diff options
Diffstat (limited to 'include/asm-x86/paravirt.h')
-rw-r--r-- | include/asm-x86/paravirt.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h index d9957ece49b5..c56b17a5eba0 100644 --- a/include/asm-x86/paravirt.h +++ b/include/asm-x86/paravirt.h | |||
@@ -1086,17 +1086,19 @@ static inline pmdval_t pmd_val(pmd_t pmd) | |||
1086 | 1086 | ||
1087 | return ret; | 1087 | return ret; |
1088 | } | 1088 | } |
1089 | #endif /* PAGETABLE_LEVELS >= 3 */ | ||
1090 | |||
1091 | #ifdef CONFIG_X86_PAE | ||
1092 | 1089 | ||
1093 | static inline void set_pud(pud_t *pudp, pud_t pudval) | 1090 | static inline void set_pud(pud_t *pudp, pud_t pud) |
1094 | { | 1091 | { |
1095 | PVOP_VCALL3(pv_mmu_ops.set_pud, pudp, | 1092 | pudval_t val = native_pud_val(pud); |
1096 | pudval.pgd.pgd, pudval.pgd.pgd >> 32); | ||
1097 | } | ||
1098 | 1093 | ||
1099 | #endif /* CONFIG_X86_PAE */ | 1094 | if (sizeof(pudval_t) > sizeof(long)) |
1095 | PVOP_VCALL3(pv_mmu_ops.set_pud, pudp, | ||
1096 | val, (u64)val >> 32); | ||
1097 | else | ||
1098 | PVOP_VCALL2(pv_mmu_ops.set_pud, pudp, | ||
1099 | val); | ||
1100 | } | ||
1101 | #endif /* PAGETABLE_LEVELS >= 3 */ | ||
1100 | 1102 | ||
1101 | /* Lazy mode for batching updates / context switch */ | 1103 | /* Lazy mode for batching updates / context switch */ |
1102 | enum paravirt_lazy_mode { | 1104 | enum paravirt_lazy_mode { |