All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] xen/console: cleanup console input switch logic
@ 2025-05-29  0:08 dmkhn
  2025-05-29  0:09 ` [PATCH v4 1/4] xen/console: rename switch_serial_input() to console_switch_input() dmkhn
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: dmkhn @ 2025-05-29  0:08 UTC (permalink / raw)
  To: xen-devel
  Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
	roger.pau, sstabellini, dmukhin

The patch series originates from the NS16550 UART emulator series [1] (x86)
which requires ability to switch physical console input to a PVH/HVM domain
with an emulated UART.

Currently, on x86, console input can be rotated in round-robin manner only
between dom0, PV shim, and Xen itself. On Arm the input rotation can include
domUs with vpl011.

The main idea of this series is introducing a per-domain permission flag that
is set during domain initialization and used by the console driver to switch
the input across permitted domains.

Patch 1 performs rename of switch_serial_input() to fit the console driver
notation.

Patch 2 introduces a new domain permission flag to mark ownership of the
console input for the console driver.

Patch 3 cleans up the console input switch logic by removing dependency
on max_init_domid. Depends on patches 1, 2 and [2].

Patch 4 performs rename of console_rx to console_domid to match the usage
of the symbol in the code.

[1] https://lore.kernel.org/xen-devel/20250103-vuart-ns8250-v3-v1-0-c5d36b31d66c@ford.com/
[2] https://lore.kernel.org/xen-devel/20250528225030.2652166-1-dmukhin@ford.com/
[3] Link to v3: https://lore.kernel.org/xen-devel/20250519201211.1366244-1-dmukhin@ford.com/
[4] Link to CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/1841674752

Denis Mukhin (4):
  xen/console: rename switch_serial_input() to console_switch_input()
  xen/console: introduce console input permission
  xen/console: remove max_init_domid dependency
  xen/console: rename console_rx to console_domid

 xen/arch/arm/include/asm/setup.h        |  2 -
 xen/arch/arm/setup.c                    |  2 -
 xen/arch/arm/vpl011.c                   |  2 +
 xen/arch/ppc/include/asm/setup.h        |  2 -
 xen/arch/riscv/include/asm/setup.h      |  2 -
 xen/arch/x86/include/asm/setup.h        |  2 -
 xen/arch/x86/pv/shim.c                  |  2 +
 xen/common/device-tree/dom0less-build.c |  2 -
 xen/common/domain.c                     | 31 ++++++++
 xen/drivers/char/console.c              | 96 +++++++++++--------------
 xen/include/xen/domain.h                |  1 +
 xen/include/xen/sched.h                 |  8 ++-
 12 files changed, 85 insertions(+), 67 deletions(-)

-- 
2.34.1




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-05-30 23:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29  0:08 [PATCH v4 0/4] xen/console: cleanup console input switch logic dmkhn
2025-05-29  0:09 ` [PATCH v4 1/4] xen/console: rename switch_serial_input() to console_switch_input() dmkhn
2025-05-29  0:09 ` [PATCH v4 2/4] xen/console: introduce console input permission dmkhn
2025-05-30  0:58   ` Stefano Stabellini
2025-05-30  1:36     ` dmkhn
2025-05-30 18:07       ` Stefano Stabellini
2025-05-29  0:09 ` [PATCH v4 3/4] xen/console: remove max_init_domid dependency dmkhn
2025-05-30  0:58   ` Stefano Stabellini
2025-05-30  1:16     ` dmkhn
2025-05-30 23:29     ` dmkhn
2025-05-29  0:09 ` [PATCH v4 4/4] xen/console: rename console_rx to console_domid dmkhn

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.