x86/fpu: Preparatory cleanups for AMX support (part 1)
Status from this message: The following commit has been merged into the x86/fpu branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest30 patches 1 replyApplied
- v131 patches 63 repliesSuperseded
Changes in v2 from the cover letter
- Fixed the issue in the !XSAVE code path of the kvm UABI copy function - Paolo
- Renamed the KVM functions - Boris, Paolo, Sean
- Fixed the comments and changelog issues - Boris
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/30 | x86/fpu: Remove pointless argument from switch_fpu_finish()arch/ arch/ arch/ | +3 | 0 replies | |
| 2/30 | x86/fpu: Update stale commentsarch/ | +3 | 0 replies | |
| 3/30 | x86/pkru: Remove useless includearch/ arch/ | +2 | 0 replies | |
| 4/30 | x86/fpu: Restrict xsaves()/xrstors() to independent statesarch/ | +7 | 0 replies | |
| 5/30 | x86/fpu: Cleanup the on_boot_cpu clutterarch/ arch/ | +0 | 0 replies | |
| 6/30 | x86/fpu: Remove pointless memset in fpu_clone()arch/ | +0 | 0 replies | |
| 7/30 | x86/process: Clone FPU in copy_thread()arch/ | +3 | 0 replies | |
| 8/30 | x86/fpu: Do not inherit FPU context for kernel and IO worker threadsarch/ | +26 | 0 replies | |
| 9/30 | x86/fpu: Cleanup xstate xcomp_bv initializationarch/ arch/ arch/ +3 more | +49 | 0 replies | |
| 10/30 | x86/fpu/xstate: Provide and use for_each_xfeature()arch/ | +23 | 0 replies | |
| 11/30 | x86/fpu/xstate: Mark all init only functions __initarch/ | +5 | 0 replies | |
| 12/30 | x86/fpu: Move KVMs FPU swapping to FPU corearch/ arch/ arch/ +4 more | +48 | 0 replies | |
| 13/30 | x86/fpu: Replace KVMs home brewed FPU copy from userarch/ arch/ arch/ +1 more | +43 | 0 replies | |
| 14/30 | x86/fpu: Rework copy_xstate_to_uabi_buf()arch/ arch/ | +29 | 0 replies | |
| 15/30 | x86/fpu: Replace KVMs home brewed FPU copy to userarch/ arch/ arch/ | +22 | 0 replies | |
| 16/30 | x86/fpu: Mark fpu__init_prepare_fx_sw_frame() as __initarch/ arch/ arch/ +1 more | +12 | 0 replies | |
| 17/30 | x86/fpu: Move context switch and exit to user inlines into sched.harch/ arch/ arch/ +3 more | +72 | 0 replies | |
| 18/30 | x86/fpu: Clean up cpu feature testsarch/ arch/ arch/ +1 more | +14 | 0 replies | |
| 19/30 | x86/fpu: Make os_xrstor_booting() privatearch/ arch/ | +23 | 0 replies | |
| 20/30 | x86/fpu: Move os_xsave() and os_xrstor() to corearch/ arch/ arch/ +1 more | +175 | 0 replies | |
| 21/30 | x86/fpu: Move legacy ASM wrappers to corearch/ arch/ arch/ +2 more | +111 | 0 replies | |
| 22/30 | x86/fpu: Make WARN_ON_FPU() privatearch/ arch/ arch/ | +8 | 0 replies | |
| 23/30 | x86/fpu: Move fpregs_restore_userregs() to corearch/ arch/ arch/ +2 more | +88 | 1 reply | |
| 24/30 | x86/fpu: Move mxcsr related code to corearch/ arch/ arch/ +3 more | +12 | 0 replies | |
| 25/30 | x86/fpu: Move fpstate functions to api.harch/ arch/ arch/ +1 more | +13 | 0 replies | |
| 26/30 | x86/fpu: Remove internal.h dependency from fpu/signal.harch/ arch/ arch/ +5 more | +18 | 0 replies | |
| 27/30 | x86/sev: Include fpu/xcr.harch/ | +1 | 0 replies | |
| 28/30 | x86/fpu: Mop up the internal.h leftoversarch/ arch/ arch/ +1 more | +14 | 0 replies | |
| 29/30 | x86/fpu: Replace the includes of fpu/internal.harch/ arch/ arch/ +9 more | +10 | 0 replies | |
| 30/30 | x86/fpu: Provide a proper function for ex_handler_fprestore()arch/ arch/ arch/ +1 more | +10 | 0 replies |
Reviews trailers per patch
1 of 30 patches has a Reviewed-by or Acked-by.
| Patch | Paolo Bonzini |
|---|---|
| 1/30 | |
| 2/30 | |
| 3/30 | |
| 4/30 | |
| 5/30 | |
| 6/30 | |
| 7/30 | |
| 8/30 | |
| 9/30 | |
| 10/30 | |
| 11/30 | |
| 12/30 | R-b |
| 13/30 | |
| 14/30 | |
| 15/30 | |
| 16/30 | |
| 17/30 | |
| 18/30 | |
| 19/30 | |
| 20/30 | |
| 21/30 | |
| 22/30 | |
| 23/30 | |
| 24/30 | |
| 25/30 | |
| 26/30 | |
| 27/30 | |
| 28/30 | |
| 29/30 | |
| 30/30 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [patch V2 00/30] x86/fpu: Preparatory cleanups for AMX support (part 1)
This is the rework of the V1 part-1 series of the effort to support the new AMX feature:
https://lore.kernel.org/r/[email protected]
This part cleans up existing mess. Historical leftovers, shortcomings and especially the universal kitchen sink asm/fpu/internal.h which is included all over the place for the wrong reasons.
This series has a value independent of AMX, but allows to make the integration and conversion to the new world order of dynamically enabled feature bits simpler.
The serries is based on:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/fpu
and also available from git:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/fpu-1
The full series which has the full AMX support included can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/fpu
Changes vs. V1:
- Fixed the issue in the !XSAVE code path of the kvm UABI copy function - Paolo
- Renamed the KVM functions - Boris, Paolo, Sean
- Fixed the comments and changelog issues - Boris
Thanks,
tglx
--- arch/x86/events/perf_event.h | 1 arch/x86/ia32/ia32_signal.c | 1 arch/x86/include/asm/fpu/api.h | 31 ++ arch/x86/include/asm/fpu/internal.h | 530 ------------------------------------ arch/x86/include/asm/fpu/signal.h | 13 arch/x86/include/asm/fpu/xcr.h | 11 arch/x86/include/asm/fpu/xstate.h | 6 arch/x86/include/asm/pkru.h | 2 arch/x86/kernel/cpu/bugs.c | 2 arch/x86/kernel/cpu/common.c | 2 arch/x86/kernel/fpu/bugs.c | 2 arch/x86/kernel/fpu/core.c | 161 ++++++++-- arch/x86/kernel/fpu/init.c | 29 - arch/x86/kernel/fpu/regset.c | 6 arch/x86/kernel/fpu/signal.c | 21 - arch/x86/kernel/fpu/xstate.c | 172 ++++++----- arch/x86/kernel/process.c | 6 arch/x86/kernel/process_32.c | 5 arch/x86/kernel/process_64.c | 5 arch/x86/kernel/ptrace.c | 1 arch/x86/kernel/sev.c | 2 arch/x86/kernel/signal.c | 1 arch/x86/kernel/smpboot.c | 2 arch/x86/kernel/traps.c | 2 arch/x86/kvm/svm/sev.c | 2 arch/x86/kvm/vmx/vmx.c | 2 arch/x86/kvm/x86.c | 192 +------------ arch/x86/math-emu/fpu_entry.c | 2 arch/x86/mm/extable.c | 4 arch/x86/power/cpu.c | 2 b/arch/x86/include/asm/fpu/sched.h | 68 ++++ b/arch/x86/kernel/fpu/context.h | 85 +++++ b/arch/x86/kernel/fpu/internal.h | 30 ++ b/arch/x86/kernel/fpu/legacy.h | 115 +++++++ b/arch/x86/kernel/fpu/xstate.h | 198 +++++++++++++ 35 files changed, 824 insertions(+), 890 deletions(-)