x86/fpu: Replace KVMs home brewed FPU copy to user
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Oct 2021 01:16:17 +0000 (03:16 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 20 Oct 2021 20:17:17 +0000 (22:17 +0200)
commitbf5d00470787067ff27593c6a097b5eb6e01168e
tree8207849b57070ee84d66fe62075763fb7f87f895
parent079ec41b22b952cdf3126527d735e373c9125f6d
x86/fpu: Replace KVMs home brewed FPU copy to user

Similar to the copy from user function the FPU core has this already
implemented with all bells and whistles.

Get rid of the duplicated code and use the core functionality.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: kvm@vger.kernel.org
Link: https://lkml.kernel.org/r/20211015011539.244101845@linutronix.de
arch/x86/include/asm/fpu/api.h
arch/x86/kernel/fpu/core.c
arch/x86/kvm/x86.c