]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3024a7bb17f6f4335cba0e50c9408a93a4870199
treed9902039301c44908f92ac7a23242cbdb9261ca5
parent71b6ce5ce49d53f85b5070271bc2f6d74142dd65
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