WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] xencons missing string allocation

On Sat, 2005-12-10 at 15:06 +0000, Keir Fraser wrote:
> On 10 Dec 2005, at 00:00, Alex Williamson wrote:
> 
> >    Ok, disregard that previous attempt, it was definitely chasing a
> > false positive.  I'm not sure this one is correct either, but I'll toss
> > it out in case anyone else is interested in chasing this problem too.  
> > I
> > believe the problem is that kcons_device() is incorrectly calculating
> > the index when xc_num != 0 on serial devices.  If I subtract xc_num 
> > from
> > the console index, which should always give me 0, things work perfectly
> > for all ttyS console values (that I've tested).  I don't know if
> > something similar needs to be done for tty devices.  Patch attached,
> > comments/suggestions welcome.  Thanks,
> 
> This seems a very bizarre thing to have to do! What does this index 
> value mean??

   The index is effectively the index into the array of ttyS devices.
For example, ttyS[1] == ttyS1.  When I specify console=ttyS1, this value
gets separated into driver "ttyS", index 1 in the console data
structure.  The xen console driver only knows how to deal with index 0.
The patch I sent confines the namespace translation to one place, but I
think a similar change could be done in places like the open function
where it specifically checks for index == 0.  Then again, it may even
work as is if the user specifies "xencons=ttyS1 console=ttyS0" where
ttyS0 would automatically become index 0 in the xen console driver.
This of course seems far from intuitive and may break again if the
kernel 8250 driver is loaded.  My goal is to be able to include both the
8250 driver and the xen console driver and have them work together by
specifying a xencons= value above the range of ports the 8250 driver
claims.  From Ian's commit log, I think this is supposed to work, but it
currently doesn't.  Thanks,

        Alex



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel