]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Move interrupt delivery on guest entry to C code
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 8 Oct 2018 05:30:50 +0000 (16:30 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Oct 2018 05:04:27 +0000 (16:04 +1100)
commit55cf528b13bbfa58f588a1bc40d776ecf5e3b95d
tree6e6789150a42f8de7f45c813d92896138cabee2e
parent35eb9e703f9ee2d32d068a5c474e450b26a4389a
KVM: PPC: Book3S HV: Move interrupt delivery on guest entry to C code

This is based on a patch by Suraj Jitindar Singh.

This moves the code in book3s_hv_rmhandlers.S that generates an
external, decrementer or privileged doorbell interrupt just before
entering the guest to C code in book3s_hv_builtin.c.  This is to
make future maintenance and modification easier.  The algorithm
expressed in the C code is almost identical to the previous
algorithm.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_builtin.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S