Re: [PATCH v5 6/8] x86/fpu: Remove cpu_has_xfeatures()
From: Eric Biggers
Date: Thu Sep 10 2026 - 11:12:16 EST
On Thu, Sep 10, 2026 at 07:23:01AM -0700, Borislav Petkov wrote:
> On Thu, Sep 10, 2026 at 10:38:01AM +0200, Peter Zijlstra wrote:
> > Boris, can you have a look? For now I'm reverting this patch locally.
>
> Yeah, I'll zap it from the x86/fpu lineup and then we can see how to fix up
> everything later.
How about just applying patches 1-5 and 7-8, and deferring the actual
removal of cpu_has_xfeatures() to the next cycle?
> I'm not entirely sure how to go about fixing this. Some seem trivial
> enough, but others, like XFEATURE_MASK_OPMASK I don't readily see a
> replacement for.
XFEATURE_MASK_OPMASK is just part of the AVX-512 state and it will be
implied by X86_FEATURE_AVX512F.
- Eric