xen/console: few cleanups in console driver

The patch series introduces a few cleanups aimed at reducing code duplication
in the console driver and improving readability.

Originally, patches 2 and 3 were part of NS16550 emulator v3 series [1].

Patch 1 performs a cleanup in conring console.

Patch 2 (see [2]) removes code duplication between __putstr() and the rest of
the driver. It also introduces private flags to select console devices for
printout which simplifies some code paths.

Patch 3 (see [3]) adds conring_flush() to send contents of conring to all
currently available console devices.

[1] 
https://lore.kernel.org/xen-devel/[email protected]/
[2] 
https://lore.kernel.org/xen-devel/[email protected]/
[3] 
https://lore.kernel.org/xen-devel/[email protected]/
[4] Link to v4: 
https://lore.kernel.org/xen-devel/[email protected]/
[5] Link to CI: 
https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/1823639304

Denis Mukhin (3):
  xen/console: cleanup conring management
  xen/console: introduce console_send()
  xen/console: introduce conring_flush()

 xen/drivers/char/console.c | 186 +++++++++++++++++++++++--------------
 1 file changed, 116 insertions(+), 70 deletions(-)

-- 
2.34.1



Reply via email to