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

Sebastian Andrzej Siewior
2019-04-08T20:03:38Z

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@intel.com>
>
> for the series.

Thank you.

Sebastian