x86, xen: Suppress WP test on Xen
authorJeremy Fitzhardinge <jeremy@goop.org>
Tue, 25 Aug 2009 19:53:02 +0000 (12:53 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 26 Aug 2009 04:10:32 +0000 (21:10 -0700)
commitd560bc61575efae43595cbcb56d0ba3b9450139c
treea8b3c027c473ad0faca22e8a5f1437759c495165
parent9c9376886622b45c32f64c4444f5628dde77dfe6
x86, xen: Suppress WP test on Xen

Xen always runs on CPUs which properly support WP enforcement in
privileged mode, so there's no need to test for it.

This also works around a crash reported by Arnd Hannemann, though I
think its just a band-aid for that case.

Reported-by: Arnd Hannemann <hannemann@nets.rwth-aachen.de>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/xen/enlighten.c