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

2025-01-28 Thread Jan Beulich
On 04.01.2025 02:58, Denis Mukhin via B4 Relay wrote: > @@ -529,14 +532,18 @@ static void switch_serial_input(void) > > static void __serial_rx(char c) > { > +struct domain *d; > int rc = 0; > > -switch ( console_rx ) > -{ > -case 0: > +if ( console_rx == 0 ) >

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

2025-01-27 Thread Jason Andryuk
On 2025-01-03 20:58, Denis Mukhin via B4 Relay wrote: 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

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

2025-01-03 Thread Denis Mukhin via B4 Relay
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