x86/fpu: Replace KVMs xstate component clearing
authorThomas Gleixner <tglx@linutronix.de>
Wed, 13 Oct 2021 14:55:31 +0000 (16:55 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 20 Oct 2021 20:26:41 +0000 (22:26 +0200)
commit087df48c298c1cb829f4cd468d90f93234b1bc44
treefe5320ccc1ae355d3318f4fdecd753766a318e1f
parent18b3fa1ad15fa8d777ac32f117553cce1a968460
x86/fpu: Replace KVMs xstate component clearing

In order to prepare for the support of dynamically enabled FPU features,
move the clearing of xstate components to the FPU core code.

No functional change.

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/20211013145322.399567049@linutronix.de
arch/x86/include/asm/fpu/api.h
arch/x86/include/asm/fpu/xstate.h
arch/x86/kernel/fpu/xstate.c
arch/x86/kernel/fpu/xstate.h
arch/x86/kvm/x86.c