From patchwork Mon Jul 5 08:40:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ding, Xuan" X-Patchwork-Id: 95277 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 75829A0A0C; Mon, 5 Jul 2021 10:47:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E70A040141; Mon, 5 Jul 2021 10:47:24 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 882084003C for ; Mon, 5 Jul 2021 10:47:22 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10035"; a="270069216" X-IronPort-AV: E=Sophos;i="5.83,325,1616482800"; d="scan'208";a="270069216" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2021 01:47:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,325,1616482800"; d="scan'208";a="496049956" Received: from dpdk-xuanding-dev2.sh.intel.com ([10.67.119.115]) by fmsmga002.fm.intel.com with ESMTP; 05 Jul 2021 01:47:06 -0700 From: Xuan Ding To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, sunil.pai.g@intel.com, bruce.richardson@intel.com, harry.van.haaren@intel.com, yong.liu@intel.com, wenwux.ma@intel.com, Xuan Ding Date: Mon, 5 Jul 2021 08:40:24 +0000 Message-Id: <20210705084026.99898-1-xuan.ding@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210531150629.35020-1-xuan.ding@intel.com> References: <20210531150629.35020-1-xuan.ding@intel.com> Subject: [dpdk-dev] [PATCH v5 0/2] vhost: add IOMMU support in async data path X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch series expands the capability of DMA devices to use IOMMU. When application informs the library the DMA device is bound to vfio, the IOMMU will be programmed for guest memory. v5: * Fixed a coding style issue. v4: * Added the compatibility with IOVA_AS_PA. * Revised the commit log that the IOMMU capability is added for DMA * device. * Changed single patch to patchset, added a new flag parsing in example. v3: * Fixed some typos. v2: * Fixed a format issue. * Added the dma unmap logic when device is closed. Xuan Ding (2): vhost: enable IOMMU for async vhost example/vhost: add dma vfio parsing doc/guides/prog_guide/vhost_lib.rst | 9 ++++++ doc/guides/sample_app_ug/vhost.rst | 7 +++++ examples/vhost/main.c | 16 +++++++++- lib/vhost/rte_vhost.h | 1 + lib/vhost/socket.c | 9 ++++++ lib/vhost/vhost.h | 1 + lib/vhost/vhost_user.c | 46 ++++++++++++++++++++++++++++- 7 files changed, 87 insertions(+), 2 deletions(-)