Re: [PATCH 19/27] x86/fpu: Update xstate's PKRU value on write_pkru()

From: Sebastian Andrzej Siewior
Date: Mon Apr 08 2019 - 16:03:38 EST


On 2019-04-08 11:14:28 [-0700], Dave Hansen wrote:
> On 4/3/19 9:41 AM, Sebastian Andrzej Siewior wrote:
> > During the context switch the xstate is loaded which also includes the
> > PKRU value.
> > If xstate is restored on return to userland it is required that the
> > PKRU value in xstate is the same as the one in the CPU.
>
> All of the protection keys bits in here look ok to me. Thanks for the
> sustained work to get all those into shape. I know it's a special
> snowflake.

> Although I paid much closer attention to the PK bits, feel free to add:
>
> Reviewed-by: Dave Hansen <dave.hansen@xxxxxxxxx>
>
> for the series.

Thank you.

Sebastian