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

Re: [PATCH v3 1/6] argo: lower level of noisy connection-refused log


  • To: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, <dmukhin@xxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Mon, 8 Jun 2026 19:16:01 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=apertussolutions.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=f/LcxsuNzH4hTbvnUOO6jZWxYx9imrDqFjuTPoMu0oo=; b=GgF8vh/1FFVhxxXq5hzN00/piogJk1MifkN6YDNdOUrT1veC9wwtMkioDe+r9k5X/5MTZ+P+HCGHkvTad5oHIs1Y4p2GmgMKOvjLJfEVNgV/Ne2dR78E2VRjaszFY2t0wLBbfTPaWNIlFQX8RNORyP9HQVt2SjshNi8TuLIkoC73kCmv5DzRa2LukAYU+r0XaROBc1ghcO4yzMM0D0w1C6WInnZLrcOkbaFS/DIIRAkutr/HOjhF32GjnP77hw0tCdg9gufAcGbOi1JRRupjV3rlYYOOd21SiObM0Nxq6VZt0+9SNoQ1jGEP1DoGWvItU0iYZAwmm6ZRF1T5oueN6g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=utCD8fr4Cum6qwed9M31uV1xt8NXQH/fel0b8nnkjmr7N+cPPVqp2xBv7WiQ7KUDGoqiup1l3QlPebNT1JTZgsDx/XWjOfx1WJTEIr2zR6DHkHdWuyRgdxeaKaCX78U5F1Y89dsNmg8DLNvT70TeYlZz8aesr0fRM7amVneMDbtXA2hosl7yTLh7fFlCRd7nVbz5EyvJ17MFU85jB1fohTGo0JhBwKmaNlrzWQxC0l4mscxL0L3wufjYG/F2VyQksicgQ+KSwLdaW3PVkX1BA47sXifqIa8hfkrvHmT179Ck1BFpGqsI0YTwqH/lfn6O2T5SSZUR9bzy3CtR8WhtZw==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Cc: <andrew.cooper3@xxxxxxxxxx>, <anthony.perard@xxxxxxxxxx>, <jbeulich@xxxxxxxx>, <julien@xxxxxxx>, <michal.orzel@xxxxxxx>, <roger.pau@xxxxxxxxxx>, <sstabellini@xxxxxxxxxx>, <christopher.w.clark@xxxxxxxxx>, Mykola Kvach <mykola_kvach@xxxxxxxx>
  • Delivery-date: Mon, 08 Jun 2026 23:27:58 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2026-06-08 15:54, Daniel P. Smith wrote:


On 5/26/26 5:58 PM, dmukhin@xxxxxxxx wrote:
From: Denis Mukhin <dmukhin@xxxxxxxx>

Switch the log line to argo_dprintk() so it is enabled only in debug
environments, as it can spam the logs when a dom0 service using the Argo
hypercall tries to communicate with a domain that is still starting up.

Note that this also lowers the log level to debug when the argo_dprintk()
facility is enabled.

Signed-off-by: Denis Mukhin <dmukhin@xxxxxxxx>
Reviewed-by: Mykola Kvach <mykola_kvach@xxxxxxxx>
---
Changes since v2:
- updated commit message
---
  xen/common/argo.c | 7 +++----
  1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/xen/common/argo.c b/xen/common/argo.c
index 28626e00a8cb..98a3db7fd070 100644
--- a/xen/common/argo.c
+++ b/xen/common/argo.c
@@ -2034,10 +2034,9 @@ sendv(struct domain *src_d, xen_argo_addr_t *src_addr,
                                          src_id.domain_id);
      if ( !ring_info )
      {
-        gprintk(XENLOG_ERR,
-                "argo: vm%u connection refused, src (vm%u:%x) dst (vm%u:%x)\n", -                current->domain->domain_id, src_id.domain_id, src_id.aport,
-                dst_addr->domain_id, dst_addr->aport);
+        argo_dprintk("vm%u connection refused, src (vm%u:%x) dst (vm%u:%x)\n", +                     current->domain->domain_id, src_id.domain_id, src_id.aport,
+                     dst_addr->domain_id, dst_addr->aport);
          ret = -ECONNREFUSED;
      }

My apologies but this is not the wisest approach, hitting this is a real error and shouldn't be getting silenced.

-ECONNREFUSED is still returned, and that is the important part, I think?

While gprintk(), it is trivially guest triggerable, so I think it wants to be a debug message like this change made it. As a comparison, errors in event_channel.c are gdprintk().

If you are seeing a lot of
these messages, I would suggest asking yourself why. Without further context on how you are using it, one suggesting is perhaps your connection model might need to be revisited.

There isn't a way to know if a port is available without polling?

Regards,
Jason



 


Rackspace

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