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

2025-03-05 Thread Jan Beulich
On 26.02.2025 23:47, dm...@proton.me wrote: > @@ -562,10 +560,9 @@ static void __serial_rx(char c) > rc = vpl011_rx_char_xen(d, c); > #endif > > -#ifdef CONFIG_X86 > -if ( pv_shim && pv_console ) > -consoled_guest_tx(c); > -#endif > +if ( consoled_is_enabled() ) > +

[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