RE: [RFC PATCH 07/22] x86/fpu/xstate: Introduce helpers to manage an xstate area dynamically

2020-10-13 Thread Brown, Len
> > From: Andy Lutomirski > > > + /* > > +* The caller may be under interrupt disabled condition. Ensure > > interrupt > > +* allowance before the memory allocation, which may involve with > > page faults. > > +*/ > > + local_irq_enable(); > ... you can't

Re: [RFC PATCH 07/22] x86/fpu/xstate: Introduce helpers to manage an xstate area dynamically

2020-10-01 Thread Andy Lutomirski
On Thu, Oct 1, 2020 at 1:42 PM Chang S. Bae wrote: > > task->fpu has a buffer to keep the extended register states, but it is not > expandable at runtime. Introduce runtime methods and new fpu struct fields > to support the expansion. > > fpu->state_mask indicates the saved states per task and

[RFC PATCH 07/22] x86/fpu/xstate: Introduce helpers to manage an xstate area dynamically

2020-10-01 Thread Chang S. Bae
task->fpu has a buffer to keep the extended register states, but it is not expandable at runtime. Introduce runtime methods and new fpu struct fields to support the expansion. fpu->state_mask indicates the saved states per task and fpu->state_ptr points the dynamically allocated area.