On 03/31/2018 04:29 AM, Xiao Wang wrote:
From: Junjie Chen <junjie.j.c...@intel.com> Currently eal vfio framework binds vfio group fd to the default container fd, while in some cases, e.g. vDPA (vhost data path acceleration), we want to set vfio group to a new container and program DMA mapping via this new container, so this patch adds APIs to support multiple container. Signed-off-by: Junjie Chen <junjie.j.c...@intel.com> Signed-off-by: Xiao Wang <xiao.w.w...@intel.com> --- config/common_base | 1 + lib/librte_eal/bsdapp/eal/eal.c | 51 ++- lib/librte_eal/common/include/rte_vfio.h | 116 +++++++ lib/librte_eal/linuxapp/eal/eal_vfio.c | 552 +++++++++++++++++++++++++------ lib/librte_eal/linuxapp/eal/eal_vfio.h | 1 + lib/librte_eal/rte_eal_version.map | 7 + 6 files changed, 627 insertions(+), 101 deletions(-)
FWIW: Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com> Thanks, Maxime