powerpc: implementation for arch_set_user_pkey_access()
authorRam Pai <linuxram@us.ibm.com>
Fri, 19 Jan 2018 01:50:29 +0000 (17:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 11:58:59 +0000 (22:58 +1100)
commit2ddc53f3a7516b3e2c4ab9c36854a227641a4fde
treed9902039301c44908f92ac7a23242cbdb9261ca5
parent0685f217afe8279a754490954b8dcc02cb763a5d
powerpc: implementation for arch_set_user_pkey_access()

This patch provides the detailed implementation for
a user to allocate a key and enable it in the hardware.

It provides the plumbing, but it cannot be used till
the system call is implemented. The next patch  will
do so.

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
arch/powerpc/mm/pkeys.c