]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/fpu: Cleanup xstate xcomp_bv initialization
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Oct 2021 01:16:07 +0000 (03:16 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 5 May 2022 07:14:11 +0000 (09:14 +0200)
commitff4ec87483bd4ca63887f9dd4abdc93aa56a6d47
treebe692556c4c29501d26f20bc9b2fb6ea71a64799
parenta1c906c2a482910dafdf634ee9d1a4ef5ca5321e
x86/fpu: Cleanup xstate xcomp_bv initialization

BugLink: https://bugs.launchpad.net/bugs/1967750
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
(cherry picked from commit 126fe0401883598b45b34dbbd5e0d7d8a0aefa21)
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
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