Re: [PATCH v3 09/21] x86/fpu/xstate: Introduce wrapper functions to organize xstate buffer access
From: Borislav Petkov
Date: Mon Feb 08 2021 - 07:39:20 EST
On Wed, Dec 23, 2020 at 07:57:05AM -0800, Chang S. Bae wrote:
> The struct fpu includes two (possible) xstate buffers -- fpu->state and
> fpu->state_ptr. Instead of open code for accessing one of them, provide a
> wrapper that covers both cases.
Right, if you do the thing I suggested - have a single ->xstate pointer
- then that below is not needed.
--
Regards/Gruss,
Boris.
SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg