From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B5B7C432BE for ; Wed, 1 Sep 2021 05:42:11 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id 1A4556108E for ; Wed, 1 Sep 2021 05:42:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1A4556108E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dpdk.org Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 45B894013F; Wed, 1 Sep 2021 07:42:10 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 040F740041 for ; Wed, 1 Sep 2021 07:42:08 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10093"; a="205764404" X-IronPort-AV: E=Sophos;i="5.84,368,1620716400"; d="scan'208";a="205764404" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 22:42:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,368,1620716400"; d="scan'208";a="498576814" Received: from dpdk-xuanding-dev2.sh.intel.com ([10.67.119.115]) by fmsmga008.fm.intel.com with ESMTP; 31 Aug 2021 22:42:05 -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, bruce.richardson@intel.com, sunil.pai.g@intel.com, Xuan Ding Date: Wed, 1 Sep 2021 05:30:42 +0000 Message-Id: <20210901053044.109901-1-xuan.ding@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH 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 adds support for DMA device to use vfio. The first patch is to extend current vfio dma mapping API to allow partial unmapping for adjacent memory if the platform does not support partial unmapping. 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_user.c | 46 +++++- 2 files changed, 273 insertions(+), 111 deletions(-) -- 2.17.1