linux/arch/x86/kernel/fpu
Andi Kleen ccb18db2ab x86/fpu: Make XSAVE check the base CPUID features before enabling
Before enabling XSAVE, not only check the XSAVE specific CPUID bits,
but also the base CPUID features of the respective XSAVE feature.
This allows to disable individual XSAVE states using the existing
clearcpuid= option, which can be useful for performance testing
and debugging, and also in general avoids inconsistencies.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20171013215645.23166-5-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-10-17 17:14:57 +02:00
..
bugs.c x86/fpu: Stop saving and restoring CR0.TS in fpu__init_check_bugs() 2016-11-01 07:47:53 +01:00
core.c x86/fpu: Rename fpu__activate_fpstate_read/write() to fpu__prepare_[read|write]() 2017-09-26 09:43:44 +02:00
init.c x86/fpu: Parse clearcpuid= as early XSAVE argument 2017-10-17 17:14:57 +02:00
Makefile
regset.c x86/fpu: Use using_compacted_format() instead of open coded X86_FEATURE_XSAVES 2017-09-26 09:43:48 +02:00
signal.c x86/fpu: Use validate_xstate_header() to validate the xstate_header in __fpu__restore_sig() 2017-09-26 09:43:46 +02:00
xstate.c x86/fpu: Make XSAVE check the base CPUID features before enabling 2017-10-17 17:14:57 +02:00