]> git.baikalelectronics.ru Git - kernel.git/commit
x86/fpu: Remove redundant XCOMP_BV initialization
authorThomas Gleixner <tglx@linutronix.de>
Thu, 24 Mar 2022 13:47:08 +0000 (14:47 +0100)
committerBorislav Petkov <bp@suse.de>
Tue, 29 Mar 2022 18:57:18 +0000 (20:57 +0200)
commit83e5e89691fed3299f8de92c212285c4d05bc1f4
treee03690dda860792a09da362fefac6bda844d0910
parent1630ae00c85972479833e12a66ce2548fd909c03
x86/fpu: Remove redundant XCOMP_BV initialization

fpu_copy_uabi_to_guest_fpstate() initializes the XCOMP_BV field in the
XSAVE header. That's a leftover from the old KVM FPU buffer handling code.

Since

  8c7a54c327eb ("x86/kvm: Convert FPU handling to a single swap buffer")

KVM uses the FPU core allocation code, which initializes the XCOMP_BV
field already.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220324134623.408932232@linutronix.de
arch/x86/kernel/fpu/core.c