]> git.baikalelectronics.ru Git - kernel.git/commit
x86/fpu: Rework copy_xstate_to_uabi_buf()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Oct 2021 01:16:15 +0000 (03:16 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 20 Oct 2021 13:27:27 +0000 (15:27 +0200)
commitf2a9c29eedcef589e5422a9091c1ebe9d5d431c2
treeb18f6092eff4e6f07719f78c030e37618c343c27
parent7a72b6880c2e98e1427771cdd43f7e467b88a47e
x86/fpu: Rework copy_xstate_to_uabi_buf()

Prepare for replacing the KVM copy xstate to user function by extending
copy_xstate_to_uabi_buf() with a pkru argument which allows the caller to
hand in the pkru value, which is required for KVM because the guest PKRU is
not accessible via current. Fixup all callsites accordingly.

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