[PATCH] docs: add explanation for 'Resolved:'

2025-03-11 Thread dmkhn
From: Denis Mukhin 'Resolves:' tag may be used if the patch addresses one of the tickets logged via Gitlab to auto-close such ticket when the patch got merged. Add documentation for the tag. Signed-off-by: Denis Mukhin --- docs/process/sending-patches.pandoc | 12 1 file changed,

[PATCH v4] xen/console: make console buffer size configurable

2025-03-11 Thread dmkhn
From: Denis Mukhin Add new CONRING_SHIFT Kconfig parameter to specify the boot console buffer size as a power of 2. The supported range is [14..27] -> [16KiB..128MiB]. Set default to 15 (32 KiB). Resolves: https://gitlab.com/xen-project/xen/-/issues/185 Signed-off-by: Denis Mukhin --- Changes

[PATCH v3] xen/console: make console buffer size configurable

2025-03-07 Thread dmkhn
From: Denis Mukhin Add new CONRING_SHIFT Kconfig parameter to specify the boot console buffer size as a power of 2. The supported range is [14..27] -> [16KiB..128MiB]. Set default to 15 (32 KiB). Link: https://gitlab.com/xen-project/xen/-/issues/185 Signed-off-by: Denis Mukhin --- Changes v2-

[PATCH v5] xen/consoled: clean up console handling for PV shim

2025-03-05 Thread dmkhn
From: Denis Mukhin There are few places which check pv_shim console under CONFIG_PV_SHIM or CONFIG_X86 in xen console driver. Instead of inconsistent #ifdef-ing, introduce and use consoled_is_enabled() in switch_serial_input() and __serial_rx(). PV shim case is fixed in __serial_rx() - should b

[PATCH v2] xen/console: make console buffer size configurable

2025-03-04 Thread dmkhn
Add new CONRING_SHIFT Kconfig parameter to specify the boot console buffer size as a power of 2. The supported range is [14..27] -> [16KiB..128MiB]. Set default to 15 (32 KiB). Link: https://gitlab.com/xen-project/xen/-/issues/185 Signed-off-by: Denis Mukhin --- Changes v1->v2: - Switched to us

[PATCH v4] xen/consoled: clean up console handling for PV shim

2025-02-26 Thread dmkhn
There are few places which check pv_shim console under CONFIG_PV_SHIM or CONFIG_X86 in xen console driver. Instead of inconsistent #ifdef-ing, introduce and use consoled_is_enabled() in switch_serial_input() and __serial_rx(). PV shim case is fixed in __serial_rx() - should be under 'pv_shim && p

[PATCH v3] xen/consoled: clean up console handling for PV shim

2025-02-25 Thread dmkhn
There are few places which check pv_shim console under CONFIG_PV_SHIM or CONFIG_X86 in xen console driver. Instead of inconsistent #ifdef-ing, introduce and use consoled_is_enabled() in switch_serial_input() and __serial_rx(). PV shim case is fixed in __serial_rx() - should be under 'pv_shim && p

[PATCH v2] xen/consoled: clean up console handling for PV shim

2025-02-22 Thread dmkhn
From: Denis Mukhin There are few places which check pv_shim console under CONFIG_PV_SHIM or CONFIG_X86 in xen console driver. Instead of inconsistent #ifdef-ing, introduce and use consoled_is_enabled() in switch_serial_input() and __serial_rx(). PV shim case is fixed in __serial_rx() - should b

[PATCH] xen/consoled: clean up console handling for pv_shim

2025-02-21 Thread dmkhn
There are few places which check pv_shim console under CONFIG_PV_SHIM or CONFIG_X86 in xen console driver. Instead of #ifdef-ing, use new consoled_is_enabled() in switch_serial_input() and __serial_rx() (where pv_shim condition is now detected correctly). Signature of consoled_guest_{rx,tx} has c

[PATCH v6] xen/console: print Xen version via keyhandler

2025-02-21 Thread dmkhn
Add Xen version printout to 'h' keyhandler output. That is useful for debugging systems that have been left intact for a long time. Signed-off-by: Denis Mukhin Reviewed-by: Jan Beulich --- Changes since v5: - moved new code outside of #ifdef BUILD_ID --- xen/common/keyhandler.c| 4 x

[PATCH] xen/console: introduce console_{get,put}_domain()

2025-02-18 Thread dmkhn
From: Denis Mukhin console_input_domain() takes an RCU lock to protect domain structure. That implies call to rcu_unlock_domain() after use. Introduce a pair of console_get_domain() / console_put_domain() to highlight the correct use of the call within the code interacting with Xen console drive

[PATCH v5] xen/console: print Xen version via keyhandler

2025-02-17 Thread dmkhn
Add Xen version printout to 'h' keyhandler output. That is useful for debugging systems that have been left intact for a long time. Signed-off-by: Denis Mukhin Reviewed-by: Jan Beulich --- Changes since v4: - switched to checking build_id_len instead of build_id_p in print_build_id() --- xen/c

[PATCH v4] xen/console: print Xen version via keyhandler

2025-02-14 Thread dmkhn
Add Xen version printout to 'h' keyhandler output. That is useful for debugging systems that have been left intact for a long time. Signed-off-by: Denis Mukhin --- Changes since v3: - Dropped assertions for build_id_p --- xen/common/keyhandler.c| 4 xen/common/version.c | 23 +++

[PATCH] xen/console: pre-compute domain prefix for printouts

