KVM: PPC: Book3S HV P9: Fix irq disabling in tick accounting
authorNicholas Piggin <npiggin@gmail.com>
Thu, 8 Sep 2022 13:25:42 +0000 (23:25 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Sep 2022 15:07:19 +0000 (01:07 +1000)
commitc953f7500b65f2b157d1eb468ca8b86328834cce
tree77a8354d764041d470ca1bdc5a1ccb487b3f7f0d
parentbc91c04bfff7cdf676011b97bb21b2861d7b21c9
KVM: PPC: Book3S HV P9: Fix irq disabling in tick accounting

kvmhv_run_single_vcpu() disables PMIs as well as Linux irqs,
however the tick time accounting code enables and disables irqs and
not PMIs within this region. By chance this might not actually cause
a bug, but it is clearly an incorrect use of the APIs.

Fixes: 2251fbe76395e ("KVM: PPC: Book3S HV P9: Improve mtmsrd scheduling by delaying MSR[EE] disable")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220908132545.4085849-2-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c