[PATCH 0/4] x86/fpu: Complete the removal of cpu_has_xfeatures()
From: Eric Biggers
Date: Sun Dec 06 2026 - 00:13:03 EST
This series completes the removal of cpu_has_xfeatures(), which was
originally attempted in
https://lore.kernel.org/all/20260901145740.42337-1-ebiggers@xxxxxxxxxx/
but the actual removal was delayed because a new caller appeared.
Patches 1-3 address that new caller, then patch 4 removes
cpu_has_xfeatures().
Patch 1 also happens to fix the get_xsave_addr() warning reported by
Jiaming Zhang. (I know it's debatable whether it's really a "bug", as
it requires a buggy CPU or hypervisor. I'll let the x86 maintainers
decide whether they want to add Fixes and Cc stable to patch 1.)
This applies to next-20261204.
Eric Biggers (4):
x86/fpu: Check for missing CET_USER xstate component
x86/fpu: Check for missing APX xstate component
perf/x86/intel: Remove redundant cpu_has_xfeatures() checks
x86/fpu: Remove cpu_has_xfeatures()
arch/x86/events/intel/core.c | 22 ++++--------
arch/x86/include/asm/fpu/api.h | 9 -----
arch/x86/kernel/cpu/cpuid-deps.c | 1 +
arch/x86/kernel/fpu/xstate.c | 60 ++++++++++----------------------
4 files changed, 25 insertions(+), 67 deletions(-)
base-commit: 29beb21c21ada7207692b2d69fc58dcd15dab6e9
--
2.56.1