KVM: PPC: Book3S 64: move KVM interrupt entry to a common entry point
authorNicholas Piggin <npiggin@gmail.com>
Fri, 28 May 2021 09:07:21 +0000 (19:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Jun 2021 12:12:01 +0000 (22:12 +1000)
commitf36011569b90b3973f07cea00c5872c4dc0c707f
tree91a9784a9f679ca50f8c51482b67e6c1549d975c
parent6ba53317d497dec029bfb040b1daf38328fa00ab
KVM: PPC: Book3S 64: move KVM interrupt entry to a common entry point

Rather than bifurcate the call depending on whether or not HV is
possible, and have the HV entry test for PR, just make a single
common point which does the demultiplexing. This makes it simpler
to add another type of exit handler.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Acked-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210528090752.3542186-2-npiggin@gmail.com
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kvm/Makefile
arch/powerpc/kvm/book3s_64_entry.S [new file with mode: 0644]
arch/powerpc/kvm/book3s_hv_rmhandlers.S