diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/paravirt.h | 32 | ||||
-rw-r--r-- | include/asm-x86/pgalloc.h | 16 |
2 files changed, 24 insertions, 24 deletions
diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h index 3d419398499b..c4480b9bda5d 100644 --- a/include/asm-x86/paravirt.h +++ b/include/asm-x86/paravirt.h | |||
@@ -220,11 +220,11 @@ struct pv_mmu_ops { | |||
220 | unsigned long va); | 220 | unsigned long va); |
221 | 221 | ||
222 | /* Hooks for allocating/releasing pagetable pages */ | 222 | /* Hooks for allocating/releasing pagetable pages */ |
223 | void (*alloc_pt)(struct mm_struct *mm, u32 pfn); | 223 | void (*alloc_pte)(struct mm_struct *mm, u32 pfn); |
224 | void (*alloc_pd)(struct mm_struct *mm, u32 pfn); | 224 | void (*alloc_pmd)(struct mm_struct *mm, u32 pfn); |
225 | void (*alloc_pd_clone)(u32 pfn, u32 clonepfn, u32 start, u32 count); | 225 | void (*alloc_pmd_clone)(u32 pfn, u32 clonepfn, u32 start, u32 count); |
226 | void (*release_pt)(u32 pfn); | 226 | void (*release_pte)(u32 pfn); |
227 | void (*release_pd)(u32 pfn); | 227 | void (*release_pmd)(u32 pfn); |
228 | 228 | ||
229 | /* Pagetable manipulation functions */ | 229 | /* Pagetable manipulation functions */ |
230 | void (*set_pte)(pte_t *ptep, pte_t pteval); | 230 | void (*set_pte)(pte_t *ptep, pte_t pteval); |
@@ -910,28 +910,28 @@ static inline void flush_tlb_others(cpumask_t cpumask, struct mm_struct *mm, | |||
910 | PVOP_VCALL3(pv_mmu_ops.flush_tlb_others, &cpumask, mm, va); | 910 | PVOP_VCALL3(pv_mmu_ops.flush_tlb_others, &cpumask, mm, va); |
911 | } | 911 | } |
912 | 912 | ||
913 | static inline void paravirt_alloc_pt(struct mm_struct *mm, unsigned pfn) | 913 | static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned pfn) |
914 | { | 914 | { |
915 | PVOP_VCALL2(pv_mmu_ops.alloc_pt, mm, pfn); | 915 | PVOP_VCALL2(pv_mmu_ops.alloc_pte, mm, pfn); |
916 | } | 916 | } |
917 | static inline void paravirt_release_pt(unsigned pfn) | 917 | static inline void paravirt_release_pte(unsigned pfn) |
918 | { | 918 | { |
919 | PVOP_VCALL1(pv_mmu_ops.release_pt, pfn); | 919 | PVOP_VCALL1(pv_mmu_ops.release_pte, pfn); |
920 | } | 920 | } |
921 | 921 | ||
922 | static inline void paravirt_alloc_pd(struct mm_struct *mm, unsigned pfn) | 922 | static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned pfn) |
923 | { | 923 | { |
924 | PVOP_VCALL2(pv_mmu_ops.alloc_pd, mm, pfn); | 924 | PVOP_VCALL2(pv_mmu_ops.alloc_pmd, mm, pfn); |
925 | } | 925 | } |
926 | 926 | ||
927 | static inline void paravirt_alloc_pd_clone(unsigned pfn, unsigned clonepfn, | 927 | static inline void paravirt_alloc_pmd_clone(unsigned pfn, unsigned clonepfn, |
928 | unsigned start, unsigned count) | 928 | unsigned start, unsigned count) |
929 | { | 929 | { |
930 | PVOP_VCALL4(pv_mmu_ops.alloc_pd_clone, pfn, clonepfn, start, count); | 930 | PVOP_VCALL4(pv_mmu_ops.alloc_pmd_clone, pfn, clonepfn, start, count); |
931 | } | 931 | } |
932 | static inline void paravirt_release_pd(unsigned pfn) | 932 | static inline void paravirt_release_pmd(unsigned pfn) |
933 | { | 933 | { |
934 | PVOP_VCALL1(pv_mmu_ops.release_pd, pfn); | 934 | PVOP_VCALL1(pv_mmu_ops.release_pmd, pfn); |
935 | } | 935 | } |
936 | 936 | ||
937 | #ifdef CONFIG_HIGHPTE | 937 | #ifdef CONFIG_HIGHPTE |
diff --git a/include/asm-x86/pgalloc.h b/include/asm-x86/pgalloc.h index 73e5b0318476..a25d54029874 100644 --- a/include/asm-x86/pgalloc.h +++ b/include/asm-x86/pgalloc.h | |||
@@ -8,11 +8,11 @@ | |||
8 | #ifdef CONFIG_PARAVIRT | 8 | #ifdef CONFIG_PARAVIRT |
9 | #include <asm/paravirt.h> | 9 | #include <asm/paravirt.h> |
10 | #else | 10 | #else |
11 | #define paravirt_alloc_pt(mm, pfn) do { } while (0) | 11 | #define paravirt_alloc_pte(mm, pfn) do { } while (0) |
12 | #define paravirt_alloc_pd(mm, pfn) do { } while (0) | 12 | #define paravirt_alloc_pmd(mm, pfn) do { } while (0) |
13 | #define paravirt_alloc_pd_clone(pfn, clonepfn, start, count) do { } while (0) | 13 | #define paravirt_alloc_pmd_clone(pfn, clonepfn, start, count) do { } while (0) |
14 | #define paravirt_release_pt(pfn) do { } while (0) | 14 | #define paravirt_release_pte(pfn) do { } while (0) |
15 | #define paravirt_release_pd(pfn) do { } while (0) | 15 | #define paravirt_release_pmd(pfn) do { } while (0) |
16 | #endif | 16 | #endif |
17 | 17 | ||
18 | /* | 18 | /* |
@@ -43,7 +43,7 @@ extern void __pte_free_tlb(struct mmu_gather *tlb, struct page *pte); | |||
43 | static inline void pmd_populate_kernel(struct mm_struct *mm, | 43 | static inline void pmd_populate_kernel(struct mm_struct *mm, |
44 | pmd_t *pmd, pte_t *pte) | 44 | pmd_t *pmd, pte_t *pte) |
45 | { | 45 | { |
46 | paravirt_alloc_pt(mm, __pa(pte) >> PAGE_SHIFT); | 46 | paravirt_alloc_pte(mm, __pa(pte) >> PAGE_SHIFT); |
47 | set_pmd(pmd, __pmd(__pa(pte) | _PAGE_TABLE)); | 47 | set_pmd(pmd, __pmd(__pa(pte) | _PAGE_TABLE)); |
48 | } | 48 | } |
49 | 49 | ||
@@ -52,7 +52,7 @@ static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, | |||
52 | { | 52 | { |
53 | unsigned long pfn = page_to_pfn(pte); | 53 | unsigned long pfn = page_to_pfn(pte); |
54 | 54 | ||
55 | paravirt_alloc_pt(mm, pfn); | 55 | paravirt_alloc_pte(mm, pfn); |
56 | set_pmd(pmd, __pmd(((pteval_t)pfn << PAGE_SHIFT) | _PAGE_TABLE)); | 56 | set_pmd(pmd, __pmd(((pteval_t)pfn << PAGE_SHIFT) | _PAGE_TABLE)); |
57 | } | 57 | } |
58 | 58 | ||
@@ -77,7 +77,7 @@ extern void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd); | |||
77 | #else /* !CONFIG_X86_PAE */ | 77 | #else /* !CONFIG_X86_PAE */ |
78 | static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) | 78 | static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) |
79 | { | 79 | { |
80 | paravirt_alloc_pd(mm, __pa(pmd) >> PAGE_SHIFT); | 80 | paravirt_alloc_pmd(mm, __pa(pmd) >> PAGE_SHIFT); |
81 | set_pud(pud, __pud(_PAGE_TABLE | __pa(pmd))); | 81 | set_pud(pud, __pud(_PAGE_TABLE | __pa(pmd))); |
82 | } | 82 | } |
83 | #endif /* CONFIG_X86_PAE */ | 83 | #endif /* CONFIG_X86_PAE */ |