[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>
  • From: dmukhin@xxxxxxxx
  • Date: Mon, 8 Jun 2026 18:05:45 -0700
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 148.163.138.245) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=ford.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ford.com; dkim=pass (signature was verified) header.d=saarlouis.ford.com; dkim=pass (signature was verified) header.d=ford.com; 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=kUs4fdNNIJG4R2XY9tCpvSCNBlJMPMQTQ3sA7P5UEII=; b=IsWlCV0FsoISth9aGH5FZs9l4B7spTGWrP/o/vmAKps4ltLqj+w1fDuf4eBYDB3zql0Di51nfQhxelt5Txb8HI9fkeRiicz3xDmJUkUOtYloAFPbPYHBxdDs2pHnBLd4lQo2qIi179qSuF+uiCjXeWb+zK/bd8QNcbyKCyERrE2MqA24/aB2y4xJjeVSUQmY+cgbm1FR7hD21xpEESdN6Rqbp8usk3pNE+ybEg3IQyaoB6bcurJSfl4/EDJv9M9NPh8PDGuXw9Gb9Ztuoy9gBBCcjDiGqrCWrzmYWjmPDAL9i91lC1L9yW8IdEUrxK3kO9myjaDt5FSyOMAS/BvT5Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=S6CSEiEXzlYO48yp9BKXdhQ18DR/3KzUzJkfHVGnvKOhyJIr6thmokICpbkoXugH4Xl2p+J55k1M/+956YHNUcdEX+nJu3Bs1qiVnVTqOWPL7t4LW6Ubw9bvSX6CXnFQ8H7iuaWpi/MhAkbOBEJ035FaoO6DsTZEBuBoSR7/lOXdFSnXVuF3M2/+ekzpoyYxfvDzk9iwsoVCIYBmUIPuzpf2RpLwJutN5jDzba1m++TRSmi4+iqRzePlX+2hnsGrTo9WgrFH9uteYePjGbyzdxqEsbX7boi+jyX7RE5K1P/zPOnly2fAVc79kXzZj2XxpCATqderydmahnuqW2QVNA==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=ppford header.d=ford.com header.i="@ford.com" header.h="Cc:Content-Type:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"; dkim=pass header.s=selector2-azureford-onmicrosoft-com header.d=azureford.onmicrosoft.com header.i="@azureford.onmicrosoft.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"; dkim=pass header.s=ppserprodsaar header.d=saarlouis.ford.com header.i="@saarlouis.ford.com" header.h="Cc:Content-Type:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"; dkim=pass header.s=ppfserpocford header.d=ford.com header.i="@ford.com" header.h="Cc:Content-Type:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"
  • Cc: dmukhin@xxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, 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: Tue, 09 Jun 2026 01:06:06 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Pser-m365-app: SER-APP

On Mon, Jun 08, 2026 at 03:54:51PM -0400, 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. 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.

Thanks for the feedback!

The reason I wrote this patch is because there can be a lot of those messages
from a real domU which is in a boot loop and/or boots for a significant amount
of time.

With -ECONNREFUSED propagated back to the caller having Xen logging the state
of each sendv() with XENLOG_ERR on the shared (dom0) diag console can be a bit
problematic.

Yes, I understand that programs issuing the Argo hypercall could be rewritten
in a particular way so that the Argo hypercall is issued only if the domain is
up and Argo on the other side is initialized and, ideally, domain should not
be boot-looping...

However, I think, that hypervisor should not depend on assumptions made in the
userspace (e.g. retry/logging policy).

De-prioritizing the logline from XENLOG_ERR to XENLOG_DEBUG can be another
potential solution.

--
Denis



 


Rackspace

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