Re: UIO DMA to userspace question

From: Avi Kivity
Date: Sun Aug 15 2010 - 11:36:38 EST


On 08/07/2010 09:38 PM, Leon Woestenberg wrote:
Hello all,

can I use the UIO framework for the following?

The userspace portion of the driver allocates memory in user-space
using malloc() - usually resulting in a scatter pages in physical
memory.
The UIO kernel portion of the driver maps those using pci_map_sg().

Is this possible, or does the UIO framework assume memory for DMA is
allocated in kernel space?

Look at the new VFIO driver, which can do DMA if you have an IOMMU.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/