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

Re: [PATCH v2 20/35] xen/console: introduce console_owner_domid()



On Tuesday, December 10th, 2024 at 11:33 PM, Jan Beulich <jbeulich@xxxxxxxx> 
wrote:

>
>
> On 10.12.2024 23:11, Jason Andryuk wrote:
>
> > On 2024-12-05 23:41, Denis Mukhin via B4 Relay wrote:
> >
> > > From: Denis Mukhin dmukhin@xxxxxxxx
> > >
> > > console_owner_domid() is introduced to obtain the "console owner" domain 
> > > ID.
> > >
> > > The call is used in NS8250 emulator to identify the case when physical xen
> > > console focus is owned by the domain w/ NS8250 emulator, in which case,
> > > messages from guest OS are formatted w/o '(XEN)' prefix.
> > >
> > > Signed-off-by: Denis Mukhin dmukhin@xxxxxxxx
> >
> > Reviewed-by: Jason Andryuk jason.andryuk@xxxxxxx
> >
> > I expected this to be used immediately by patch 21, but it is not. You
> > might want to re-order it directly before its first use is introduced.
> > I haven't gotten far enough to know when that is.
>
>
> Plus, no matter how far in the future it is, there'll be a window where the
> Misra rule of not having unreachable code in the project is violated. New
> functions now really need introducing when their first caller appears.

I see, thank you for the explanation.

>
> Jan





 


Rackspace

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