x86/fpu/xstate: Use fpstate for copy_uabi_to_xstate()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 13 Oct 2021 14:55:55 +0000 (16:55 +0200)
committerBorislav Petkov <bp@suse.de>
Thu, 21 Oct 2021 12:24:14 +0000 (14:24 +0200)
commit49e4eb4125d506937e52e10c34c8cafd93ab0ed6
tree1fa7ef4a7fe827c6da8793fc9ba3ea84d7f592bd
parent3ac8d75778fc8c1c22daad9bc674166b862f6f6e
x86/fpu/xstate: Use fpstate for copy_uabi_to_xstate()

Prepare for dynamically enabled states per task. The function needs to
retrieve the features and sizes which are valid in a fpstate
context. Retrieve them from fpstate.

Move the function declarations to the core header as they are not
required anywhere else.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211013145323.233529986@linutronix.de
arch/x86/include/asm/fpu/xstate.h
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/regset.c
arch/x86/kernel/fpu/signal.c
arch/x86/kernel/fpu/xstate.c
arch/x86/kernel/fpu/xstate.h