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

2025-02-22 Thread Denis Mukhin
On Friday, February 21st, 2025 at 4:26 PM, dm...@proton.me wrote: > > > 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_s

[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