powerpc: cleanup AMR, IAMR when a key is allocated or freed
authorRam Pai <linuxram@us.ibm.com>
Fri, 19 Jan 2018 01:50:28 +0000 (17:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 11:58:59 +0000 (22:58 +1100)
commit0685f217afe8279a754490954b8dcc02cb763a5d
treecbc35c25b030810556cab663e3800679df98b53d
parent4d70b698f9575cea7fa52e1d8f5020beca869907
powerpc: cleanup AMR, IAMR when a key is allocated or freed

Cleanup the bits corresponding to a key in the AMR, and IAMR
register, when the key is newly allocated/activated or is freed.
We dont want some residual bits cause the hardware enforce
unintended behavior when the key is activated or freed.

Reviewed-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pkeys.h