argo: few loglevel fixes
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
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
@@ -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
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.
Signed-off-by Denis Mukhin <[email protected]>--- xen/common/argo.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)xen/common/argo.c +0
-0
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
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.
Signed-off-by Denis Mukhin <[email protected]>--- 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@@ -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
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
@@ -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
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_ERRfrom the logline sinceargo_dprintk()already injects the proper log level indicator.Signed-off-by Denis Mukhin <[email protected]>--- xen/common/argo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)xen/common/argo.c +0
-0
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