From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59199 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1po2-0005vt-7U for qemu-devel@nongnu.org; Mon, 21 Mar 2011 20:50:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1po1-0003At-3K for qemu-devel@nongnu.org; Mon, 21 Mar 2011 20:50:42 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:43165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1po0-0003Am-P4 for qemu-devel@nongnu.org; Mon, 21 Mar 2011 20:50:41 -0400 Date: Tue, 22 Mar 2011 09:50:37 +0900 From: Isaku Yamahata Message-ID: <20110322005037.GD9998@valinux.co.jp> References: <533593a679f7c243ddce87c9c3a7c31c6f67acd7.1300540833.git.yamahata@valinux.co.jp> <20110321141022.GB30198@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110321141022.GB30198@redhat.com> Subject: [Qemu-devel] Re: [PATCH v3 3/3] piix_pci: optimize set irq path List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org On Mon, Mar 21, 2011 at 04:10:22PM +0200, Michael S. Tsirkin wrote: > > @@ -37,8 +37,27 @@ > > > > typedef PCIHostState I440FXState; > > > > +#define PIIX_NUM_PIC_IRQS 16 /* i8259 * 2 */ > > +#define PIIX_NUM_PIRQS 4ULL /* PIRQ[A-D] */ > > I've changed this to > ((uint64_t)PCI_NUM_PINS) > > Makes sense? No. The number of pirq is independent of PCI_NUM_PINS. For example, ich9 has 8 pirq (PIRQ[A-H]). Probably same pin name (A-D) causes the confusion, they are irrelevant. -- yamahata