aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@amacapital.net>2014-05-05 15:19:36 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2014-05-05 16:19:01 -0400
commitf40c330091c7aa9956ab66f97a3abc8a68b67240 (patch)
treeb0c03dce9bf67eb15c98980a7323ca35122d10df /arch/x86/xen
parent18d0a6fd227177fd243993179c90e454d0638b06 (diff)
x86, vdso: Move the vvar and hpet mappings next to the 64-bit vDSO
This makes the 64-bit and x32 vdsos use the same mechanism as the 32-bit vdso. Most of the churn is deleting all the old fixmap code. Signed-off-by: Andy Lutomirski <luto@amacapital.net> Link: http://lkml.kernel.org/r/8af87023f57f6bb96ec8d17fce3f88018195b49b.1399317206.git.luto@amacapital.net Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/mmu.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index 86e02eabb640..3060568248d3 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -1494,7 +1494,7 @@ static int xen_pgd_alloc(struct mm_struct *mm)
1494 page->private = (unsigned long)user_pgd; 1494 page->private = (unsigned long)user_pgd;
1495 1495
1496 if (user_pgd != NULL) { 1496 if (user_pgd != NULL) {
1497 user_pgd[pgd_index(VSYSCALL_START)] = 1497 user_pgd[pgd_index(VSYSCALL_ADDR)] =
1498 __pgd(__pa(level3_user_vsyscall) | _PAGE_TABLE); 1498 __pgd(__pa(level3_user_vsyscall) | _PAGE_TABLE);
1499 ret = 0; 1499 ret = 0;
1500 } 1500 }
@@ -2062,8 +2062,7 @@ static void xen_set_fixmap(unsigned idx, phys_addr_t phys, pgprot_t prot)
2062 case FIX_KMAP_BEGIN ... FIX_KMAP_END: 2062 case FIX_KMAP_BEGIN ... FIX_KMAP_END:
2063# endif 2063# endif
2064#else 2064#else
2065 case VSYSCALL_LAST_PAGE ... VSYSCALL_FIRST_PAGE: 2065 case VSYSCALL_PAGE:
2066 case VVAR_PAGE:
2067#endif 2066#endif
2068 case FIX_TEXT_POKE0: 2067 case FIX_TEXT_POKE0:
2069 case FIX_TEXT_POKE1: 2068 case FIX_TEXT_POKE1:
@@ -2104,8 +2103,7 @@ static void xen_set_fixmap(unsigned idx, phys_addr_t phys, pgprot_t prot)
2104#ifdef CONFIG_X86_64 2103#ifdef CONFIG_X86_64
2105 /* Replicate changes to map the vsyscall page into the user 2104 /* Replicate changes to map the vsyscall page into the user
2106 pagetable vsyscall mapping. */ 2105 pagetable vsyscall mapping. */
2107 if ((idx >= VSYSCALL_LAST_PAGE && idx <= VSYSCALL_FIRST_PAGE) || 2106 if (idx == VSYSCALL_PAGE) {
2108 idx == VVAR_PAGE) {
2109 unsigned long vaddr = __fix_to_virt(idx); 2107 unsigned long vaddr = __fix_to_virt(idx);
2110 set_pte_vaddr_pud(level3_user_vsyscall, vaddr, pte); 2108 set_pte_vaddr_pud(level3_user_vsyscall, vaddr, pte);
2111 } 2109 }