]> 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>
Wed, 27 Apr 2022 09:55:51 +0000 (11:55 +0200)
commite1719e6a2983cbf89154a6fe868ce516c0ae44dc
tree77121aeb3f084ca5e496b83fa812a8de64d47d22
parenteee1498da0d8621eff602d4d785f703d6899a0d4
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