Re: [PATCH 14/31] x86, pkeys: add functions to fetch PKRU

From: Thomas Gleixner
Date: Fri Jan 08 2016 - 14:33:49 EST


On Wed, 6 Jan 2016, Dave Hansen wrote:

>
> From: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
>
> This adds the raw instruction to access PKRU as well as some
> accessor functions that correctly handle when the CPU does not
> support the instruction. We don't use it here, but we will use
> read_pkru() in the next patch.
>
> Signed-off-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>

Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>