From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: Re: [PATCH] uio_pci_generic does not export memory resources Date: Fri, 08 Jun 2012 09:06:54 -0600 Message-ID: <1339168014.26976.75.camel@ul30vt> References: <1339156616.3870.9.camel@blech> <20120608130351.GB1964@redhat.com> <4FD1FB49.3020905@siemens.com> <1339165009.26976.60.camel@ul30vt> <1339166867.3870.29.camel@blech> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Jan Kiszka , "Michael S. Tsirkin" , "Hans J. Koch" , Greg Kroah-Hartman , kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Dominic Eschweiler Return-path: In-Reply-To: <1339166867.3870.29.camel@blech> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Fri, 2012-06-08 at 16:47 +0200, Dominic Eschweiler wrote: > Am Freitag, den 08.06.2012, 08:16 -0600 schrieb Alex Williamson: > > Yes, thanks Jan. This is exactly what VFIO does. VFIO provides > > secure config space access, resource access, DMA mapping services, and > > full interrupt support to userspace. > > I know about VFIO, but we need some support for that stuff relatively > soon. That's the reason why I'm currently working on it to make UIO DMA > capable. My extensions probably do not play well with IOMMUs and they > therefore won't make it to mainline anyhow (i learned that today ;-). Yeah, VFIO was originally started by Tom Lyon as a uio extension to support DMA mapping and more extensive interrupt handling, but it became an entire re-write of uio. Now we've had to extend in to iommu grouping to get the DMA protection that we're really after. > > I'm currently working to get this upstream, probably targeting 3.6 at > > this point, and would love to have more users to help make that > > happen. > > Yes, you are faster than I'm able to ask. 3.6 is a good target and > really would like to support that. > > > Please take a look at the vfio-3.4 branch in the tree above. See this > > tree for Qemu's usage of VFIO for device assignment ... > > OK, I take look at it and report back (off the list). Please write me an > email if you need support. Thanks, Alex