2025-02-13 Thread dmkhn
Every guest_printk() call computes "(d%d) " prefix on every call. Move prefix generation to the domain creation time. Signed-off-by: Denis Mukhin --- xen/arch/x86/pv/shim.c | 2 ++ xen/common/domain.c| 2 ++ xen/drivers/char/console.c | 6 +- xen/include/xen/sched.h| 1 + 4 f

[PATCH v3] xen/console: print Xen version via keyhandler

2025-02-13 Thread dmkhn
Add Xen version printout to 'h' keyhandler output. That is useful for debugging systems that have been left intact for a long time. Signed-off-by: Denis Mukhin --- Changes since v2: - moved new function declarations to xen/lib.h - dropped xen_ prefix in new functions --- xen/common/keyhandler.c

[PATCH v2] xen/console: print Xen version via keyhandler

2025-02-13 Thread dmkhn
From: Denis Mukhin Add Xen version printout to 'h' keyhandler output. That is useful for debugging systems that have been left intact for a long time. Signed-off-by: Denis Mukhin --- Changes since v1: - Moved version printout to 'h' keyhandler - Kept the build-id reporting past Xen version pri

[PATCH] xen/console: add keyhandler to print Xen version

2025-02-12 Thread dmkhn
Add Xen version printout via keyhandler mechanism. That is useful for debugging systems that have been left intact for a long time. Signed-off-by: Denis Mukhin --- xen/common/version.c | 2 -- xen/drivers/char/console.c | 31 ++- 2 files changed, 26 insertions

[PATCH] xen/console: make console buffer size configurable

2025-02-12 Thread dmkhn
Add new CONRING_SIZE Kconfig parameter to specify the boot console buffer size in bytes. The value is rounded to the nearest power of 2 to match existing conring_size= behavior. The supported range is [16KiB..128MiB]. Bump default size to 32 KiB. Link: https://gitlab.com/xen-project/xen/-/issues

[PATCH v2] arm/vuart: move vpl011-related code to vpl011 emulator

2025-02-12 Thread dmkhn
Xen console driver has vpl011-related logic which shall belong vpl011 emulator code (Arm port). Move vpl011-related code from arch-independent console driver to Arm's vpl011.c. Use rate-limiting guest_printk() for error logging in console driver in case vpl011 cannot handle the console input. Sig

[PATCH v2] xen/include: introduce resource.h

2025-02-11 Thread dmkhn
From: Denis Mukhin Move resource definitions to a new architecture-agnostic shared header file. Signed-off-by: Denis Mukhin --- Changes in v2: - Formatting fixes - Link to v1: https://lore.kernel.org/xen-devel/20250207231814.3863449-1-dmuk...@ford.com/ --- xen/common/device-tree/device-tree.c

[PATCH] arm/vuart: move vpl011-related code to vpl011 emulator

2025-02-10 Thread dmkhn
From: Denis Mukhin Xen console driver has vpl011-related logic which shall belong vpl011 emulator code (Arm port). Move vpl011-related code from arch-independent console driver to Arm's vpl011.c. Signed-off-by: Denis Mukhin --- Link to the original patch: https://lore.kernel.org/xen-devel/20

[PATCH v2] xen/console: introduce is_console_printable()

2025-02-10 Thread dmkhn
From: Denis Mukhin Add is_console_printable() to implement a common check for printable characters in the UART emulation and guest logging code. Signed-off-by: Denis Mukhin Reviewed-by: Stefano Stabellini --- Changes in v2: - switched from tabs to 4 spaces - Link to v1: https://lore.kernel.or

[PATCH] tools: fix typo in sysconfig.xencommons.in

2025-02-10 Thread dmkhn
From: Denis Mukhin Signed-off-by: Denis Mukhin --- tools/hotplug/Linux/init.d/sysconfig.xencommons.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hotplug/Linux/init.d/sysconfig.xencommons.in b/tools/hotplug/Linux/init.d/sysconfig.xencommons.in index 1bdd830d8a..17

[PATCH] xen/include: introduce resource.h

2025-02-07 Thread dmkhn
Move resource definitions to a new architecture-agnostic shared header file. Signed-off-by: Denis Mukhin --- Link to the original patch: https://lore.kernel.org/xen-devel/20250103-vuart-ns8250-v3-v1-18-c5d36b31d...@ford.com/ --- --- xen/common/device-tree/device-tree.c | 21 +

[PATCH] x86/hvm: add HVM-specific Kconfig

2025-02-07 Thread dmkhn
Add separate menu for configuring HVM build-time settings to help organizing HVM-specific options. Signed-off-by: Denis Mukhin --- Link to the original patch: https://lore.kernel.org/xen-devel/20250103-vuart-ns8250-v3-v1-20-c5d36b31d...@ford.com/ --- --- xen/arch/x86/Kconfig | 76 +--

[PATCH] xen/console: introduce is_console_printable()

2025-02-07 Thread dmkhn
Add is_console_printable() to implement a common check for printable characters in the UART emulation and guest logging code. Signed-off-by: Denis Mukhin --- xen/arch/arm/vuart.c | 5 ++--- xen/arch/x86/hvm/hvm.c | 5 ++--- xen/drivers/char/console.c | 3 +-- xen/include/xen/console.h

[PATCH] xen/console: introduce is_console_printable()

2025-02-06 Thread dmkhn
From: Denis Mukhin Add is_console_printable() to implement a common check for printable characters in the UART emulation and guest logging code. Signed-off-by: Denis Mukhin --- Link to the original patch: https://lore.kernel.org/xen-devel/20250103-vuart-ns8250-v3-v1-1-c5d36b31d...@ford.com/