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
This commit is contained in:
Thomas Gleixner 2021-10-15 03:16:07 +02:00 • committed by Borislav Petkov
commit 126fe04018
6 changed files with 49 additions and 33 deletions