KVM: PPC: Book3S HV: Don't attempt to recover machine checks for FWNMI enabled guests
authorNicholas Piggin <npiggin@gmail.com>
Sat, 28 Nov 2020 07:07:23 +0000 (17:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:23 +0000 (01:01 +1100)
commit067c9f9c98c8804b07751994c51d8557e440821e
tree2c3b15d344a2421b618eadb2689eb01c02b5fce3
parent0ce2382657f39ced2adbb927355360c3aaeb05f8
KVM: PPC: Book3S HV: Don't attempt to recover machine checks for FWNMI enabled guests

Guests that can deal with machine checks would actually prefer the
hypervisor not to try recover for them. For example if SLB multi-hits
are recovered by the hypervisor by clearing the SLB then the guest
will not be able to log the contents and debug its programming error.

If guests don't register for FWNMI, they may not be so capable and so
the hypervisor will continue to recover for those.

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