Home
last modified time | relevance | path

Searched hist:"2 c87767c" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/x86/kernel/fpu/
H A Dxstate.c2c87767c Tue Nov 15 17:09:29 CST 2022 Kyle Huey <me@kylehuey.com> x86/fpu: Add a pkru argument to copy_uabi_to_xstate()

In preparation for moving PKRU handling code out of
fpu_copy_uabi_to_guest_fpstate() and into copy_uabi_to_xstate(), add an
argument that copy_uabi_from_kernel_to_xstate() can use to pass the
canonical location of the PKRU value. For
copy_sigframe_from_user_to_xstate() the kernel will actually restore the
PKRU value from the fpstate, but pass in the thread_struct's pkru location
anyways for consistency.

Signed-off-by: Kyle Huey <me@kylehuey.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20221115230932.7126-4-khuey%40kylehuey.com