Skip to content

x86: xsaveopt kernel enabling patches

Suresh Siddha lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86: track the offset, size of features state in the xsave layoutarch/x86/kernel/xsave.c+29 -00 replies
2/3x86: 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 -10 replies
3/3x86: use xsaveopt in context-switch path when supportedarch/x86/include/asm/cpufeature.h arch/x86/include/asm/i387.h arch/x86/include/asm/xsave.h +2 more+29 -150 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/3] x86: xsaveopt kernel enabling patches

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.