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

2018-04-13 Thread Wang, Xiao W
> -Original Message- > From: Burakov, Anatoly > Sent: Friday, April 13, 2018 12:24 AM > To: Wang, Xiao W ; Yigit, Ferruh > > Cc: dev@dpdk.org; maxime.coque...@redhat.com; Wang, Zhihong > ; Bie, Tiwei ; Tan, Jianfeng > ; Liang, Cunming ; Daly, > Dan ; tho...@monjalon.net; gaetan.ri...@6wi

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

2018-04-12 Thread Burakov, Anatoly
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 t

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

2018-04-12 Thread Wang, Xiao W
Hi Anatoly, > -Original Message- > From: Burakov, Anatoly > Sent: Thursday, April 12, 2018 10:04 PM > To: Wang, Xiao W ; Yigit, Ferruh > > Cc: dev@dpdk.org; maxime.coque...@redhat.com; Wang, Zhihong > ; Bie, Tiwei ; Tan, Jianfeng > ; Liang, Cunming ; Daly, > Dan ; tho...@monjalon.net; gae

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

2018-04-12 Thread Burakov, Anatoly
On 12-Apr-18 8:19 AM, Xiao Wang wrote: Currently eal vfio framework binds vfio group fd to the default container fd during rte_vfio_setup_device, while in some cases, e.g. vDPA (vhost data path acceleration), we want to put vfio group to a separate container and program IOMMU via this container.

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

2018-04-12 Thread Xiao Wang
Currently eal vfio framework binds vfio group fd to the default container fd during rte_vfio_setup_device, while in some cases, e.g. vDPA (vhost data path acceleration), we want to put vfio group to a separate container and program IOMMU via this container. This patch adds some APIs to support con