x86/fpu: Cleanup xstate xcomp_bv initialization
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Oct 2021 01:16:07 +0000 (03:16 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 20 Oct 2021 13:27:26 +0000 (15:27 +0200)
commit126fe0401883598b45b34dbbd5e0d7d8a0aefa21
tree9130ccf3542dd0a47df150a06ca05a67f15789f6
parent509e7a30cd0a9f38abac4114832d9f69ff0d73b4
x86/fpu: Cleanup xstate xcomp_bv initialization

No point in having this duplicated all over the place with needlessly
different defines.

Provide a proper initialization function which initializes user buffers
properly and make KVM use it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011538.897664678@linutronix.de
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/init.c
arch/x86/kernel/fpu/xstate.c
arch/x86/kernel/fpu/xstate.h [new file with mode: 0644]
arch/x86/kvm/x86.c