[dpdk-dev] [PATCH v4] vfio: Support for no-IOMMU mode
Thomas Monjalon
thomas.monjalon at 6wind.com
Wed Jan 27 16:50:25 CET 2016
2016-01-27 14:32, Anatoly Burakov:
> +/* DMA mapping function prototype.
> + * Takes VFIO container fd as a parameter.
> + * Returns 0 on success, -1 on error.
> + * */
> +typedef int (*vfio_dma_func_t)(int);
> +
> +struct vfio_iommu_type {
> + int type_id;
> + const char *name;
> + vfio_dma_func_t dma_map_func;
> +};
> +
> +int vfio_iommu_type1_dma_map(int);
> +int vfio_iommu_noiommu_dma_map(int);
Is it possible (is it better) to declare these functions
with vfio_dma_func_t?
vfio_iommu_noiommu_dma_map is a weird name.
Why not vfio_noiommu_dma_map or vfio_iommu_none_dma_map?
More information about the dev
mailing list