All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/kvm: Downgrade host poll messages to pr_debug_once()
@ 2025-07-22  7:49 lirongqing
  2025-07-22 17:27 ` Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: lirongqing @ 2025-07-22  7:49 UTC (permalink / raw)
  To: pbonzini, vkuznets, tglx, mingo, bp, dave.hansen, x86, hpa, kvm,
	linux-kernel
  Cc: Li RongQing

From: Li RongQing <lirongqing@baidu.com>

The current host-side polling messages are misleading, as they will be
printed when the hypervisor intentionally disables polling (by providing
MWAIT to the guest) rather than due to version incompatibility. so
Downgrade to pr_debug_once() to prevent spurious log messages.

Signed-off-by: Li RongQing <lirongqing@baidu.com>
---
 arch/x86/kernel/kvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c
index 9cda79f..c5f96ee 100644
--- a/arch/x86/kernel/kvm.c
+++ b/arch/x86/kernel/kvm.c
@@ -1136,8 +1136,8 @@ static void kvm_enable_host_haltpoll(void *i)
 void arch_haltpoll_enable(unsigned int cpu)
 {
 	if (!kvm_para_has_feature(KVM_FEATURE_POLL_CONTROL)) {
-		pr_err_once("host does not support poll control\n");
-		pr_err_once("host upgrade recommended\n");
+		pr_debug_once("host does not support poll control\n");
+		pr_debug_once("host upgrade recommended\n");
 		return;
 	}
 
-- 
2.9.4


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

end of thread, other threads:[~2025-07-22 17:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-22  7:49 [PATCH] x86/kvm: Downgrade host poll messages to pr_debug_once() lirongqing
2025-07-22 17:27 ` Sean Christopherson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.