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 4 of 7] minios: fix minios console

To: Mick Jordan <Mick.Jordan@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH 4 of 7] minios: fix minios console
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Tue, 13 Oct 2009 13:22:02 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Tue, 13 Oct 2009 05:22:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AD3B3B4.8050806@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <alpine.DEB.2.00.0910121759540.4616@kaball-desktop> <4AD3B3B4.8050806@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Mon, 12 Oct 2009, Mick Jordan wrote:
> On 10/12/09 10:20 AM, Stefano Stabellini wrote:
> > MiniOS' console_print tries to expand '\n' into "\n\r" in place, causing
> > page faults if the string resides in text.
> > Use a duplicate of the string instead.
> >   
> Are you sure this is even necessary? I removed this in my GUK extension 
> of MiniOS with no apparent effect. The actual push to remove it was 
> observing that when "piping" the output of one GUK (JVM) guest to 
> another, the "\n\r" was being treated as two line feeds by the Java 
> runtime. Why? Because it is "\r\n" that is historically reduced to "\n", 
> and not "\n\r". In any event in the Xen/Unix environment there should be 
> no need for the expansion at all. And it really helped to clean up the 
> console code.
> 

The expansion of \n in \r\n is for consistency with linux ttys, but you
are right about the fact that minios actually substitutes \n with \n\r,
and this is definitely another bug.


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