Skip to content

x86, xsave: some code cleanups and reworks

Robert Richter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 31 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10x86, xsave: do not include asm/i387.h in asm/xsave.harch/x86/include/asm/xsave.h+0 -11 reply
2/10x86, xsave: 32/64 bit boot cpu check unification in initializationarch/x86/kernel/cpu/common.c+1 -12 replies
3/10x86: removing boot_cpu_id variablearch/x86/include/asm/apb_timer.h arch/x86/include/asm/cpu.h arch/x86/kernel/apb_timer.c +8 more+16 -190 replies
4/10x86, xsave: moving boot cpu initialization to xsave_init()arch/x86/kernel/cpu/common.c arch/x86/kernel/i387.c arch/x86/kernel/xsave.c+12 -132 replies
5/10x86, xsave: make xsave_cntxt_init() staticarch/x86/include/asm/xsave.h arch/x86/kernel/i387.c arch/x86/kernel/xsave.c+9 -63 replies
6/10x86, xsave: do not initialize xsave in fpu_init()arch/x86/include/asm/i387.h arch/x86/kernel/cpu/common.c arch/x86/kernel/i387.c +1 more+17 -71 reply
7/10x86, xsave: reduce cpu_has_xsave checksarch/x86/kernel/xsave.c+3 -61 reply
8/10x86, xsave: introduce xstate enable functionsarch/x86/kernel/xsave.c+8 -111 reply
9/10x86, xsave: check cpuid level for XSTATE_CPUID (0x0d)arch/x86/include/asm/xsave.h arch/x86/kernel/xsave.c+9 -13 replies
10/10x86, xsave: make init_xstate_buf staticarch/x86/include/asm/xsave.h arch/x86/kernel/xsave.c+5 -61 reply

Reviews trailers per patch

6 of 10 patches have a Reviewed-by or Acked-by.

PatchSuresh Siddha
1/10A-b
2/10A-b A-b
3/10
4/10A-b A-b
5/10
6/10
7/10A-b
8/10A-b
9/10
10/10A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] x86, xsave: some code cleanups and reworks

This patch series contains some cleanups and reworks I made during code review and feature implementation for upcoming cpus.

Most patches refactor the xsave initialization that is very dependent on fpu initialization. This series starts to decouple this a little bit as xsave not only supports fpu features. Also this is an attempt to ease the xsave interface by making some of the functions and variables static.

There is also one patch that removes boot_cpu_id variable, which is not really related to xsave. Maybe this should be applied to another branch.

The patches are relative to today's tip/x86/xsave branch.

(The patches are small for better review and rebasing.)

-Robert