summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2009-08-25 12:53:02 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-08-25 21:10:32 -0700
commitd560bc61575efae43595cbcb56d0ba3b9450139c (patch)
treea8b3c027c473ad0faca22e8a5f1437759c495165 /arch/x86/xen
parent9c9376886622b45c32f64c4444f5628dde77dfe6 (diff)
downloadop-kernel-dev-d560bc61575efae43595cbcb56d0ba3b9450139c.zip
op-kernel-dev-d560bc61575efae43595cbcb56d0ba3b9450139c.tar.gz
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>
Diffstat (limited to 'arch/x86/xen')
-rw-r--r--arch/x86/xen/enlighten.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index e90540a..0b755cd 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1059,6 +1059,7 @@ asmlinkage void __init xen_start_kernel(void)
/* set up basic CPUID stuff */
cpu_detect(&new_cpu_data);
new_cpu_data.hard_math = 1;
+ new_cpu_data.wp_works_ok = 1;
new_cpu_data.x86_capability[0] = cpuid_edx(1);
#endif
OpenPOWER on IntegriCloud