Skip to content

x86, xsave: some code cleanups and reworks, -v2

Robert Richter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86, xsave: separate fpu and xsave initializationarch/x86/include/asm/i387.h arch/x86/include/asm/xsave.h arch/x86/kernel/cpu/common.c +2 more+26 -151 reply
2/7x86, xsave: introduce xstate enable functionsarch/x86/kernel/xsave.c+8 -119 replies
3/7x86, xsave: check cpuid level for XSTATE_CPUID (0x0d)arch/x86/include/asm/xsave.h arch/x86/kernel/xsave.c+10 -31 reply
4/7x86, xsave: make init_xstate_buf staticarch/x86/include/asm/xsave.h arch/x86/kernel/xsave.c+5 -61 reply
5/7x86, xsave: add __init attribute to setup_xstate_features()arch/x86/kernel/xsave.c+1 -11 reply
6/7x86, xsave: disable xsave in i387 emulation modearch/x86/kernel/i387.c+6 -07 replies
7/7x86: 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 -191 reply

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSuresh Siddha
SeriesA-b
1/7A-b
2/7A-b A-b A-b
3/7A-b
4/7A-b
5/7A-b
6/7
7/7

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 0/7] x86, xsave: some code cleanups and reworks, -v2

Hans Peter, Suresh, and Cyrill, thanks for your feedback.

This is version 2 of the patch series.

Patches 2, 4, 7 are unchanged compared to -v1.

Patch 1 folds the initialization code into one patch. fpu_init() is now called before xsave_init(). xsave_init() can later overwrite xstate_size based on xstate features.

Patch 3 replaces all hardcoded XSTATE_CPUID values know. cpuid_level is now taken from boot_cpu_data.

Patches 5 and 6 are new:
* add __init attribute to setup_xstate_features()
* disable xsave in i387 emulation mode

-Robert