Eric W. Biederman wrote: > Zach Pfeffer <zpfeffer@xxxxxxxxxxxxxx> writes: > >> This patch contains the documentation for the API, termed the Virtual >> Contiguous Memory Manager. Its use would allow all of the IOMMU to VM, >> VM to device and device to IOMMU interoperation code to be refactored >> into platform independent code. >> >> Comments, suggestions and criticisms are welcome and wanted. > > How does this differ from the dma api? The DMA API handles the allocation and use of DMA channels. It can configure physical transfer settings, manage scatter-gather lists, etc. The VCM is a different thing. The VCM allows a Virtual Contiguous Memory region to be created and associated with a device that addresses the bus virtually or physically. If the bus is addressed physically the Virtual Contiguous Memory is one-to-one mapped. If the bus is virtually mapped than a contiguous virtual reservation may be backed by a discontiguous list of physical blocks. This discontiguous list could be a SG list of just a list of physical blocks that would back the entire virtual reservation. The VCM allows all device buffers to be passed between all devices in the system without passing those buffers through each domain's API. This means that instead of writing code to interoperate between DMA engines, IOMMU mapped spaces, CPUs and physically addressed devices the user can simply target a device with a buffer using the same API regardless of how that device maps or otherwise accesses the buffer. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>