Re: [PATCH v2] powerpc/book3s64/pkey: Disable pkey on POWER6 and before

2020-07-27 Thread Michael Ellerman
On Sun, 26 Jul 2020 18:55:17 +0530, Aneesh Kumar K.V wrote: > POWER6 only support AMR update via privileged mode(MSR[PR] = 0, SPRN_AMR=29) > The PR=1 alias for that SPR (SPRN_AMR=13) was only supported > from POWER7. Since we don't allow userspace modifying of AMR value > we should disable pkey

[PATCH v2] powerpc/book3s64/pkey: Disable pkey on POWER6 and before

2020-07-26 Thread Aneesh Kumar K.V
POWER6 only support AMR update via privileged mode(MSR[PR] = 0, SPRN_AMR=29) The PR=1 alias for that SPR (SPRN_AMR=13) was only supported from POWER7. Since we don't allow userspace modifying of AMR value we should disable pkey support on P6 and before. The hypervisor will still report pkey