Re: [PATCH v3 0/8] x86: Remove cpu_has_xfeatures() and add AVX-512 xor_gen()

Borislav Petkov <[email protected]>
Newsgroups org.infradead.lists.linux-um,org.kernel.vger.linux-crypto,org.kernel.vger.linux-kernel,org.kernel.vger.linux-raid
Message-ID <20260814003517.GBan5ixaTArd0Sf6X3@fat_crate.local>
On Wed, Aug 12, 2026 at 07:14:58PM -0700, Eric Biggers wrote:
> This series consolidates and cleans up how the kernel handles CPU
> feature flags for AVX and AVX-512 when the underlying OS or hypervisor
> (if any) doesn't enable the required xstate features in XCR0.
> 
> Specifically, it makes the checks for xstate features be done in a
> single place at boot time for both UML and native x86, instead of
> everywhere kernel code wants to check for AVX or AVX-512 support.
> 
> Patch 8 then adds an AVX-512 optimized implementation of xor_gen() for
> RAID, which had been blocked on confusion around cpu_has_xfeatures() and
> its lack of implementation on UML.

Sashiko complains about a missing VZEROUPPER there in patch 8:

https://sashiko.dev/#/patchset/20260813021506.55129-1-ebiggers%40kernel.org

Otherwise, LGTM.

I can queue them all into tip after the merge window opens.

Thx.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.