This series originates from [1] which addresses feedback [2].
Sending this as v5 since [1] was posted as v4...
Briefly, here is what the series covers:
Patch 1 groups conring code together to better maintainability.
There were conring bits all over the place in console.c.
Patch 2 introduces CONRING_CONRING_SHIFT to select compile-time
conring buffer size.
Patch 3 updates conring{,_size} annotations to __ro_after_init as per [2].
Patch 4 optimizes switch from early conring to permanent conring.
Patches 5-6 update the conring buffer allocation code and add some
verbose logging around buffer size selection.
[1] Link to v4: https://lore.kernel.org/xen-devel/20250311070912.730334-1-dmkhn@proton.me/
[2] https://lore.kernel.org/xen-devel/1a5ed8ad-0cc7-4e05-9b9c-cd6930d9b9ea@citrix.com
[3] Link to CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/2306728453
Denis Mukhin (6):
xen/console: group conring code together
xen/console: make console buffer size configurable
xen/console: promote conring{,_size} to __ro_after_init
xen/console: use memcpy() in console_init_ring()
xen/console: update conring memory allocation
xen/console: add conring buffer size alignment setting
docs/misc/xen-command-line.pandoc | 5 +-
xen/drivers/char/Kconfig | 31 +++++
xen/drivers/char/console.c | 190 +++++++++++++++++-------------
3 files changed, 143 insertions(+), 83 deletions(-)
--
2.52.0