Re: [PATCH] KVM: Only display message about bios support disabled once

From: Sean Christopherson
Date: Fri May 27 2022 - 12:08:23 EST


On Thu, May 26, 2022, Mario Limonciello wrote:
> On an OEM laptop I see the following message 10 times in my dmesg:
> "kvm: support for 'kvm_amd' disabled by bios"
>
> This might be useful the first time, but there really isn't a point
> to showing the error 9 more times. The BIOS still has it disabled.
> Change the message to only display one time.

NAK, this has been discussed multiple times in the past[1][2], there are edge cases
where logging multiple messages is desirable. Even using a ratelimited printk is
essentially a workaround for a systemd bug[3], which I'm guessing is the cuplrit here.

[1] https://lore.kernel.org/all/20190826182320.9089-1-tony.luck@xxxxxxxxx
[2] https://lore.kernel.org/all/20200214143035.607115-1-e.velu@xxxxxxxxxx
[3] https://github.com/systemd/systemd/issues/14906