]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Simplify real-mode interrupt handling
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 8 Oct 2018 05:30:52 +0000 (16:30 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Oct 2018 05:04:27 +0000 (16:04 +1100)
commitaba03f9e625b6191a721f6fc1b469773472f76b0
treec19f2c34e20f0faf7918f98dc90d2cdb528d168d
parent7b15741768087d19ea1a501e09d2c2e9637115ce
KVM: PPC: Book3S HV: Simplify real-mode interrupt handling

This streamlines the first part of the code that handles a hypervisor
interrupt that occurred in the guest.  With this, all of the real-mode
handling that occurs is done before the "guest_exit_cont" label; once
we get to that label we are committed to exiting to host virtual mode.
Thus the machine check and HMI real-mode handling is moved before that
label.

Also, the code to handle external interrupts is moved out of line, as
is the code that calls kvmppc_realmode_hmi_handler().

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