From: dmkhn@proton.me
To: Julien Grall <julien@xen.org>
Cc: xen-devel@lists.xenproject.org, andrew.cooper3@citrix.com,
anthony.perard@vates.tech, jbeulich@suse.com,
michal.orzel@amd.com, roger.pau@citrix.com,
sstabellini@kernel.org, dmukhin@ford.com
Subject: Re: [PATCH v1] xen/console: remove __printk_ratelimit()
Date: Sat, 26 Jul 2025 20:56:23 +0000 [thread overview]
Message-ID: <aIVA8nkV7XKWxyb5@kraken> (raw)
In-Reply-To: <290ae958-4fba-42d8-a64b-d44845b85491@xen.org>
On Sat, Jul 26, 2025 at 10:20:58AM +0100, Julien Grall wrote:
Hi Julien,
Thanks for your feedback!
I imagined that kind of a change may raise a question about importance of
doing it.
> Hi Denis,
>
> On 25/07/2025 22:24, dmkhn@proton.me wrote:
> > From: Denis Mukhin <dmukhin@ford.com>
> >
> > __printk_ratelimit() is never used outside of the console driver.
> > Remove it from the lib.h and merge with the public printk_ratelimit().
>
> Is this solving any sort of violation? Asking because even if the
> function is only used by one caller, I could see a benefit to be able to
> use different value for the ratelimit. So I leaning towards keep the
> code as-is.
The change is not solving any sort of violation, but simplifies a code path
slightly since fine-grain rate-limit controls are not exported/used anywhere
outside of the console driver. At this time, the purpose is a tiny cleanup.
TL;DR
I stepped over that code during addressing feedback for another change for
domain prefixes, where I'm experimenting with re-using printk-facilities from
guest_console_write(). This code showed up wrt rate-limiting for dom0's
messages. Just in case, experimental branch is here:
https://gitlab.com/xen-project/people/dmukhin/xen/-/tree/console-fixes
I cannot anticipate not exposing rate-limiting timing controls in embedded
certifiable setup, perhaps there will be a legit use case in production
deployment.
But currently rate-limiting configuration happens at boot time only. The fact
that rate-limiting has not been touched since its introduction in 2006
26cf03554a75 ("[XEN] Implement rate-limited logging.")
made me think that there's no intent to plumb any rate-limiting controls at
the run-time e.g. via keyhandler or a even hypercall.
Which resulted in this submission.
>
> Cheers,
>
> --
> Julien Grall
>
Thanks,
Denis
next prev parent reply other threads:[~2025-07-26 20:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-25 21:24 [PATCH v1] xen/console: remove __printk_ratelimit() dmkhn
2025-07-26 9:20 ` Julien Grall
2025-07-26 20:56 ` dmkhn [this message]
2025-07-28 9:32 ` Jan Beulich
2025-07-29 22:18 ` dmkhn
2025-07-30 5:35 ` Jan Beulich
2025-07-30 18:06 ` dmkhn
2025-07-31 6:23 ` Jan Beulich
2025-07-31 21:28 ` dmkhn
2025-08-01 7:32 ` Jan Beulich
2025-08-06 11:09 ` Roger Pau Monné
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aIVA8nkV7XKWxyb5@kraken \
--to=dmkhn@proton.me \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=dmukhin@ford.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.