powerpc/mm/radix: Setup AMOR in HV mode to allow key 0
authorBalbir Singh <bsingharora@gmail.com>
Tue, 15 Nov 2016 06:56:14 +0000 (17:56 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 Nov 2016 04:01:31 +0000 (15:01 +1100)
commitee97b6b99f42285d29d439f2e5376e03b2760e09
tree6641b7b9cadada6f94d1989e8f8ac1f9cd23e5dd
parent378f96d3cd442d5cb8e2692d8767a4c036070594
powerpc/mm/radix: Setup AMOR in HV mode to allow key 0

Setup AMOR (Authority Mask Override Register) in HV mode so that the
host and guest kernel can in turn setup IAMR.

This allows us to enable key 0 in a following patch.

Reported-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable-radix.c