]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV P9: implement hash host / hash guest support
authorNicholas Piggin <npiggin@gmail.com>
Fri, 28 May 2021 09:07:51 +0000 (19:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Jun 2021 12:12:15 +0000 (22:12 +1000)
commit69c8431a80982b8c95d4c158b3df7b9801a26d4a
tree816567a2bd821fe8818d03e818975af27583a184
parente8a2238fde3fc8317a242b42a92e57691e944e41
KVM: PPC: Book3S HV P9: implement hash host / hash guest support

Implement support for hash guests under hash host. This has to save and
restore the host SLB, and ensure that the MMU is off while switching
into the guest SLB.

POWER9 and later CPUs now always go via the P9 path. The "fast" guest
mode is now renamed to the P9 mode, which is consistent with its
functionality and the rest of the naming.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210528090752.3542186-32-npiggin@gmail.com
arch/powerpc/include/asm/kvm_asm.h
arch/powerpc/kvm/book3s_64_entry.S
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_p9_entry.c