aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2009-08-25 15:53:02 -0400
committerH. Peter Anvin <hpa@zytor.com>2009-08-26 00:10:32 -0400
commitd560bc61575efae43595cbcb56d0ba3b9450139c (patch)
treea8b3c027c473ad0faca22e8a5f1437759c495165 /arch/x86/xen/enlighten.c
parent9c9376886622b45c32f64c4444f5628dde77dfe6 (diff)
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/enlighten.c')
-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 e90540a46a0b..0b755cd7686d 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1059,6 +1059,7 @@ asmlinkage void __init xen_start_kernel(void)
1059 /* set up basic CPUID stuff */ 1059 /* set up basic CPUID stuff */
1060 cpu_detect(&new_cpu_data); 1060 cpu_detect(&new_cpu_data);
1061 new_cpu_data.hard_math = 1; 1061 new_cpu_data.hard_math = 1;
1062 new_cpu_data.wp_works_ok = 1;
1062 new_cpu_data.x86_capability[0] = cpuid_edx(1); 1063 new_cpu_data.x86_capability[0] = cpuid_edx(1);
1063#endif 1064#endif
1064 1065