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] Re: dom0 serial input overruns

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: dom0 serial input overruns
From: Trolle Selander <trolle.selander@xxxxxxxxx>
Date: Tue, 22 Mar 2011 11:48:08 -0400
Cc: Ferenc Wagner <wferi@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 22 Mar 2011 08:48:51 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=gVf7T7BKnthZWTcUn1oF+uAB6vD3aDtIbuRdTgDCcXs=; b=ayV/jVNypncYFLF357QgTWlBNoOuwlKrj6Hox//T5b4RO5gFaVLot4NqNypAK/CBSZ L6S4NhCXlQhezUZnk9goMggxR82Kl+E+nIx8nhbMWWam81bI7rbY/JEek4SeK8s4d5Hd yJtkz8UKYppn8dcU4Tz+HVXu5IBy3vwOAS+mM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Gi6RWPN/F4S26hN09JHkWT9AKoQtAsavHm8okCp0ER+FHkES+qraMOb6bXhDCVkpid ZYozO/sM+PqT3g+KYQAynVMY/kFm4cnr5dZLqUxYst3kxmMVcZqeOlp7XxagAKq18t3+ jdOYnFFT5Z3tL0OMd/h0P9GSr9cNexIwwsdRE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110322152710.GA27284@xxxxxxxxxxxx>
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: <87zkoq6onj.fsf@xxxxxxxxxxxxx> <20110320204321.GE3948@xxxxxxxxxxxx> <87oc54a0zc.fsf@xxxxxxxxxxxxx> <20110322152710.GA27284@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
This issue has been around for a long time. Pinning one CPU to dom0 makes things a little better, but you can still run into lost characters on serial input at anything above 14400 bps. I was fighting this back in 2007 when I was trying to get some serial attached Point-of-Sale equipment work with Xen. Pinning dom0 & making the qemu serial device model read more aggressively from the serial device got things reliable at 9.6 & 14.4 which was all my customer at the time needed, but I any speed above that still had these described issues. From memory, it didn't make a whole lot of difference whether you let dom0 or the hypervisor handle the serial ports.

Regards,
Trolle

On Tue, Mar 22, 2011 at 11:27 AM, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> wrote:
> the boot loader).  However, this lossage isn't accompanied by any

Oooh, strange.
> warning.  I hope this answers your question.  I also run the exact same
> hardware configuration without Xen, and the Linux console is perfectly
> solid in that case (like it should under hardware flow control).  As an

OK.

> illustration, here's the serial output of querying ioapic info on the
> Xen console:

Can you do '*' in the debug console. There are some other ones that I
curious. Mainly what the IRQ 4 in your Linux dom0 maps to what vector.
Looking at your IOAPIC output:

> (XEN)  NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:
> (XEN)  04 001 01  0    0    0   0   0    1    1    38

it should be going to the first CPU (CPU 0), but I am not sure about
the other flags... We had some issue with Xen 4.0 where IRQs below
16 would not be set correctly. It would only go to the first CPU
instead of being broadcast to all of them. Look for a thread from 'M A Young'
about keyboard issues.

.. If you boot just baremetal (so no Xen) and you give it 'apic=debug'
it should print the IOAPIC output. Can you see what this? I am
very curious to see if GSI 4 has similar looking flags set (the vector
value is going to be different)


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

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