]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV P9: Inject pending xive interrupts at guest entry
authorNicholas Piggin <npiggin@gmail.com>
Thu, 3 Mar 2022 05:33:11 +0000 (15:33 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 May 2022 11:34:33 +0000 (21:34 +1000)
commit42d62267c173c1d2c423b1c90f852badf9eb8933
tree9db25b875ecedef35160a454242076de2c1d04bc
parentd1b504f960c20f283d49cd5c8a72b8c5054d917a
KVM: PPC: Book3S HV P9: Inject pending xive interrupts at guest entry

If there is a pending xive interrupt, inject it at guest entry (if
MSR[EE] is enabled) rather than take another interrupt when the guest
is entered. If xive is enabled then LPCR[LPES] is set so this behaviour
should be expected.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220303053315.1056880-3-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c