[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] x86/nested-vmx: Only log L0-handled PIO in debug builds


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: chunjie.zhu@xxxxxxxxxx
  • Date: Mon, 30 Nov 2026 16:57:49 +0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=q4ZXY9z7IDjzF2iXIC8tiEYX+49xXNBRDasSBqmhX1s=; b=tptNgsMgwGnXKEaU7xdIdYxNBKnrptiqnjowuYUhgBj+eHkCoWg92zai1EBGCPD6J7PG5SE/59QA1c4kLSIvdayl8SaZskj0VTxt/UT07dOm7fejv/ixXYYyOQWCsphD7BEg+G11A2UDQGTsCmOPTbCacY9OkgPovrHUOHbzogSLO8SeGRyLPBuGyHamhPwrQMh1leBlCVV+0FuLmGQ3TVBHbXgtfs5aHMLFoG3wwzfbYv16IjtmMholK5Ij3XlmCn8DScrRWPeWwiKYzXahb3ksZxDcgp1p/Wxhk0xisd9dlihvod/fmudCR4JnMii+hJ5jHdVYieOc8WFZx31QEw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MbVVfGRktYVKVvoAyr3Wu6Ht+BR+qmYG0NX9uZI46Mk4pj9kLfmKgvxMKGe8urInIOO9gyBbWhgkjrTjO0Zer3SScIq8SysIVUvdYHuxPkOKMslZoPOltFG2zxpmVq+CW56t7hRmFycXCQUeQU4U5Cqg2Jtcsqm8QangkFcIfPXOXiDSixZbROJWw2h6YGh+dAY6xUixDY8djD48Wp378E9qW5QzCmqH41T2NsihIkgFJ6C6oXbiIJALE7TcpyVQvuxWRJCs4BEQVdjW+L0yGEC0WHjAMCNB/9gZ7ip5qA+2ochdom5qF8hn7bIx52HeidMNOpsUj8qvuQFw1dIAFQ==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-Id:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: jbeulich@xxxxxxxx, andrew.cooper3@xxxxxxxxxx, roger@xxxxxxxxxxxxxx, teddy.astie@xxxxxxxxxx, Chunjie Zhu <chunjie.zhu@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Mon, 30 Nov 2026 08:58:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

From: Chunjie Zhu <chunjie.zhu@xxxxxxxxxx>

nvmx_n2_vmexit_handler() prints "L0 PIO <port>" whenever an L2 port I/O
exit is not intercepted by L1's I/O bitmap and is therefore handled by
L0.  This is an expected path, but when running Hyper-V on Xen it fires
so often during boot that it floods the console.

Use dprintk() so the message is only emitted in debug builds.

No functional change in release builds.

Signed-off-by: Chunjie Zhu <chunjie.zhu@xxxxxxxxxx>
---
 xen/arch/x86/hvm/vmx/vvmx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/hvm/vmx/vvmx.c b/xen/arch/x86/hvm/vmx/vvmx.c
index 74ab9bfd0986..38f36f4acefe 100644
--- a/xen/arch/x86/hvm/vmx/vvmx.c
+++ b/xen/arch/x86/hvm/vmx/vvmx.c
@@ -2770,7 +2770,7 @@ int nvmx_n2_vmexit_handler(struct cpu_user_regs *regs,
                     nvcpu->nv_vmexit_pending = 1;
             } while ( !nvcpu->nv_vmexit_pending );
             if ( !nvcpu->nv_vmexit_pending )
-                printk(XENLOG_G_WARNING "L0 PIO %04x\n", port);
+                dprintk(XENLOG_WARNING, "L0 PIO %04x\n", port);
         }
         else if ( ctrl & CPU_BASED_UNCOND_IO_EXITING )
             nvcpu->nv_vmexit_pending = 1;
-- 
2.34.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.