Skip to content

x86, xsave: xsave/xrstor support

Suresh Siddha lkml 1 version Applied

Status from this message: Applied as tip:x86/xsave.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 27 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9x86, xsave: xsave cpuid feature bitsarch/x86/kernel/cpu/feature_names.c include/asm-x86/cpufeature.h+3 -10 replies
2/9x86, xsave: enable xsave/xrstor on cpus with xsave supportarch/x86/kernel/Makefile arch/x86/kernel/cpu/common.c arch/x86/kernel/i387.c +7 more+148 -60 replies
3/9x86, xsave: context switch support using xsave/xrstorarch/x86/kernel/cpu/common.c arch/x86/kernel/i387.c arch/x86/kernel/traps_64.c +4 more+103 -80 replies
4/9x86, xsave: dynamically allocate sigframes fpstate instead of static allocationarch/x86/ia32/ia32_signal.c arch/x86/kernel/i387.c arch/x86/kernel/sigframe.h +4 more+50 -160 replies
5/9x86, xsave: reorganization of signal save/restore fpstate code layoutarch/x86/ia32/ia32_signal.c arch/x86/kernel/i387.c arch/x86/kernel/signal_32.c +3 more+134 -1410 replies
6/9x86, xsave: xsave/xrstor specific routinesinclude/asm-x86/xsave.h+52 -00 replies
7/9x86, xsave: struct _fpstate extensions to include extended state informationinclude/asm-x86/processor.h include/asm-x86/sigcontext.h include/asm-x86/sigcontext32.h+92 -60 replies
8/9x86, xsave: save/restore the extended state context in sigframearch/x86/ia32/ia32_signal.c arch/x86/kernel/i387.c arch/x86/kernel/signal_32.c +5 more+264 -220 replies
9/9x86, xsave: update xsave header bits during ptrace fpregs setarch/x86/kernel/i387.c+13 -00 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/9] x86, xsave: xsave/xrstor support

This patchset adds the support for xsave/xrstor infrastructure for x86. xsave/xrstor manages the existing and future processor extended states in x86 architecutre.

More info on xsave/xrstor can be found in the Intel SDM's located at
http://www.intel.com/products/processor/manuals/index.htm

The layout of the xsave/xrstor area extends from the 512-byte FXSAVE/FXRSTOR layout. xsave/xrstor area layout consists of:

- fxsave/fxrstor area (512 bytes)
- xsave header area (64 bytes)
- set of save areas, each corresponding to a processor extended state

The number of save areas, the offset and the size of each save area is enumerated by CPUID leaf function 0xd.

This patch includes the basic xsave/xrstor infrastructure(supporting FP/SSE), which includes:
- context switch support, extending traditional lazy restore mechanism
- signal handling support, extending(using the software reserved bytes 464..511 in the current 512byte layout of fxsave frame) the memory layout pointed out by the fpstate pointer in the sigcontext

More details in the patches to follow.

---