]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/fpu: Replace KVMs xstate component clearing
authorThomas Gleixner <tglx@linutronix.de>
Wed, 13 Oct 2021 14:55:31 +0000 (16:55 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 5 May 2022 07:14:14 +0000 (09:14 +0200)
commite3cba85e1f191e906774b081f8fa69cd0a8e19b1
tree686befdba40815a7f6d0fd4eebda00cffa0cbb7e
parent9492f341addf20c3f5834faad31c41c74bbc27d5
x86/fpu: Replace KVMs xstate component clearing

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