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

Re: [PATCH v2 18/35] xen/console: introduce use of 'is_console' flag



On Tuesday, December 10th, 2024 at 6:52 AM, Jan Beulich <jbeulich@xxxxxxxx> 
wrote:

>
>
> On 06.12.2024 05:41, Denis Mukhin via B4 Relay wrote:
>
> > From: Denis Mukhin dmukhin@xxxxxxxx
> >
> > The code now inspects d->is_console flag to decide whether the console focus
> > should move to the domain w/ console after administrator presses <Ctrl+aaa>.
> >
> > Console owner domain switch logic updated accordingly.
> >
> > Signed-off-by: Denis Mukhin dmukhin@xxxxxxxx
>
>
> Just as a remark, as it's a pre-existing problem: I'm unconvinced that
> "is_console" is a good name here.

I think it should be called something like console_perm.
I kept name as is for now, but I can make a change.

>
> > @@ -509,14 +509,20 @@ static void console_find_owner(void)
> > domid = get_initial_domain_id();
> > else
> > domid = next_rx - 1;
> > +
> > d = rcu_lock_domain_by_id(domid);
> > - if ( d )
> > + if ( d == NULL )
>
>
> Seeing the original code, the more "natural" transformation would be to
> !d (as we use elsewhere as well, to keep code short).

Fixed.

>
> Jan





 


Rackspace

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