powerpc: helper to validate key-access permissions of a pte
authorRam Pai <linuxram@us.ibm.com>
Fri, 19 Jan 2018 01:50:37 +0000 (17:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 11:59:03 +0000 (22:59 +1100)
commitf2407ef3ba225665ee24965f69bc84435fb590cf
tree5883038293a5e98317f3cd8bf161f62493cd6926
parenta6590ca55f1f49912e17e4811ccae9a51bda8859
powerpc: helper to validate key-access permissions of a pte

helper function that checks if the read/write/execute is allowed
on the pte.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/pgtable.h
arch/powerpc/include/asm/pkeys.h
arch/powerpc/mm/pkeys.c