diff options
author | Andy Lutomirski <luto@MIT.EDU> | 2011-08-03 09:31:52 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-08-04 19:13:47 -0400 |
commit | 5d5791af4c0d4fd32093882357506355c3357503 (patch) | |
tree | f181b516bf5101b5178948d5c748006355931118 /arch/x86/xen | |
parent | f670bb760e7d32ec9c690e748a1d5d04921363ab (diff) |
x86-64, xen: Enable the vvar mapping
Xen needs to handle VVAR_PAGE, introduced in git commit:
9fd67b4ed0714ab718f1f9bd14c344af336a6df7
x86-64: Give vvars their own page
Otherwise we die during bootup with a message like:
(XEN) mm.c:940:d10 Error getting mfn 1888 (pfn 1e3e48) from L1 entry
8000000001888465 for l1e_owner=10, pg_owner=10
(XEN) mm.c:5049:d10 ptwr_emulate: could not get_page_from_l1e()
[ 0.000000] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 0.000000] IP: [<ffffffff8103a930>] xen_set_pte+0x20/0xe0
Signed-off-by: Andy Lutomirski <luto@mit.edu>
Link: http://lkml.kernel.org/r/4659478ed2f3480938f96491c2ecbe2b2e113a23.1312378163.git.luto@mit.edu
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/xen')
-rw-r--r-- | arch/x86/xen/mmu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 0ccccb67a993..2e78619bc538 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c | |||
@@ -1829,6 +1829,7 @@ static void xen_set_fixmap(unsigned idx, phys_addr_t phys, pgprot_t prot) | |||
1829 | # endif | 1829 | # endif |
1830 | #else | 1830 | #else |
1831 | case VSYSCALL_LAST_PAGE ... VSYSCALL_FIRST_PAGE: | 1831 | case VSYSCALL_LAST_PAGE ... VSYSCALL_FIRST_PAGE: |
1832 | case VVAR_PAGE: | ||
1832 | #endif | 1833 | #endif |
1833 | case FIX_TEXT_POKE0: | 1834 | case FIX_TEXT_POKE0: |
1834 | case FIX_TEXT_POKE1: | 1835 | case FIX_TEXT_POKE1: |
@@ -1869,7 +1870,8 @@ static void xen_set_fixmap(unsigned idx, phys_addr_t phys, pgprot_t prot) | |||
1869 | #ifdef CONFIG_X86_64 | 1870 | #ifdef CONFIG_X86_64 |
1870 | /* Replicate changes to map the vsyscall page into the user | 1871 | /* Replicate changes to map the vsyscall page into the user |
1871 | pagetable vsyscall mapping. */ | 1872 | pagetable vsyscall mapping. */ |
1872 | if (idx >= VSYSCALL_LAST_PAGE && idx <= VSYSCALL_FIRST_PAGE) { | 1873 | if ((idx >= VSYSCALL_LAST_PAGE && idx <= VSYSCALL_FIRST_PAGE) || |
1874 | idx == VVAR_PAGE) { | ||
1873 | unsigned long vaddr = __fix_to_virt(idx); | 1875 | unsigned long vaddr = __fix_to_virt(idx); |
1874 | set_pte_vaddr_pud(level3_user_vsyscall, vaddr, pte); | 1876 | set_pte_vaddr_pud(level3_user_vsyscall, vaddr, pte); |
1875 | } | 1877 | } |