From: "Trolle Selander" Subject: Re: [Xen-staging] [xen-unstable] [QEMU-DM] Upgrade emulated UART to 16550A. Date: Fri, 7 Dec 2007 18:51:42 +0100 Message-ID: <515922b50712070951q5084167bmca86653f556eb8ee@mail.gmail.com> References: <200712051422.lB5EMOK6007392@latara.uk.xensource.com> <1196885729.6509.36.camel@lappy> <515922b50712051230w1876610blb75937b1d224858e@mail.gmail.com> <515922b50712051407y2021b363lb659f9645b53a67e@mail.gmail.com> <1197048065.6319.3.camel@lappy> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1951149793==" Return-path: In-Reply-To: <1197048065.6319.3.camel@lappy> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel , Keir Fraser List-Id: xen-devel@lists.xenproject.org --===============1951149793== Content-Type: multipart/alternative; boundary="----=_Part_14488_4567082.1197049902437" ------=_Part_14488_4567082.1197049902437 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'll look into it further, though I'm a bit puzzled as to why it was faster before - the old code would attempt to retransmit every 100ms, for up to 300ms. That's a LOT longer than my code will retry at any kind of sane baud-rates. What guest are you running in the HVM? At one point I was considering adding a "backend type" field for the qemu char devices to prevent having to detect if the backend device was a physical port from within serial.c. Perhaps I'll need to go back to that plan and treat pty's differently, or simply skip the transmit retries entirely when the backend isn't a physical serial port. On Dec 7, 2007 6:21 PM, Alex Williamson wrote: > > On Wed, 2007-12-05 at 23:07 +0100, Trolle Selander wrote: > > This patch fixes the issue. It also changes the name of an > > inappropriately named timer. > > Hi Trolle, > > Yes, with this patch, my HVM domain will eventually boot. > Unfortunately it takes 2 minutes now to get through all the UART > timeouts and get to the firmware menu. Prior to the new 16550A UART > driver, it took 10 seconds. I think we need to do something smarter > than drop characters after some number of timeouts. We're doomed to > terrible slowness anytime the console is disconnected that way. Thanks, > > Alex > > -- > Alex Williamson HP Open Source & Linux Org. > > ------=_Part_14488_4567082.1197049902437 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'll look into it further, though I'm a bit puzzled as to why it was faster before - the old code would attempt to retransmit every 100ms, for up to 300ms. That's a LOT longer than my code will retry at any kind of sane baud-rates. What guest are you running in the HVM?
At one point I was considering adding a "backend type" field for the qemu char devices to prevent having to detect if the backend device was a physical port from within serial.c. Perhaps I'll need to go back to that plan and treat pty's differently, or simply skip the transmit retries entirely when the backend isn't a physical serial port.

On Dec 7, 2007 6:21 PM, Alex Williamson <alex.williamson@hp.com> wrote:

On Wed, 2007-12-05 at 23:07 +0100, Trolle Selander wrote:
> This patch fixes the issue. It also changes the name of an
> inappropriately named timer.

Hi Trolle,

 Yes, with this patch, my HVM domain will eventually boot.
Unfortunately it takes 2 minutes now to get through all the UART
timeouts and get to the firmware menu.  Prior to the new 16550A UART
driver, it took 10 seconds.  I think we need to do something smarter
than drop characters after some number of timeouts.  We're doomed to
terrible slowness anytime the console is disconnected that way.  Thanks,

       Alex

--
Alex Williamson                             HP Open Source & Linux Org.


------=_Part_14488_4567082.1197049902437-- --===============1951149793== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1951149793==--