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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 16:06:51 +0000 (09:06 -0700)
commitb8cfe68deb636a652d17d2de8e4a61f19a906289
tree1d284e0e5025a35688bd8ec55bf259e20194fc2f
parent3ed5b5c623ef901be4f7e6c7e1a0d576f0e30af4
x86, xen: Disable highmem PTE allocation even when CONFIG_HIGHPTE=y

commit 817a824b75b1475f1b067c8cee318c7b4d66fcde upstream.

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: <xen-devel@lists.xensource.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/xen/enlighten.c
arch/x86/xen/mmu.c