-
- Downloads
x86, xsave: context switch support using xsave/xrstor
Uses xsave/xrstor (instead of traditional fxsave/fxrstor) in context switch when available. Introduces TS_XSAVE flag, which determine the need to use xsave/xrstor instructions during context switch instead of the legacy fxsave/fxrstor instructions. Thread-synchronous status word is already in L1 cache during this code patch and thus minimizes the performance penality compared to (cpu_has_xsave) checks. Signed-off-by:Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by:
H. Peter Anvin <hpa@zytor.com> Signed-off-by:
Ingo Molnar <mingo@elte.hu>
Showing
- arch/x86/kernel/cpu/common.c 4 additions, 1 deletionarch/x86/kernel/cpu/common.c
- arch/x86/kernel/i387.c 4 additions, 1 deletionarch/x86/kernel/i387.c
- arch/x86/kernel/traps_64.c 1 addition, 1 deletionarch/x86/kernel/traps_64.c
- include/asm-x86/i387.h 59 additions, 5 deletionsinclude/asm-x86/i387.h
- include/asm-x86/processor.h 1 addition, 0 deletionsinclude/asm-x86/processor.h
- include/asm-x86/thread_info.h 1 addition, 0 deletionsinclude/asm-x86/thread_info.h
- include/asm-x86/xsave.h 34 additions, 1 deletioninclude/asm-x86/xsave.h
Please register or sign in to comment