Re: [PATCH 05/26] x86, pkey: add PKRU xsave fields and data structure(s)

2015-09-22 Thread Dave Hansen
On 09/22/2015 12:53 PM, Thomas Gleixner wrote: > On Wed, 16 Sep 2015, Dave Hansen wrote: >> --- a/arch/x86/kernel/fpu/xstate.c~pkeys-03-xsave2015-09-16 >> 10:48:13.340060126 -0700 >> +++ b/arch/x86/kernel/fpu/xstate.c 2015-09-16 10:48:13.344060307 -0700 >> @@ -23,6 +23,8 @@ static const char

Re: [PATCH 05/26] x86, pkey: add PKRU xsave fields and data structure(s)

2015-09-22 Thread Thomas Gleixner
On Wed, 16 Sep 2015, Dave Hansen wrote: > --- a/arch/x86/kernel/fpu/xstate.c~pkeys-03-xsave 2015-09-16 > 10:48:13.340060126 -0700 > +++ b/arch/x86/kernel/fpu/xstate.c2015-09-16 10:48:13.344060307 -0700 > @@ -23,6 +23,8 @@ static const char *xfeature_names[] = > "AVX-512 opmask"

[PATCH 05/26] x86, pkey: add PKRU xsave fields and data structure(s)

2015-09-16 Thread Dave Hansen
The protection keys register (PKRU) is saved and restored using xsave. Define the data structure that we will use to access it inside the xsave buffer. Note that we also have to widen the printk of the xsave feature masks since this is feature 0x200 and we only did two characters before. ---