Skip to content

xen/console: some cleanups and configurable conring size

[email protected] xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest7 patches 13 repliesIn review
  2. v77 patches 11 repliesSuperseded
  3. v64 patches 4 repliesSuperseded

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7xen/console: do not use XENCONS_RING_IDX in console_init_ring()xen/drivers/char/console.c+3 -31 reply
2/7xen/console: use 'unsigned int' in contring_{flush,puts}()xen/drivers/char/console.c+2 -23 replies
3/7xen/console: switch conring runtime allocation to xvmallocxen/drivers/char/console.c+19 -82 replies
4/7xen/serial: switch txbuf runtime allocation to xvmallocxen/drivers/char/serial.c+2 -21 reply
5/7xen/console: use memcpy() in conring_puts()xen/drivers/char/console.c+15 -33 replies
6/7xen/serial: harden serial_tx_buffer checksdocs/misc/xen-command-line.pandoc xen/drivers/char/serial.c+4 -02 replies
7/7xen/console: make console buffer size configurabledocs/misc/xen-command-line.pandoc xen/drivers/char/Kconfig xen/drivers/char/console.c+30 -51 reply

Reviews trailers per patch

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

PatchStefano Stabellini
1/7R-b
2/7R-b
3/7
4/7R-b
5/7
6/7
7/7

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

Read the v8 thread

Cover letter [PATCH v8 0/7] xen/console: some cleanups and configurable conring size

Series introduces some cleanups in console conring and serial driver buffer management code ending up with adding compile-time configuration knob for conring size.

Patch 1-2 correct the data types used in conring management code.

Patch 3 updates the conring buffer allocation code.

Patch 4 updates the serial driver buffer allocation code.

Patch 5 optimizes code in conring_puts().

Patch 6 hardens the checks in the serial driver buffer management code.

Patch 7 introduces CONRING_CONRING_SHIFT to select compile-time conring buffer size.

[1] v7: https://lore.kernel.org/xen-devel/[email protected]/
[2] CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/2710713367

Denis Mukhin (7):
xen/console: do not use XENCONS_RING_IDX in console_init_ring() xen/console: use 'unsigned int' in contring_{flush,puts}() xen/console: switch conring runtime allocation to xvmalloc xen/serial: switch txbuf runtime allocation to xvmalloc xen/console: use memcpy() in conring_puts() xen/serial: harden serial_tx_buffer checks xen/console: make console buffer size configurable

 docs/misc/xen-command-line.pandoc | 10 ++++-
 xen/drivers/char/Kconfig          | 21 +++++++++++
 xen/drivers/char/console.c        | 61 +++++++++++++++++++++----------
 xen/drivers/char/serial.c         |  6 ++-
 4 files changed, 75 insertions(+), 23 deletions(-)
Signature · 1 line
2.54.0