]> 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)
commit7ffaf599cdf00ef67ee3bcc97d1f95a8ad11738b
tree6e6789150a42f8de7f45c813d92896138cabee2e
parentf2c78505388bf036aa5258eb256de6573665d2e0
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