[PATCH v2 1/8] x86/fpu: Check for missing AVX and AVX-512 xstate bits

Borislav Petkov bp at alien8.de
Tue Jul 28 16:47:26 PDT 2026


On Tue, Jul 28, 2026 at 04:34:30PM -0700, Eric Biggers wrote:
> I don't know what your suggestion is.  Are you still asking for the
> function to be renamed to clear_cpu_caps_xft()?  Note that the
> abbreviation "xft" doesn't appear anywhere else in arch/x86/.  Maybe you
> want the argument inverted?  I don't know what you want, sorry.

That's fine - I'll take a look at the final version after having gone through
the whole pile and then holler if I still see a need.

> The UML update is in this series.  See patch 2.  Maybe you don't care
> about UML but many people do.  kunit.py uses it by default, for example.

So I've heard.

> fpu__init_system_xstate() is already a function called once on the boot
> CPU.  Is your suggestion that the feature clearing should be once per
> CPU instead of just on the boot CPU?

Yes, we need it to run on every CPU if we're going to enforce the same
xfeatures and CPUID bits configuration everywhere.

Thx.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette



More information about the linux-um mailing list