aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-03-17 19:37:01 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-24 17:57:31 -0400
commit6944a9c8945212a0cc1de3589736d59ec542c539 (patch)
tree3234ea6c8690c9b69d91ab9c9bd3adb0beb4e976 /arch/x86/xen
parent394158559d4c912cc58c311b6346cdea0ed2b1de (diff)
x86: rename paravirt_alloc_pt etc after the pagetable structure
Rename (alloc|release)_(pt|pd) to pte/pmd to explicitly match the name of the appropriate pagetable level structure. [ x86.git merge work by Mark McLoughlin <markmc@redhat.com> ] Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/enlighten.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index c0388220cf97..36f36e6b0874 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -655,15 +655,15 @@ static void xen_write_cr3(unsigned long cr3)
655 655
656/* Early in boot, while setting up the initial pagetable, assume 656/* Early in boot, while setting up the initial pagetable, assume
657 everything is pinned. */ 657 everything is pinned. */
658static __init void xen_alloc_pt_init(struct mm_struct *mm, u32 pfn) 658static __init void xen_alloc_pte_init(struct mm_struct *mm, u32 pfn)
659{ 659{
660 BUG_ON(mem_map); /* should only be used early */ 660 BUG_ON(mem_map); /* should only be used early */
661 make_lowmem_page_readonly(__va(PFN_PHYS(pfn))); 661 make_lowmem_page_readonly(__va(PFN_PHYS(pfn)));
662} 662}
663 663
664/* Early release_pt assumes that all pts are pinned, since there's 664/* Early release_pte assumes that all pts are pinned, since there's
665 only init_mm and anything attached to that is pinned. */ 665 only init_mm and anything attached to that is pinned. */
666static void xen_release_pt_init(u32 pfn) 666static void xen_release_pte_init(u32 pfn)
667{ 667{
668 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); 668 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn)));
669} 669}
@@ -697,12 +697,12 @@ static void xen_alloc_ptpage(struct mm_struct *mm, u32 pfn, unsigned level)
697 } 697 }
698} 698}
699 699
700static void xen_alloc_pt(struct mm_struct *mm, u32 pfn) 700static void xen_alloc_pte(struct mm_struct *mm, u32 pfn)
701{ 701{
702 xen_alloc_ptpage(mm, pfn, PT_PTE); 702 xen_alloc_ptpage(mm, pfn, PT_PTE);
703} 703}
704 704
705static void xen_alloc_pd(struct mm_struct *mm, u32 pfn) 705static void xen_alloc_pmd(struct mm_struct *mm, u32 pfn)
706{ 706{
707 xen_alloc_ptpage(mm, pfn, PT_PMD); 707 xen_alloc_ptpage(mm, pfn, PT_PMD);
708} 708}
@@ -722,12 +722,12 @@ static void xen_release_ptpage(u32 pfn, unsigned level)
722 } 722 }
723} 723}
724 724
725static void xen_release_pt(u32 pfn) 725static void xen_release_pte(u32 pfn)
726{ 726{
727 xen_release_ptpage(pfn, PT_PTE); 727 xen_release_ptpage(pfn, PT_PTE);
728} 728}
729 729
730static void xen_release_pd(u32 pfn) 730static void xen_release_pmd(u32 pfn)
731{ 731{
732 xen_release_ptpage(pfn, PT_PMD); 732 xen_release_ptpage(pfn, PT_PMD);
733} 733}
@@ -849,10 +849,10 @@ static __init void xen_pagetable_setup_done(pgd_t *base)
849{ 849{
850 /* This will work as long as patching hasn't happened yet 850 /* This will work as long as patching hasn't happened yet
851 (which it hasn't) */ 851 (which it hasn't) */
852 pv_mmu_ops.alloc_pt = xen_alloc_pt; 852 pv_mmu_ops.alloc_pte = xen_alloc_pte;
853 pv_mmu_ops.alloc_pd = xen_alloc_pd; 853 pv_mmu_ops.alloc_pmd = xen_alloc_pmd;
854 pv_mmu_ops.release_pt = xen_release_pt; 854 pv_mmu_ops.release_pte = xen_release_pte;
855 pv_mmu_ops.release_pd = xen_release_pd; 855 pv_mmu_ops.release_pmd = xen_release_pmd;
856 pv_mmu_ops.set_pte = xen_set_pte; 856 pv_mmu_ops.set_pte = xen_set_pte;
857 857
858 setup_shared_info(); 858 setup_shared_info();
@@ -1059,11 +1059,11 @@ static const struct pv_mmu_ops xen_mmu_ops __initdata = {
1059 .pte_update = paravirt_nop, 1059 .pte_update = paravirt_nop,
1060 .pte_update_defer = paravirt_nop, 1060 .pte_update_defer = paravirt_nop,
1061 1061
1062 .alloc_pt = xen_alloc_pt_init, 1062 .alloc_pte = xen_alloc_pte_init,
1063 .release_pt = xen_release_pt_init, 1063 .release_pte = xen_release_pte_init,
1064 .alloc_pd = xen_alloc_pt_init, 1064 .alloc_pmd = xen_alloc_pte_init,
1065 .alloc_pd_clone = paravirt_nop, 1065 .alloc_pmd_clone = paravirt_nop,
1066 .release_pd = xen_release_pt_init, 1066 .release_pmd = xen_release_pte_init,
1067 1067
1068#ifdef CONFIG_HIGHPTE 1068#ifdef CONFIG_HIGHPTE
1069 .kmap_atomic_pte = xen_kmap_atomic_pte, 1069 .kmap_atomic_pte = xen_kmap_atomic_pte,