> -----Original Message-----
> From: Stephen Hemminger <step...@networkplumber.org>
> Sent: Saturday, December 23, 2023 1:18 AM
> To: Xing, Beilei <beilei.x...@intel.com>
> Cc: Burakov, Anatoly <anatoly.bura...@intel.com>; dev@dpdk.org;
> tho...@monjalon.net; ferruh.yi...@amd.com; Richardson, Bruce
> <bruce.richard...@intel.com>; chen...@nvidia.com; Cao, Yahui
> <yahui....@intel.com>
> Subject: Re: [PATCH 4/4] eal: add new args to choose VFIO mode
>
> On Fri, 22 Dec 2023 19:44:53 +0000
> beilei.x...@intel.com wrote:
>
> > From: Beilei Xing <beilei.x...@intel.com>
> >
> > Since now Linux has both of VFIO Container/GROUP & VFIO IOMMUFD/CDEV
> > support, user can determine how to probe the PCI device by the new
> > args "--vfio-mode".
> >
> > Use "--vfio-mode=container" to choose VFIO Container/GROUP, and use
> > "--vfio-mode=iommufd" to choose VFIO IOMMUFD/CDEV.
> >
> > Signed-off-by: Beilei Xing <beilei.x...@intel.com>
> > Signed-off-by: Yahui Cao <yahui....@intel.com>
>
> Can't this be automatic, users don't need more EAL options.
Thanks for your review. Since Linux supports both VFIO Container/GROUP and VFIO
OMMUFD/CDEV currently, I think user can choose which mode they want. The new
IOMMU features (e.g. PASID/SSID) may be only available through VFIO IOMMUFD/CDEV
interface, VFIO Container/GROUP may be deprecated in future, and then DPDK will
use iommufd mode automatically.
.