x86, xen: Disable highmem PTE allocation even when CONFIG_HIGHPTE=y
authorIan Campbell <ian.campbell@citrix.com>
Fri, 26 Feb 2010 17:16:00 +0000 (17:16 +0000)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 27 Feb 2010 22:41:01 +0000 (14:41 -0800)
commit817a824b75b1475f1b067c8cee318c7b4d66fcde
tree72c786e2d821344c377fe4f0b233408043c7b89a
parentc1fd1b43831fa20c91cdd461342af8edf2e87c2f
x86, xen: Disable highmem PTE allocation even when CONFIG_HIGHPTE=y

There's a path in the pagefault code where the kernel deliberately
breaks its own locking rules by kmapping a high pte page without
holding the pagetable lock (in at least page_check_address). This
breaks Xen's ability to track the pinned/unpinned state of the
page. There does not appear to be a viable workaround for this
behaviour so simply disable HIGHPTE for all Xen guests.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
LKML-Reference: <1267204562-11844-1-git-send-email-ian.campbell@citrix.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Pasi Kärkkäinen <pasik@iki.fi>
Cc: <stable@kernel.org> # .32.x: 14315592: Allow highmem user page tables to be disabled at boot time
Cc: <stable@kernel.org> # .32.x
Cc: <xen-devel@lists.xensource.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/xen/enlighten.c
arch/x86/xen/mmu.c