Re: [dpdk-dev] [PATCH v3 02/44] bus/vdev: add driver IOVA VA mode requirement

2021-01-26 Thread Maxime Coquelin
On 1/26/21 10:23 AM, Xia, Chenbo wrote: > Hi Maxime, > >> -Original Message- >> From: Maxime Coquelin >> Sent: Tuesday, January 26, 2021 1:14 AM >> To: dev@dpdk.org; Xia, Chenbo ; olivier.m...@6wind.com; >> amore...@redhat.com; david.march...@redhat.com >> Cc: Maxime Coquelin >> Subje

Re: [dpdk-dev] [PATCH v3 02/44] bus/vdev: add driver IOVA VA mode requirement

2021-01-26 Thread Xia, Chenbo
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Tuesday, January 26, 2021 1:14 AM > To: dev@dpdk.org; Xia, Chenbo ; olivier.m...@6wind.com; > amore...@redhat.com; david.march...@redhat.com > Cc: Maxime Coquelin > Subject: [PATCH v3 02/44] bus/vdev: add driver IOVA VA mode

[dpdk-dev] [PATCH v3 02/44] bus/vdev: add driver IOVA VA mode requirement

2021-01-25 Thread Maxime Coquelin
This patch adds driver flag in vdev bus driver so that vdev drivers can require VA IOVA mode to be used, which for example the case of Virtio-user PMD. The patch implements the .get_iommu_class() callback, that is called before devices probing to determine the IOVA mode to be used. It also adds a