]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/fpu: Remove xfd argument from __fpstate_reset()
authorChao Gao <chao.gao@intel.com>
Thu, 22 May 2025 15:10:07 +0000 (08:10 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Tue, 24 Jun 2025 20:46:32 +0000 (13:46 -0700)
commitfafb29e18db2eef75edafd4240fcde8b5da2c948
tree0ccf69fe32634db4827531cc39247cb1382edcd3
parent509e880b779592aafb41b3b23de3df7e4e2e2fcf
x86/fpu: Remove xfd argument from __fpstate_reset()

The initial values for fpstate::xfd differ between guest and host fpstates.
Currently, the initial values are passed as an argument to
__fpstate_reset(). But, __fpstate_reset() already assigns different default
features and sizes based on the type of fpstates (i.e., guest or host). So,
handle fpstate::xfd in a similar way to highlight the differences in the
initial xfd value between guest and host fpstates

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Chao Gao <chao.gao@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: John Allen <john.allen@amd.com>
Link: https://lore.kernel.org/all/aBuf7wiiDT0Wflhk@google.com/
Link: https://lore.kernel.org/all/20250522151031.426788-5-chao.gao%40intel.com
arch/x86/kernel/fpu/core.c