Skip to content

Commit d560bc6

Browse files
jsgfH. Peter Anvin
authored andcommitted
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>
1 parent 9c93768 commit d560bc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/xen/enlighten.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,7 @@ asmlinkage void __init xen_start_kernel(void)
10591059
/* set up basic CPUID stuff */
10601060
cpu_detect(&new_cpu_data);
10611061
new_cpu_data.hard_math = 1;
1062+
new_cpu_data.wp_works_ok = 1;
10621063
new_cpu_data.x86_capability[0] = cpuid_edx(1);
10631064
#endif
10641065

0 commit comments

Comments
 (0)