Skip to content

xen/console: configurable conring size

[email protected] xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest6 patches 12 repliesIn review

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6xen/console: group conring code togetherxen/drivers/char/console.c+80 -812 replies
2/6xen/console: make console buffer size configurabledocs/misc/xen-command-line.pandoc xen/drivers/char/Kconfig xen/drivers/char/console.c+30 -52 replies
3/6xen/console: promote conring{,_size} to __ro_after_initxen/drivers/char/console.c+2 -22 replies
4/6xen/console: use memcpy() in console_init_ring()xen/drivers/char/console.c+15 -31 reply
5/6xen/console: update conring memory allocationxen/drivers/char/console.c+21 -73 replies
6/6xen/console: add conring buffer size alignment settingxen/drivers/char/Kconfig xen/drivers/char/console.c+16 -62 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchJason AndryukJan Beulich
1/6A-b
2/6R-b
3/6A-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/6] xen/console: configurable conring size

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/[email protected]/
[2] https://lore.kernel.org/xen-devel/[email protected]
[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(-)
Signature · 1 line
2.52.0