summaryrefslogtreecommitdiff
path: root/arch/powerpc/mm/hash_utils_64.c
diff options
context:
space:
mode:
authorRam Pai <linuxram@us.ibm.com>2018-01-19 04:50:36 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-01-20 14:59:03 +0300
commita6590ca55f1f49912e17e4811ccae9a51bda8859 (patch)
treebf406906eb4c82c0c7a7e25607e865a0206d0251 /arch/powerpc/mm/hash_utils_64.c
parenteb95d016ce3d3404e061c7c85d4362094dc34b3f (diff)
downloadlinux-a6590ca55f1f49912e17e4811ccae9a51bda8859.tar.xz
powerpc: Program HPTE key protection bits
Map the PTE protection key bits to the HPTE key protection bits, while creating HPTE entries. Acked-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Ram Pai <linuxram@us.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/hash_utils_64.c')
-rw-r--r--arch/powerpc/mm/hash_utils_64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c
index 8cd31ea9b243..a78e24cf93ff 100644
--- a/arch/powerpc/mm/hash_utils_64.c
+++ b/arch/powerpc/mm/hash_utils_64.c
@@ -233,6 +233,7 @@ unsigned long htab_convert_pte_flags(unsigned long pteflags)
*/
rflags |= HPTE_R_M;
+ rflags |= pte_to_hpte_pkey_bits(pteflags);
return rflags;
}