KVM: PPC: Book3S HV P9: Fixes for TM softpatch interrupt NIP
authorNicholas Piggin <npiggin@gmail.com>
Wed, 11 Aug 2021 16:00:37 +0000 (02:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Aug 2021 06:37:17 +0000 (16:37 +1000)
commit4782e0cd0d184d727ad3b0cfe20d1d44d9f98239
tree6f630ed0f4e178a1bf652bb3e7c93ab328ca9995
parentdaac40e8d7a63ab8608132a7cfce411986feac32
KVM: PPC: Book3S HV P9: Fixes for TM softpatch interrupt NIP

The softpatch interrupt sets HSRR0 to the faulting instruction +4, so
it should subtract 4 for the faulting instruction address in the case
it is a TM softpatch interrupt (the instruction was not executed) and
it was not emulated.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210811160134.904987-4-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv_tm.c