KVM: PPC: Book3S HV: Ratelimit machine check messages coming from guests
authorNicholas Piggin <npiggin@gmail.com>
Sat, 28 Nov 2020 07:07:24 +0000 (17:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:23 +0000 (01:01 +1100)
commit1d15ffdfc94127d75e04a88344ee1ce8c79f05fd
treec1adecfeec8a864532decd171e4dba15112c18df
parent067c9f9c98c8804b07751994c51d8557e440821e
KVM: PPC: Book3S HV: Ratelimit machine check messages coming from guests

A number of machine check exceptions are triggerable by the guest.
Ratelimit these to avoid a guest flooding the host console and logs.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Use dedicated ratelimit state, not printk_ratelimit()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201128070728.825934-5-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c