Re: [PATCH] powerpc/kvm: Save and restore AMR instead of zeroing

2019-02-22 Thread Michael Ellerman
Sasha Levin writes: > Hi, > > [This is an automated email] > > This commit has been processed because it contains a "Fixes:" tag, > fixing commit: cf43d3b26452 powerpc: Enable pkey subsystem. > > The bot has tested the following trees: v4.20.11, v4.19.24. > > v4.19.24: Failed to apply! Possible de

Re: [PATCH] powerpc/kvm: Save and restore AMR instead of zeroing

2019-02-22 Thread Sasha Levin
Hi, [This is an automated email] This commit has been processed because it contains a "Fixes:" tag, fixing commit: cf43d3b26452 powerpc: Enable pkey subsystem. The bot has tested the following trees: v4.20.11, v4.19.24. v4.19.24: Failed to apply! Possible dependencies: 41f4e631daf8 ("KVM: P

Re: [PATCH] powerpc/kvm: Save and restore AMR instead of zeroing

2019-02-20 Thread Russell Currey
On Thu, 2019-02-21 at 10:55 +1100, Paul Mackerras wrote: > On Wed, Feb 20, 2019 at 03:59:58PM +1100, Russell Currey wrote: > > Using the hash MMU on P7+, the AMR is used for pkeys. It's > > important > > This needs a bit of rewording. The "Using" ... "used" construct is a > bit confusing on the

Re: [PATCH] powerpc/kvm: Save and restore AMR instead of zeroing

2019-02-20 Thread Paul Mackerras
On Wed, Feb 20, 2019 at 03:59:58PM +1100, Russell Currey wrote: > Using the hash MMU on P7+, the AMR is used for pkeys. It's important This needs a bit of rewording. The "Using" ... "used" construct is a bit confusing on the first read. Also, there was a processor called P7+, but I think you're

[PATCH] powerpc/kvm: Save and restore AMR instead of zeroing

2019-02-19 Thread Russell Currey
Using the hash MMU on P7+, the AMR is used for pkeys. It's important that the host and guest never end up with each other's AMR value, since this could disrupt operations and break things. The AMR gets correctly restored on context switch, however before this happens (i.e. in a program like qemu)