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>
This commit is contained in:

committed by
Michael Ellerman

parent
eb95d016ce
commit
a6590ca55f
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user