Re: [PATCH 0/6] x86: add missing vzeroupper instructions

Christoph Hellwig <[email protected]>
Newsgroups org.kernel.vger.linux-crypto,org.kernel.vger.linux-kernel,org.kernel.vger.linux-raid,org.kernel.vger.netfilter-devel
Message-ID <[email protected]>
On Sun, Aug 16, 2026 at 10:31:59AM -0700, Eric Biggers wrote:
> As for kernel_fpu_begin(), no, it doesn't do vzeroupper.
> 
> I do think that some years down the line, we'll drop the use of SSE in
> the kernel entirely.  At that point, vzeroupper in kernel_fpu_end()
> would make sense.

Or add kernel_avx_{begin,end} wrappers that include the vzeroupper
in kernel_avx_end.  That would be a lot easier to use than the manual
vzeroupper in every modern user of in-kernel AVX.
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.