Messages in this thread | | | Date | Thu, 03 Jun 2010 09:23:32 +0300 | From | Avi Kivity <> | Subject | Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers |
| |
On 06/02/2010 08:46 PM, Chris Wright wrote: > The BIND API expects a new > iommu object. Are there other uses for this object?
Both kvm and vhost use similar memory maps, so they could use the new object (without invoking the iommu unless they want dma).
> Tom's current vfio > driver exposes a dma mapping interface, would the iommu object expose > one as well? Current interface is device specific DMA interface for > host device drivers typically mapping in-flight dma buffers, and IOMMU > specific interface for assigned devices typically mapping entire virtual > address space. >
A per-request mapping sounds like a device API since it would only affect that device (whereas the address space API affects multiple devices).
-- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.
| |