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

From: Christoph Hellwig

Date: Mon Aug 17 2026 - 05:15:55 EST


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.