diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-10-15 04:16:17 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-10-20 23:17:17 +0300 |
commit | bf5d00470787067ff27593c6a097b5eb6e01168e (patch) | |
tree | 8207849b57070ee84d66fe62075763fb7f87f895 /arch/x86/include/asm/fpu/api.h | |
parent | 079ec41b22b952cdf3126527d735e373c9125f6d (diff) | |
download | linux-bf5d00470787067ff27593c6a097b5eb6e01168e.tar.xz |
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
Diffstat (limited to 'arch/x86/include/asm/fpu/api.h')
-rw-r--r-- | arch/x86/include/asm/fpu/api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/fpu/api.h b/arch/x86/include/asm/fpu/api.h index 9263d708dff9..5ac5e4596b53 100644 --- a/arch/x86/include/asm/fpu/api.h +++ b/arch/x86/include/asm/fpu/api.h @@ -137,5 +137,6 @@ extern void fpu_init_fpstate_user(struct fpu *fpu); extern void fpu_swap_kvm_fpu(struct fpu *save, struct fpu *rstor, u64 restore_mask); extern int fpu_copy_kvm_uabi_to_fpstate(struct fpu *fpu, const void *buf, u64 xcr0, u32 *pkru); +extern void fpu_copy_fpstate_to_kvm_uabi(struct fpu *fpu, void *buf, unsigned int size, u32 pkru); #endif /* _ASM_X86_FPU_API_H */ |