mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]> Signed-off-by: Jeremy Fitzhardinge <[email protected]> Acked-by: Pekka Enberg <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]>
This commit is contained in:
1 parent
9c93768866
commit
d560bc6157
1 file changed
+1
@@ -1059,6 +1059,7 @@ asmlinkage void __init xen_start_kernel(void)
|
|||||||
/* set up basic CPUID stuff */
|
/* set up basic CPUID stuff */
|
||||||
cpu_detect(&new_cpu_data);
|
cpu_detect(&new_cpu_data);
|
||||||
new_cpu_data.hard_math = 1;
|
new_cpu_data.hard_math = 1;
|
||||||
|
new_cpu_data.wp_works_ok = 1;
|
||||||
new_cpu_data.x86_capability[0] = cpuid_edx(1);
|
new_cpu_data.x86_capability[0] = cpuid_edx(1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user