Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kub6U-0007rI-SE for qemu-devel@nongnu.org; Mon, 27 Oct 2008 19:02:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kub6R-0007qL-1K for qemu-devel@nongnu.org; Mon, 27 Oct 2008 19:02:30 -0400 Received: from [199.232.76.173] (port=52869 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kub6Q-0007qI-TB for qemu-devel@nongnu.org; Mon, 27 Oct 2008 19:02:26 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:55081) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kub6P-0002tH-Kg for qemu-devel@nongnu.org; Mon, 27 Oct 2008 19:02:26 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e36.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id m9RN290G027592 for ; Mon, 27 Oct 2008 19:02:09 -0400 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m9RN24KQ113764 for ; Mon, 27 Oct 2008 17:02:05 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m9RN24CM015570 for ; Mon, 27 Oct 2008 17:02:04 -0600 Subject: Re: [Qemu-devel] [PATCH 2/2] Add code to override IRQ 0 to INTI 2 From: Beth Kon In-Reply-To: <49061C1A.1030008@codemonkey.ws> References: <1225131960.7555.79.camel@beth-laptop> <49061B2B.702@redhat.com> <49061C1A.1030008@codemonkey.ws> Content-Type: text/plain Date: Mon, 27 Oct 2008 19:02:08 -0400 Message-Id: <1225148528.7555.89.camel@beth-laptop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org On Mon, 2008-10-27 at 14:52 -0500, Anthony Liguori wrote: > Avi Kivity wrote: > > Beth Kon wrote: > >> This patch, provided by Anthony Liguori, maps IRQ0 to INTI2. > >> > >> > > > > This will cause problems for kvm, which maps interrupts 1:1 without > > exceptions. While we could add support for remapping, it would mean > > that older kernels would not be able to support an hpet. > > > > Isn't it possible to connect the hpet to pic irq 2 and ioapic irq 2, > > maintaining the 1:1 mapping? > > The APIC spec says that the hpet must be connected to APIC IRQ 0 and > IOAPIC IRQ 2. I don't understand GSI very well, but I think this is the > normally remapping of interrupts that would occur as opposed to > something device specific. > Just a slight clarification to Anthony's words in order to avoid confusion... The HPET spec says that the hpet, when replacing the PIT in legacy mode must map to PIC IRQ 0 and APIC IRQ2. > Regards, > > Anthony Liguori > > > (what's irq 2 connected to now?) > > > -- Elizabeth Kon (Beth) IBM Linux Technology Center Open Hypervisor Team email: eak@us.ibm.com