Received: from [140.186.70.92] (port=46980 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovksg-0006m8-0G for qemu-devel@nongnu.org; Wed, 15 Sep 2010 01:50:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ovkse-0007ZO-Tg for qemu-devel@nongnu.org; Wed, 15 Sep 2010 01:50:05 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:48812) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovkse-0007ZH-Jx for qemu-devel@nongnu.org; Wed, 15 Sep 2010 01:50:04 -0400 Date: Wed, 15 Sep 2010 14:50:01 +0900 From: Isaku Yamahata Subject: Re: [Qemu-devel] Re: [PATCH v2 2/9] pcie: helper functions for pcie extended capability. Message-ID: <20100915055001.GA29979@valinux.co.jp> References: <20d8ef39308fd49bf95d83485402fc20499674d3.1283931134.git.yamahata@valinux.co.jp> <20100908103122.GF23051@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100908103122.GF23051@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: skandasa@cisco.com, adhyas@gmail.com, etmartin@cisco.com, qemu-devel@nongnu.org, wexu2@cisco.com On Wed, Sep 08, 2010 at 01:31:22PM +0300, Michael S. Tsirkin wrote: > > + > > +static void pcie_notify(PCIDevice *dev, uint16_t vector, > > + bool trigger, int level) > > +{ > > + /* masking/masking interrupt is handled by upper layer. > > + * i.e. msix_notify() for MSI-X > > + * msi_notify() for MSI > > + * pci_set_irq() for INTx > > + */ > > So this will send another interrupt when level is 0? Yes. The condition that triggers MSI-X/MSI can be different from the one that asserts INTx as you can see it in the following code. trigger and level are set independently. -- yamahata