mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86: "noxsave" should imply further disabled features
@ 2015-07-20  7:49 Jan Beulich
  2015-07-21  9:38 ` [tip:x86/urgent] x86/fpu: Disable dependent CPU features on " noxsave" tip-bot for Jan Beulich
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2015-07-20  7:49 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: linux-kernel

Complete the set of dependent features that need disabling at once:
XSAVEC, AVX-512 and all currently known to the kernel extensions to it,
as well as MPX need to be disabled too.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
 arch/x86/kernel/fpu/init.c |    6 ++++++
 1 file changed, 6 insertions(+)

--- 4.2-rc3/arch/x86/kernel/fpu/init.c
+++ 4.2-rc3-x86-noxsave-means-nompx/arch/x86/kernel/fpu/init.c
@@ -351,9 +351,15 @@ static int __init x86_noxsave_setup(char
 
 	setup_clear_cpu_cap(X86_FEATURE_XSAVE);
 	setup_clear_cpu_cap(X86_FEATURE_XSAVEOPT);
+	setup_clear_cpu_cap(X86_FEATURE_XSAVEC);
 	setup_clear_cpu_cap(X86_FEATURE_XSAVES);
 	setup_clear_cpu_cap(X86_FEATURE_AVX);
 	setup_clear_cpu_cap(X86_FEATURE_AVX2);
+	setup_clear_cpu_cap(X86_FEATURE_AVX512F);
+	setup_clear_cpu_cap(X86_FEATURE_AVX512PF);
+	setup_clear_cpu_cap(X86_FEATURE_AVX512ER);
+	setup_clear_cpu_cap(X86_FEATURE_AVX512CD);
+	setup_clear_cpu_cap(X86_FEATURE_MPX);
 
 	return 1;
 }




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-21  9:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-20  7:49 [PATCH] x86: "noxsave" should imply further disabled features Jan Beulich
2015-07-21  9:38 ` [tip:x86/urgent] x86/fpu: Disable dependent CPU features on " noxsave" tip-bot for Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome