linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] KVM: Only display message about bios support disabled once
@ 2022-05-26 21:30 Mario Limonciello
  2022-05-27 16:08 ` Sean Christopherson
  0 siblings, 1 reply; 3+ messages in thread
From: Mario Limonciello @ 2022-05-26 21:30 UTC (permalink / raw)
  To: mario.limonciello, Paolo Bonzini, Sean Christopherson,
	Vitaly Kuznetsov, Wanpeng Li, Jim Mattson, Joerg Roedel,
	Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen,
	maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT),
	H. Peter Anvin,
	open list:KERNEL VIRTUAL MACHINE FOR X86 (KVM/x86),
	open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)

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.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
 arch/x86/kvm/x86.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 4790f0d7d40b..80a8ea13f09a 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -8887,7 +8887,7 @@ int kvm_arch_init(void *opaque)
 		goto out;
 	}
 	if (ops->disabled_by_bios()) {
-		pr_err_ratelimited("kvm: support for '%s' disabled by bios\n",
+		pr_err_once("kvm: support for '%s' disabled by bios\n",
 				   ops->runtime_ops->name);
 		r = -EOPNOTSUPP;
 		goto out;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-01  1:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-26 21:30 [PATCH] KVM: Only display message about bios support disabled once Mario Limonciello
2022-05-27 16:08 ` Sean Christopherson
2022-06-01  1:57   ` Mario Limonciello

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).