Skip to content

x86: xsaveopt kernel enabling patches - v2

Suresh Siddha lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

changes in v2 from the cover letter

Split the cpu feature detection bits in to multiple patches along with the misc changes in the init_scattered_cpuid_features() -- Requested by hpa.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86: track the offset, size of features state in the xsave layoutarch/x86/kernel/xsave.c+29 -01 reply
2/5x86: sync xsave memory layout with its header for user handlingarch/x86/include/asm/i387.h arch/x86/include/asm/xsave.h arch/x86/kernel/i387.c +1 more+123 -11 reply
3/5x86: extend init_scattered_cpuid_features() to consider cpuid subleavesarch/x86/kernel/cpu/addon_cpuid_features.c+13 -121 reply
4/5x86: Add xsaveopt cpufeaturearch/x86/include/asm/cpufeature.h+1 -01 reply
5/5x86: use xsaveopt in context-switch path when supportedarch/x86/include/asm/i387.h arch/x86/include/asm/xsave.h arch/x86/kernel/cpu/addon_cpuid_features.c +1 more+16 -42 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/5] x86: xsaveopt kernel enabling patches - v2

AVX Programming Reference (June, 2010 version) located at
http://software.intel.com/en-us/avx/ refers to the optimized extended state save instruction "xsaveopt".

xsaveopt is similar to xsave and incorporates optimizations specifically targeted for speeding up context switch save, like:
a. if a state is in an INIT state, the instruction may clear the corresponding
bit in the xheader.bv with out writing the actual state in to the memory.
b. if the state hasn't been modified since the last xrstor, the instruction
may not write out the state to the save area.

Following patches enable the use of xsaveopt for context switch save/restore of the extended state.

changes in v2:
Split the cpu feature detection bits in to multiple patches along with the misc changes in the init_scattered_cpuid_features() -- Requested by hpa.