[dpdk-dev] [PATCH v6 1/4] eal/vfio: add multiple container support

Burakov, Anatoly anatoly.burakov at intel.com
Thu Apr 12 18:24:25 CEST 2018


On 12-Apr-18 5:07 PM, Wang, Xiao W wrote:
> Hi Anatoly,
> 

<...>

>>
>> Also, why providing DMA type? There's already a VFIO type pointer in
>> vfio_config - you can set this pointer for every new created container,
>> so the user wouldn't have to care about IOMMU type. Is it not possible
>> to figure out DMA type from within EAL VFIO? If not, maybe provide an
>> API to do so, e.g. rte_vfio_container_set_dma_type()?
> 
> It's possible, EAL VFIO should be able to figure out a container's DMA type.

You probably won't be able to do it until you add a group into the 
container, so probably best place to do it would be on group_bind?

-- 
Thanks,
Anatoly


More information about the dev mailing list