From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M78yn-0007op-Ai for qemu-devel@nongnu.org; Thu, 21 May 2009 10:10:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M78yi-0007mm-Pa for qemu-devel@nongnu.org; Thu, 21 May 2009 10:10:40 -0400 Received: from [199.232.76.173] (port=33675 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M78yi-0007mX-JR for qemu-devel@nongnu.org; Thu, 21 May 2009 10:10:36 -0400 Received: from mx2.redhat.com ([66.187.237.31]:49164) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M78yh-0004cg-SW for qemu-devel@nongnu.org; Thu, 21 May 2009 10:10:36 -0400 Date: Thu, 21 May 2009 17:07:11 +0300 From: "Michael S. Tsirkin" Subject: Re: [Qemu-devel] [PATCH] qemu: msi irq allocation api Message-ID: <20090521140711.GJ25309@redhat.com> References: <20090520162130.GA22109@redhat.com> <200905211423.20843.paul@codesourcery.com> <20090521134650.GI25309@redhat.com> <200905211453.14691.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200905211453.14691.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 02:53:14PM +0100, Paul Brook wrote: > > > which is a trivial wrapper around stl_phys. > > > > OK, but I'm adding another level of indirection in the middle, > > to allow us to tie in a kvm backend. > > kvm has no business messing with the PCI device code. Yes it has :) kvm needs data on MSI entries: that's the interface current kernel exposes for injecting these interrupts. I think we also need to support in-kernel devices which would inject MSI interrupt directly from kernel. For these, kvm would need to know when mask bit changes and give us info on pending bit. That's a fair amount of PCI specific code in kvm. -- MST