Re: [PATCH v3 11/21] x86/fpu/xstate: Update xstate buffer address finder to support dynamic xstate

2021-02-19 Thread Bae, Chang Seok
On Feb 19, 2021, at 07:00, Borislav Petkov wrote: > On Wed, Dec 23, 2020 at 07:57:07AM -0800, Chang S. Bae wrote: >> >> >> +/* >> + * Available once those arrays for the offset, size, and alignment info are >> set up, >> + * by setup_xstate_features(). >> + */ > > That's kinda clear, right? Ap

Re: [PATCH v3 11/21] x86/fpu/xstate: Update xstate buffer address finder to support dynamic xstate

2021-02-19 Thread Borislav Petkov
On Wed, Dec 23, 2020 at 07:57:07AM -0800, Chang S. Bae wrote: > __raw_xsave_addr() returns the requested component's pointer in an xstate > buffer, by simply looking up the offset table. The offset used to be fixed, > but, with dynamic user states, it becomes variable. > > get_xstate_size() has a

[PATCH v3 11/21] x86/fpu/xstate: Update xstate buffer address finder to support dynamic xstate

2020-12-23 Thread Chang S. Bae
__raw_xsave_addr() returns the requested component's pointer in an xstate buffer, by simply looking up the offset table. The offset used to be fixed, but, with dynamic user states, it becomes variable. get_xstate_size() has a routine to find an offset at runtime. Refactor to use it for the address