x86, xen: Disable highmem PTE allocation even when CONFIG_HIGHPTE=y
commit81a1448f6f77f2fbbc4b9be64167533d2e2181cf
authorIan Campbell <ian.campbell@citrix.com>
Fri, 26 Feb 2010 17:16:00 +0000 (26 17:16 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 15:50:06 +0000 (15 08:50 -0700)
treeac83eb9e72917aeee77dbf9379530b44925a9205
parent3f03f7afa01b26c17c226816ab6deb222209bb43
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