Re: [PATCH v4 09/10] x86/xsaves: Fix xstate_offsets, xstate_sizes for legacy components

2016-04-29 Thread Yu-cheng Yu
On Fri, Apr 29, 2016 at 03:13:33PM -0700, Dave Hansen wrote: > On 04/29/2016 03:07 PM, Yu-cheng Yu wrote: > > On Fri, Apr 29, 2016 at 01:28:31PM -0700, Dave Hansen wrote: > >> On 03/04/2016 10:12 AM, Yu-cheng Yu wrote: > >>> The arrays xstate_offsets[] and xstate_sizes[] record XSAVE area > >>> of

Re: [PATCH v4 09/10] x86/xsaves: Fix xstate_offsets, xstate_sizes for legacy components

2016-04-29 Thread Dave Hansen
On 04/29/2016 03:07 PM, Yu-cheng Yu wrote: > On Fri, Apr 29, 2016 at 01:28:31PM -0700, Dave Hansen wrote: >> On 03/04/2016 10:12 AM, Yu-cheng Yu wrote: >>> The arrays xstate_offsets[] and xstate_sizes[] record XSAVE area >>> offsets and sizes. Values for legacy components i387 and XMMs were >>> no

Re: [PATCH v4 09/10] x86/xsaves: Fix xstate_offsets, xstate_sizes for legacy components

2016-04-29 Thread Yu-cheng Yu
On Fri, Apr 29, 2016 at 01:28:31PM -0700, Dave Hansen wrote: > On 03/04/2016 10:12 AM, Yu-cheng Yu wrote: > > The arrays xstate_offsets[] and xstate_sizes[] record XSAVE area > > offsets and sizes. Values for legacy components i387 and XMMs were > > not initialized. Fix it. > > Is this just a com

Re: [PATCH v4 09/10] x86/xsaves: Fix xstate_offsets, xstate_sizes for legacy components

2016-04-29 Thread Dave Hansen
On 03/04/2016 10:12 AM, Yu-cheng Yu wrote: > The arrays xstate_offsets[] and xstate_sizes[] record XSAVE area > offsets and sizes. Values for legacy components i387 and XMMs were > not initialized. Fix it. Is this just a completeness thing or does it actually break something? In any case: Revie

[PATCH v4 09/10] x86/xsaves: Fix xstate_offsets, xstate_sizes for legacy components

2016-03-04 Thread Yu-cheng Yu
The arrays xstate_offsets[] and xstate_sizes[] record XSAVE area offsets and sizes. Values for legacy components i387 and XMMs were not initialized. Fix it. Signed-off-by: Yu-cheng Yu --- arch/x86/kernel/fpu/xstate.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/x86/kernel/f