aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/xen/mmu.c')
-rw-r--r--arch/x86/xen/mmu.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index 4ceb28581652..dbec51da930e 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -1875,10 +1875,7 @@ static void xen_leave_lazy_mmu(void)
1875 preempt_enable(); 1875 preempt_enable();
1876} 1876}
1877 1877
1878const struct pv_mmu_ops xen_mmu_ops __initdata = { 1878static const struct pv_mmu_ops xen_mmu_ops __initdata = {
1879 .pagetable_setup_start = xen_pagetable_setup_start,
1880 .pagetable_setup_done = xen_pagetable_setup_done,
1881
1882 .read_cr2 = xen_read_cr2, 1879 .read_cr2 = xen_read_cr2,
1883 .write_cr2 = xen_write_cr2, 1880 .write_cr2 = xen_write_cr2,
1884 1881
@@ -1954,6 +1951,12 @@ const struct pv_mmu_ops xen_mmu_ops __initdata = {
1954 .set_fixmap = xen_set_fixmap, 1951 .set_fixmap = xen_set_fixmap,
1955}; 1952};
1956 1953
1954void __init xen_init_mmu_ops(void)
1955{
1956 x86_init.paging.pagetable_setup_start = xen_pagetable_setup_start;
1957 x86_init.paging.pagetable_setup_done = xen_pagetable_setup_done;
1958 pv_mmu_ops = xen_mmu_ops;
1959}
1957 1960
1958#ifdef CONFIG_XEN_DEBUG_FS 1961#ifdef CONFIG_XEN_DEBUG_FS
1959 1962