x86/xsaves: Fix XSAVES issues
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest13 patches 3 repliesIn review
- v613 patches 10 repliesSuperseded
- v5 posting 2/213 patches 16 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 posting 1/2 | 0 of 12 patches | 0 replies | Superseded | |
| v4 | 10 patches | 50 replies | Superseded | |
| v3 | 9 patches | 6 replies | Superseded | |
| v2 | 9 patches | 4 replies | Superseded | |
| v1 | 10 patches | 15 replies | Superseded |
Patches in v7 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | x86/xsaves: Define and use fpu_user_xstate_sizearch/ arch/ arch/ +2 more | +73 | 0 replies | |
| 2/13 | x86/xsaves: Rename xstate_size to fpu_kernel_xstate_size to distinguish from fpu_user_xstate_sizearch/ arch/ arch/ +2 more | +21 | 0 replies | |
| 3/13 | x86/xsaves: Keep init_fpstate.xsave.header.xfeatures as zero for init optimizationarch/ | +2 | 0 replies | |
| 4/13 | x86/xsaves: Introduce a new check that allows correct xstates copy from kernel to user directlyarch/ arch/ arch/ | +4 | 0 replies | |
| 5/13 | x86/xsaves: Align xstate components according to CPUIDarch/ | +32 | 0 replies | |
| 6/13 | x86/xsaves: Supervisor state component offsetarch/ arch/ arch/ | +43 | 0 replies | |
| 7/13 | x86/xsaves: Fix PTRACE frames for XSAVESarch/ arch/ arch/ | +212 | 0 replies | |
| 8/13 | x86/xsaves: Fix XSTATE component offset print outarch/ | +16 | 0 replies | |
| 9/13 | x86/xsaves: Fix xstate_offsets, xstate_sizes for non-extended statesarch/ | +9 | 0 replies | |
| 10/13 | x86/xsaves: Fix __fpu_restore_sig() for XSAVESarch/ | +9 | 0 replies | |
| 11/13 | x86/xsaves: When a disabled xstate component address is requested, return NULLarch/ | +5 | 0 replies | |
| 12/13 | x86/xsaves: Fix fpstate_init() for XRSTORSarch/ arch/ | +14 | 0 replies | |
| 13/13 | x86/xsaves: Re-enable XSAVESarch/ arch/ | +10 | 0 replies |
Reviews trailers per patch
All 13 patches have a Reviewed-by or Acked-by.
| Patch | Dave Hansen |
|---|---|
| 1/13 | R-b |
| 2/13 | R-b |
| 3/13 | R-b |
| 4/13 | R-b |
| 5/13 | R-b |
| 6/13 | R-b |
| 7/13 | R-b |
| 8/13 | R-b |
| 9/13 | R-b |
| 10/13 | R-b |
| 11/13 | R-b |
| 12/13 | R-b |
| 13/13 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v7 00/13] x86/xsaves: Fix XSAVES issues
XSAVES is a kernel-mode instruction. It offers a compacted format and memory-write optimization. These patches fix issues in the first implementation.
Changes since Version 6:
There are no functional or code changes, only some cleanup work:
Patch 1 ~ 4: Fix Signed-off-by chain.
Patch 11, 12: Small changes in the comments.
Yu-cheng Yu (13):
x86/xsaves: Define and use fpu_user_xstate_size x86/xsaves: Rename xstate_size to fpu_kernel_xstate_size to
distinguish from fpu_user_xstate_size
x86/xsaves: Keep init_fpstate.xsave.header.xfeatures as zero for init
optimization
x86/xsaves: Introduce a new check that allows correct xstates copy
from kernel to user directly
x86/xsaves: Align xstate components according to CPUID x86/xsaves: Supervisor state component offset
x86/xsaves: Fix PTRACE frames for XSAVES
x86/xsaves: Fix XSTATE component offset print out x86/xsaves: Fix xstate_offsets, xstate_sizes for non-extended states x86/xsaves: Fix __fpu_restore_sig() for XSAVES
x86/xsaves: When a disabled xstate component address is requested,
return NULL
x86/xsaves: Fix fpstate_init() for XRSTORS
x86/xsaves: Re-enable XSAVES
arch/x86/include/asm/fpu/types.h | 7 + arch/x86/include/asm/fpu/xstate.h | 10 +- arch/x86/include/asm/processor.h | 3 +- arch/x86/kernel/fpu/core.c | 15 +- arch/x86/kernel/fpu/init.c | 34 ++-- arch/x86/kernel/fpu/regset.c | 56 +++-- arch/x86/kernel/fpu/signal.c | 43 +++- arch/x86/kernel/fpu/xstate.c | 417 ++++++++++++++++++++++++++++++-------- 8 files changed, 444 insertions(+), 141 deletions(-)
Signature · 1 line
1.9.1