From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 3/6] qemu: piix: Introduce functions to get pin number from irq and vice versa Date: Sun, 26 Oct 2008 15:31:24 +0200 Message-ID: <4904712C.1080307@redhat.com> References: <1224861988-22781-1-git-send-email-amit.shah@redhat.com> <1224861988-22781-2-git-send-email-amit.shah@redhat.com> <1224861988-22781-3-git-send-email-amit.shah@redhat.com> <1224861988-22781-4-git-send-email-amit.shah@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, anthony@codemonkey.ws, weidong.han@intel.com, allen.m.kay@intel.com, muli@il.ibm.com, benami@il.ibm.com To: Amit Shah Return-path: Received: from mx2.redhat.com ([66.187.237.31]:33978 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752526AbYJZNcQ (ORCPT ); Sun, 26 Oct 2008 09:32:16 -0400 In-Reply-To: <1224861988-22781-4-git-send-email-amit.shah@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Amit Shah wrote: > > +int piix3_get_pin(int pic_irq) > +{ > + int i; > + for (i = 0; i < 4; i++) > + if (piix3_dev->config[0x60+i] == pic_irq) > + return i; > + return -1; > +} > What happens if two pci interrupts are routed to one irq line? -- error compiling committee.c: too many arguments to function