Skip to contentSkip to conversation

argo: few loglevel fixes

PATCH Superseded [email protected] 2 participants 6 messages May 21 – May 22

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

cover argo: few loglevel fixes

This mini-series fixes a few log messages in the Argo module.

Patch 1 lowers the verbosity of a spammy log message. Patch 2 corrects the debug logline.

CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/2544856081

Denis Mukhin (2):
argo: lower level of noisy connection-refused log
argo: correct logline in ring_unmap()

 xen/common/argo.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
Signature · 1 line
2.54.0
#1 lore raw

PATCH 1/2 argo: lower level of noisy connection-refused log

From: Denis Mukhin <[email protected]>

Lower the log level of the "connection refused" log line, 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.

---
 xen/common/argo.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
xen/common/argo.c +3 -4
index 28626e00a8cb..4f894470698e 100644
@@ -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("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);
 
         ret = -ECONNREFUSED;
     }
Signature · 1 line
2.54.0
#2 lore raw

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

Hi Denis,

Thank you for the contribution.

Quoted 17 lines · On Fri, May 22, 2026 at 2:57 AM <[email protected]> wrote:

From: Denis Mukhin <[email protected]>

Lower the log level of the "connection refused" log line, 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.

---
 xen/common/argo.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
xen/common/argo.c +0 -0
index 28626e00a8cb..4f894470698e 100644

xen/common/argo.c sendv(struct domain *src_d, xen_argo_addr_t *src_addr, · line 2037

Quoted 8 lines
xen/common/argo.c +1 -4
@@ -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("argo: vm%u connection refused, src (vm%u:%x) dst (vm%u:%x)\n",

AFAIU, argo_dprintk() already adds the "argo: " prefix internally.

Best regards,
Mykola

#3 lore raw

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

Quoted 17 lines · Mykola Kvach

Hi Denis,

Thank you for the contribution.

Quoted 12 lines · On Fri, May 22, 2026 at 2:57 AM <[email protected]> wrote:

From: Denis Mukhin <[email protected]>

Lower the log level of the "connection refused" log line, 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.

---
 xen/common/argo.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
Quoted 15 lines

xen/common/argo.c sendv(struct domain *src_d, xen_argo_addr_t *src_addr, · line 2037

Quoted 13 lines
xen/common/argo.c +1 -4
index 28626e00a8cb..4f894470698e 100644
@@ -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("argo: vm%u connection refused, src (vm%u:%x) dst (vm%u:%x)\n",

AFAIU, argo_dprintk() already adds the "argo: " prefix internally.

Thanks!
Will fix this and the follow on patch too.

Quoted 4 lines

Best regards,
Mykola

#4 lore raw

PATCH 2/2 argo: correct logline in ring_unmap()

In reply to [email protected]

From: Denis Mukhin <[email protected]>

Drop XENLOG_ERR from the logline since argo_dprintk() already injects the proper log level indicator.

---
 xen/common/argo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/argo.c +1 -1
index 4f894470698e..c66632486800 100644
@@ -474,7 +474,7 @@ ring_unmap(const struct domain *d, struct argo_ring_info *ring_info)
             continue;
 
         ASSERT(!mfn_eq(ring_info->mfns[i], INVALID_MFN));
-        argo_dprintk(XENLOG_ERR "argo: unmapping page %"PRI_mfn" from %p\n",
+        argo_dprintk("argo: unmapping page %"PRI_mfn" from %p\n",
                      mfn_x(ring_info->mfns[i]), ring_info->mfn_mapping[i]);
 
         unmap_domain_page_global(ring_info->mfn_mapping[i]);
Signature · 1 line
2.54.0
#5 lore raw

Re: [PATCH 2/2] argo: correct logline in ring_unmap()

Hi Denis,

Quoted 16 lines · On Fri, May 22, 2026 at 2:26 AM <[email protected]> wrote:

From: Denis Mukhin <[email protected]>

Drop XENLOG_ERR from the logline since argo_dprintk() already injects the proper log level indicator.

---
 xen/common/argo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/argo.c +0 -0
index 4f894470698e..c66632486800 100644

xen/common/argo.c ring_unmap(const struct domain *d, struct argo_ring_info *ring_info) · line 477

Quoted 5 lines
xen/common/argo.c +1 -1
@@ -474,7 +474,7 @@ ring_unmap(const struct domain *d, struct argo_ring_info *ring_info)
             continue;
 
         ASSERT(!mfn_eq(ring_info->mfns[i], INVALID_MFN));
-        argo_dprintk(XENLOG_ERR "argo: unmapping page %"PRI_mfn" from %p\n",
+        argo_dprintk("argo: unmapping page %"PRI_mfn" from %p\n",

Same here: argo_dprintk() already adds the "argo: " prefix internally, so the explicit "argo: " should probably be dropped as well.

Best regards,
Mykola