|
@@ -7,7 +7,7 @@
|
|
#ifdef CONFIG_PARAVIRT
|
|
#ifdef CONFIG_PARAVIRT
|
|
#include <asm/paravirt.h>
|
|
#include <asm/paravirt.h>
|
|
#else
|
|
#else
|
|
-#define paravirt_alloc_pt(pfn) do { } while (0)
|
|
|
|
|
|
+#define paravirt_alloc_pt(mm, pfn) do { } while (0)
|
|
#define paravirt_alloc_pd(pfn) do { } while (0)
|
|
#define paravirt_alloc_pd(pfn) do { } while (0)
|
|
#define paravirt_alloc_pd(pfn) do { } while (0)
|
|
#define paravirt_alloc_pd(pfn) do { } while (0)
|
|
#define paravirt_alloc_pd_clone(pfn, clonepfn, start, count) do { } while (0)
|
|
#define paravirt_alloc_pd_clone(pfn, clonepfn, start, count) do { } while (0)
|
|
@@ -17,13 +17,13 @@
|
|
|
|
|
|
#define pmd_populate_kernel(mm, pmd, pte) \
|
|
#define pmd_populate_kernel(mm, pmd, pte) \
|
|
do { \
|
|
do { \
|
|
- paravirt_alloc_pt(__pa(pte) >> PAGE_SHIFT); \
|
|
|
|
|
|
+ paravirt_alloc_pt(mm, __pa(pte) >> PAGE_SHIFT); \
|
|
set_pmd(pmd, __pmd(_PAGE_TABLE + __pa(pte))); \
|
|
set_pmd(pmd, __pmd(_PAGE_TABLE + __pa(pte))); \
|
|
} while (0)
|
|
} while (0)
|
|
|
|
|
|
#define pmd_populate(mm, pmd, pte) \
|
|
#define pmd_populate(mm, pmd, pte) \
|
|
do { \
|
|
do { \
|
|
- paravirt_alloc_pt(page_to_pfn(pte)); \
|
|
|
|
|
|
+ paravirt_alloc_pt(mm, page_to_pfn(pte)); \
|
|
set_pmd(pmd, __pmd(_PAGE_TABLE + \
|
|
set_pmd(pmd, __pmd(_PAGE_TABLE + \
|
|
((unsigned long long)page_to_pfn(pte) << \
|
|
((unsigned long long)page_to_pfn(pte) << \
|
|
(unsigned long long) PAGE_SHIFT))); \
|
|
(unsigned long long) PAGE_SHIFT))); \
|