From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M75tp-0001lM-0P for qemu-devel@nongnu.org; Thu, 21 May 2009 06:53:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M75tk-0001hg-BE for qemu-devel@nongnu.org; Thu, 21 May 2009 06:53:20 -0400 Received: from [199.232.76.173] (port=45431 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M75tj-0001hZ-Hr for qemu-devel@nongnu.org; Thu, 21 May 2009 06:53:15 -0400 Received: from mx2.redhat.com ([66.187.237.31]:47486) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M75tj-0003dl-34 for qemu-devel@nongnu.org; Thu, 21 May 2009 06:53:15 -0400 Date: Thu, 21 May 2009 13:50:10 +0300 From: "Michael S. Tsirkin" Subject: Re: [Qemu-devel] [PATCH] qemu: msi irq allocation api Message-ID: <20090521105010.GC25309@redhat.com> References: <20090520162130.GA22109@redhat.com> <200905211109.09844.paul@codesourcery.com> <4A152B8D.5020006@redhat.com> <200905211134.21184.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200905211134.21184.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Carsten Otte , kvm@vger.kernel.org, Rusty Russell , qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, Christian Borntraeger , Avi Kivity On Thu, May 21, 2009 at 11:34:11AM +0100, Paul Brook wrote: > > The PCI bus doesn't need any special support (I think) but something on > > the other end needs to interpret those writes. > > Sure. But there's definitely nothing PCI specific about it. I assumed this > would all be contained within the APIC. Exactly. APIC supplies callbacks to set up/free/mask/unmask MSI interrupts. For kvm, we'll have another implementation that passes these requests on to kernel. > > In any case we need some internal API for this, and qemu_irq looks like > > a good choice. > > What do you expect to be using this API? > > Paul emulated PCI devices such as virtio. Hope to send a patch shortly. -- MST