[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] console: make input work again for pv-shim



Hi Jan,

On 18/10/2023 15:58, Jan Beulich wrote:
From: Manuel Bouyer <bouyer@xxxxxxxxxxxxxxx>

The use of rcu_lock_domain_by_id() right in switch_serial_input() makes
assumptions about domain IDs which don't hold when in shim mode: The
sole (initial) domain there has a non-zero ID. Obtain the real domain ID
in that case (generalized as get_initial_domain_id() returns zero when
not in shim mode).

Note that console_input_domain() isn't altered, for not being used when
in shim mode (or more generally on x86).

I think it would be worth to either add a comment in console_input_domain() and/or #ifdef the code. In any case...


Fixes: c2581c58bec9 ("xen/console: skip switching serial input to non existing 
domains")
Signed-off-by: Manuel Bouyer <bouyer@xxxxxxxxxxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

...

Reviewed-by: Julien Grall <jgrall@xxxxxxxxxx>


Also, should we consider it for xen 4.18? (I notice there is no for-4.18 tag).

Cheers,

--
Julien Grall



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.