argo: few log fixes
v6 cover argo: few log fixes
This series corrects Argo module tracing.
Patch 1 lowers the verbosity of a spammy log message.
Patch 2 corrects the debug logline.
Patch 3 cleans up existing loglines by dropping duplicate prefixes. Patch 4 re-wires argo_dprintk() to gprintk() to include mode debugging
context.
Patch 5 adds new Kconfig for short-circuiting extra verbose Argo traces. Patch 6 enables extra verbose Argo traces in CI for ease of catching
potential issues.
CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/2577682899
Link to v5: https://lore.kernel.org/xen-devel/[email protected]/
Denis Mukhin (6):
argo: lower level of noisy connection-refused log
argo: correct logline in ring_unmap()
argo: drop argo prefix from argo_dprintk() calls
argo: fixup argo_dprintk()
argo: introduce CONFIG_ARGO_DEBUG
automation: enable Argo debugging in CI
automation/gitlab-ci/analyze.yaml | 2 ++ automation/gitlab-ci/build.yaml | 1 + xen/common/Kconfig | 6 ++++++ xen/common/argo.c | 22 ++++++++++------------ 4 files changed, 19 insertions(+), 12 deletions(-)
Signature · 1 line
2.54.0
PATCH v6 1/6 argo: lower level of noisy connection-refused log
From: Denis Mukhin <[email protected]>
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.
---
Changes since v5:
- added Jason's R-b
Changes since v4:
- n/a
--- 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 ("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
PATCH v6 2/6 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.
Also, drop "argo: " prefix, since it is also injected by argo_dprintk()
---
Changes since v5:
- added Jason's R-b
Changes since v4:
- n/a
--- 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 ("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
PATCH v6 3/6 argo: drop argo prefix from argo_dprintk() calls
In reply to [email protected]From: Denis Mukhin <[email protected]>
argo_dprintk() prefixes all log lines with "argo: " automatically.
Remove duplicate prefixes from log messages in the Argo module where applicable.
---
Changes since v5:
- added Jason's R-b
Changes since v4:
- n/a
--- xen/common/argo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
xen/common/argo.c +4 -4
@@ -1467,7 +1467,7 @@ find_ring_mfns(struct domain *d, struct argo_ring_info *ring_info,if ( ring_info->mfns ) {/* Ring already existed: drop the previous mapping. */ -argo_dprintk ("argo: vm%u re-register existing ring " +argo_dprintk ("vm%u re-register existing ring " "(vm%u:%x vm%u) clears mapping\n" , d->domain_id, ring_info->id.domain_id, ring_info->id.aport, ring_info->id.partner_id);
@@ -1527,7 +1527,7 @@ find_ring_mfns(struct domain *d, struct argo_ring_info *ring_info, {ASSERT (ring_info->nmfns ==NPAGES_RING (len)); - argo_dprintk("argo: vm%u ring (vm%u:%x vm%u) %p " + argo_dprintk("vm%u ring (vm%u:%x vm%u) %p " "mfn_mapping %p len %u nmfns %u\n", d->domain_id, ring_info->id.domain_id, ring_info->id.aport, ring_info->id.partner_id, ring_info,
@@ -1741,7 +1741,7 @@ register_ring(struct domain *currd,list_add (&ring_info->node, &currd->argo->ring_hash[hash_index (&ring_info->id)]); -argo_dprintk ("argo: vm%u registering ring (vm%u:%x vm%u)\n" , +argo_dprintk ("vm%u registering ring (vm%u:%x vm%u)\n" , currd->domain_id, ring_id.domain_id, ring_id.aport, ring_id.partner_id); }
@@ -1781,7 +1781,7 @@ register_ring(struct domain *currd, goto out_unlock2; } -argo_dprintk ("argo: vm%u re-registering existing ring (vm%u:%x vm%u)\n" , +argo_dprintk ("vm%u re-registering existing ring (vm%u:%x vm%u)\n" , currd->domain_id, ring_id.domain_id, ring_id.aport, ring_id.partner_id); }
Signature · 1 line
2.54.0
PATCH v6 4/6 argo: fixup argo_dprintk()
In reply to [email protected]From: Denis Mukhin <[email protected]>
Current argo_dprintk() implementation is a wrapper around raw printk().
Rewire it through gprintk() to allow for better debugging context (such as domain ID).
---
Changes since v5:
- added Jason's R-b
Changes since v4:
- n/a
--- xen/common/argo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/argo.c +1 -1
@@ -322,7 +322,7 @@ static DEFINE_RWLOCK(L1_global_argo_rwlock); /* L1 */ #define argo_dprintk(fmt, args...) \ do { \ if ( ARGO_DEBUG ) \ - printk(XENLOG_DEBUG "argo: " fmt, ##args); \ + gprintk(XENLOG_DEBUG, "argo: " fmt, ##args);\ } while ( 0 )/*
Signature · 1 line
2.54.0
PATCH v6 5/6 argo: introduce CONFIG_ARGO_DEBUG
In reply to [email protected]From: Denis Mukhin <[email protected]>
Add Kconfig knob to enable traces for Argo debugging.
---
Changes since v5:
- dropped 'if ARGO' from the Kconfig change
- added Jason's R-b
Changes since v4:
- fixed dependency on a new Kconfig knob on ARGO
Changes since v3:
- dropped uneeded "If unsure, say N." from new Kconfig description
--- xen/common/Kconfig | 6 ++++++ xen/common/argo.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-)
xen/common/Kconfig +6 -0
@@ -491,6 +491,12 @@ config ARGO If unsure, say N. +config ARGO_DEBUG + bool "Argo: enable debug traces (UNSUPPORTED)" + depends on ARGO + help + Enables extra debug traces for Argo debugging. + source "common/sched/Kconfig" config CRYPTO
xen/common/argo.c +1 -2
@@ -318,10 +318,9 @@ static DEFINE_RWLOCK(L1_global_argo_rwlock); /* L1 */ ((LOCKING_Read_L1 &&spin_is_locked (&(d)->argo->send_L2_lock)) || \ LOCKING_Write_L1) -#define ARGO_DEBUG 0 #define argo_dprintk(fmt, args...) \ do { \ - if ( ARGO_DEBUG ) \ + if ( IS_ENABLED(CONFIG_ARGO_DEBUG) ) \ gprintk(XENLOG_DEBUG, "argo: " fmt, ##args);\ } while ( 0 )
Signature · 1 line
2.54.0
PATCH v6 6/6 automation: enable Argo debugging in CI
In reply to [email protected]From: Denis Mukhin <[email protected]>
Enable extra Argo traces in CI to help analyze any potential Argo issues.
That covers eclair-*-allcode and alpine-3.18-gcc-debug jobs.
---
Changes since v5:
- added Jason's R-b
Changes since v4:
- n/a
Changes since v3:
- enabled CONFIG_ARGO_DEBUG for eclair-*-allcode jobs Note, eclair-x86_64-allcode is failing on staging (known):
https://gitlab.com/xen-project/hardware/xen/-/pipelines/2567857238
- example of extra argo traces in CI:
https://gitlab.com/xen-project/people/dmukhin/xen/-/jobs/14661834468
--- automation/gitlab-ci/analyze.yaml | 2 ++ automation/gitlab-ci/build.yaml | 1 + 2 files changed, 3 insertions(+)
automation/gitlab-ci/analyze.yaml +2 -0
@@ -47,6 +47,7 @@ eclair-x86_64-allcode: RULESET: "monitored" EXTRA_XEN_CONFIG: | CONFIG_ARGO=y + CONFIG_ARGO_DEBUG=y CONFIG_DEBUG_INFO=n CONFIG_DEBUG_LOCK_PROFILE=y CONFIG_DEBUG_TRACE=y
@@ -127,6 +128,7 @@ eclair-ARM64-allcode: EXTRA_XEN_CONFIG: | CONFIG_ACPI=y CONFIG_ARGO=y + CONFIG_ARGO_DEBUG=y CONFIG_ARM64_SVE=y CONFIG_ARM_SMMU_V3=y CONFIG_BOOT_TIME_CPUPOOLS=y
automation/gitlab-ci/build.yaml +1 -0
@@ -286,6 +286,7 @@ alpine-3.18-gcc-debug: CONFIG_EXPERT=y CONFIG_UNSUPPORTED=y CONFIG_ARGO=y + CONFIG_ARGO_DEBUG=y CONFIG_UBSAN=y CONFIG_UBSAN_FATAL=y CONFIG_MICROCODE_SCAN_DEFAULT=y
Signature · 1 line
2.54.0
Quoted 14 lines · On 04.06.2026 23:49, [email protected] wrote:
This series corrects Argo module tracing.
Patch 1 lowers the verbosity of a spammy log message.
Patch 2 corrects the debug logline.
Patch 3 cleans up existing loglines by dropping duplicate prefixes. Patch 4 re-wiresargo_dprintk()togprintk()to include mode debugging
context.
Patch 5 adds newKconfigfor short-circuiting extra verbose Argo traces. Patch 6 enables extra verbose Argo traces in CI for ease of catching
potential issues.CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/2577682899
Link to v5: https://lore.kernel.org/xen-devel/[email protected]/
Quoted 7 lines
Denis Mukhin (6):
argo: lower level of noisy connection-refused log
argo: correct logline inring_unmap()
argo: drop argo prefix fromargo_dprintk()calls
argo: fixupargo_dprintk()
argo: introduceCONFIG_ARGO_DEBUG
automation: enable Argo debugging in CI
I understand you want to be helpful with sending these updates in rapid succession. Yet as (attempted to) hint(ed) at before, please either do it properly or leave it at "committer can do minor adjustments", when that was offered. This time round you lost Oleksii's R-a-b. But no, please _do not_ send a v7 for that.
Jan
Quoted 23 lines · Jan Beulich
Quoted 14 lines · On 04.06.2026 23:49, [email protected] wrote:
This series corrects Argo module tracing.
Patch 1 lowers the verbosity of a spammy log message.
Patch 2 corrects the debug logline.
Patch 3 cleans up existing loglines by dropping duplicate prefixes. Patch 4 re-wiresargo_dprintk()togprintk()to include mode debugging
context.
Patch 5 adds newKconfigfor short-circuiting extra verbose Argo traces. Patch 6 enables extra verbose Argo traces in CI for ease of catching
potential issues.CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/2577682899
Link to v5: https://lore.kernel.org/xen-devel/[email protected]/Quoted 7 lines
Denis Mukhin (6):
argo: lower level of noisy connection-refused log
argo: correct logline inring_unmap()
argo: drop argo prefix fromargo_dprintk()calls
argo: fixupargo_dprintk()
argo: introduceCONFIG_ARGO_DEBUG
automation: enable Argo debugging in CI
Quoted 4 lines
I understand you want to be helpful with sending these updates in rapid succession. Yet as (attempted to) hint(ed) at before, please either do it properly or leave it at "committer can do minor adjustments", when that was offered. This time round you lost Oleksii's R-a-b. But no, please
_donot_send a v7 for that.
Thanks for help with the series!
--
Denis
Quoted 2 lines · On Thu, Jun 4, 2026 at 10:49 PM <[email protected]> wrote:
This series corrects Argo module tracing.
This series has been committed to staging.
The maintainers were not CC'd on the series, and did not provide an ack.
Patch 1 is rejected as an inappropriate change.
Therefore it needs reverting.
Quoted 1 line
Patch 1 lowers the verbosity of a spammy log message.
Please see the review comment provided by Daniel on the v3 version.
thanks
Christopher
Quoted 9 lines · Christopher Clark
Quoted 1 line · On Thu, Jun 4, 2026 at 10:49 PM <[email protected]> wrote:
This series corrects Argo module tracing.
This series has been committed to staging.
The maintainers were not CC'd on the series, and did not provide an ack.
Patch 1 is rejected as an inappropriate change.
Therefore it needs reverting.
Hmm yes, that was committed in violation of policy.
~Andrew
Quoted 8 lines · Christopher Clark
Quoted 2 lines · On Thu, Jun 4, 2026 at 10:49 PM <[email protected]> wrote:
This series corrects Argo module tracing.
This series has been committed to staging.
The maintainers were not CC'd on the series, and did not provide an ack.
Quoted 7 lines
Patch 1 is rejected as an inappropriate change.
Therefore it needs reverting.
Quoted 1 line
Patch 1 lowers the verbosity of a spammy log message.
Please see the review comment provided by Daniel on the v3 version.
FWIW, this comment to v3 was only posted today after v6 was commited. It was not an unaddressed comment at the time of commit.
Regards,
Jason
Hi all,
Quoted 7 lines · Christopher Clark
Quoted 2 lines · On Thu, Jun 4, 2026 at 10:49 PM <[email protected]> wrote:
This series corrects Argo module tracing.
This series has been committed to staging.
The maintainers were not CC'd on the series, and did not provide an ack.
Sorry, I did not mean to overrule anything or violate the existing process.
I posted the series as an attempt to resolve the log spam reported internally.
I also appreciate the time everyone involved spent reviewing and providing feedback on this small series.
Quoted 5 lines
Patch 1 is rejected as an inappropriate change.
Therefore it needs reverting.
Quoted 8 lines
Quoted 1 line
Patch 1 lowers the verbosity of a spammy log message.
Please see the review comment provided by Daniel on the v3 version.
thanks
Christopher
--
Denis