]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV P9: implement kvmppc_xive_pull_vcpu in C
authorNicholas Piggin <npiggin@gmail.com>
Fri, 28 May 2021 09:07:28 +0000 (19:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Jun 2021 12:12:12 +0000 (22:12 +1000)
commitcb1fba340822bb4113c38ee546d478ab938c4432
tree53d93fe53359a1b362e5e479c85a0c44c35f0046
parentf76a62f2e08d04778dcd3c2c9c773ac5faef58d0
KVM: PPC: Book3S HV P9: implement kvmppc_xive_pull_vcpu in C

This is more symmetric with kvmppc_xive_push_vcpu, and has the advantage
that it runs with the MMU on.

The extra test added to the asm will go away with a future change.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210528090752.3542186-9-npiggin@gmail.com
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S
arch/powerpc/kvm/book3s_xive.c