x86/fpu: Rename copy_fpregs_to_fpstate() to save_fpregs_to_fpstate()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Jun 2021 12:01:59 +0000 (14:01 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 23 Jun 2021 16:26:43 +0000 (18:26 +0200)
commitebe7234b08a42d69bae94c4062a84777ea26ef99
tree295fb5e38b8daed68ae1e86d4fb269b045cf0d22
parent522e92743b35351bda1b6a9136560f833a9c2490
x86/fpu: Rename copy_fpregs_to_fpstate() to save_fpregs_to_fpstate()

A copy is guaranteed to leave the source intact, which is not the case when
FNSAVE is used as that reinitilizes the registers.

Save does not make such guarantees and it matches what this is about,
i.e. to save the state for a later restore.

Rename it to save_fpregs_to_fpstate().

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