From: Keir Fraser Subject: Re: Serial console problem with Xen 3.0 Date: Fri, 7 Apr 2006 16:31:30 +0100 Message-ID: References: <5f74ce410604042140y3f9c2154pc2410cc73654d500@mail.gmail.com> <1144416460.3405.2.camel@orbit.scot.redhat.com> <02de01c65a4b$6d03a400$d801a8c0@zaphod> <20060407144405.GE30208@redhat.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060407144405.GE30208@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Don Zickus Cc: Michael Paesold , xen-devel Devel , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 7 Apr 2006, at 15:44, Don Zickus wrote: >> Me too. Adding "sync_console" at least repaired the console *output*. >> I >> still have the problem that keyboard input does not reach linux, as it >> seems. Here is my config: >> > > Adding "pnpacpi=off" to the command line is our quick and dirty hack > for > now. Don't know the root cause yet, but at least it will get you > going. I have some suspicion that this, and the IRQ flooding issues that suse have been seeing, may be due to insufficient checking and translation and book-keeping at the ioapic management interface that Xen exports. See ioapic_guest_write() in xen/arch/x86/io_apic.c. Domain0 is responsible for IRQ steering and routing, and therefore for most of the management of IO-APICs, *but*: 1. Xen is responsible for masking/unmasking as part of normal interrupt servicing. 2. Xen may own some of the interrupts routed via the IO-APIC (serial and timer). Domain0 won't necessarily know about these and I think in the case of serial interrupt in particular it may end up screwing that IRQ line, in theory. It may be worth getting Xen and XenLinux to dump verbose info about their view of IO-APIC state, and maybe add tracing to ioapic_guest_write() and see how domain0 is trying to drive the IO APICs. You may well see some IO APIC write coming thru just before the serial line goes dead. If so, the question will be whether the problem is due to broken checking/translating in Xen, or whether a fix is needed to dom0 ioapic code. -- Keir