From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D5C54A0C4C; Sat, 25 Sep 2021 12:11:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5A29B4003D; Sat, 25 Sep 2021 12:11:29 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 990224003C for ; Sat, 25 Sep 2021 12:11:27 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10117"; a="204407007" X-IronPort-AV: E=Sophos;i="5.85,321,1624345200"; d="scan'208";a="204407007" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2021 03:11:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,321,1624345200"; d="scan'208";a="475429142" Received: from dpdk-xuanding-dev2.sh.intel.com ([10.67.119.250]) by orsmga007.jf.intel.com with ESMTP; 25 Sep 2021 03:11:23 -0700 From: Xuan Ding To: dev@dpdk.org, anatoly.burakov@intel.com, maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: jiayu.hu@intel.com, cheng1.jiang@intel.com, bruce.richardson@intel.com, sunil.pai.g@intel.com, yinan.wang@intel.com, yvonnex.yang@intel.com, Xuan Ding Date: Sat, 25 Sep 2021 10:03:56 +0000 Message-Id: <20210925100358.61995-1-xuan.ding@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210901053044.109901-1-xuan.ding@intel.com> References: <20210901053044.109901-1-xuan.ding@intel.com> Subject: [dpdk-dev] [PATCH v3 0/2] support IOMMU for DMA device 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 series supports DMA device to use vfio in async vhost. The first patch extends the capability of current vfio dma mapping API to allow partial unmapping for adjacent memory if the platform does not support partial unmapping. The second patch involves the IOMMU programming for guest memory in async vhost. v3: * Move the async_map_status flag to virtio_net structure to avoid ABI breaking. v2: * Add rte_errno filtering for some devices bound in the kernel driver. * Add a flag to check the status of region mapping. * Fix one typo. Xuan Ding (2): vfio: allow partially unmapping adjacent memory vhost: enable IOMMU for async vhost lib/eal/linux/eal_vfio.c | 338 ++++++++++++++++++++++++++------------- lib/vhost/vhost.h | 4 + lib/vhost/vhost_user.c | 112 ++++++++++++- 3 files changed, 342 insertions(+), 112 deletions(-) -- 2.17.1