]> 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)
commit1d8f009bcfa90a27b5c48f8ed675be0309bfbcdf
tree9db25b875ecedef35160a454242076de2c1d04bc
parent3f3d7a27529785f516236f5eddaa99ca6f5bf65e
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