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 66FFAA0C41; Thu, 30 Sep 2021 07:19:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 522A4410FA; Thu, 30 Sep 2021 07:19:22 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id E73A4410F6 for ; Thu, 30 Sep 2021 07:19:20 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10122"; a="310649860" X-IronPort-AV: E=Sophos;i="5.85,335,1624345200"; d="scan'208";a="310649860" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 22:19:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,335,1624345200"; d="scan'208";a="555444934" Received: from irsmsx605.ger.corp.intel.com ([163.33.146.138]) by FMSMGA003.fm.intel.com with ESMTP; 29 Sep 2021 22:19:19 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by IRSMSX605.ger.corp.intel.com (163.33.146.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 30 Sep 2021 06:19:17 +0100 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.2242.012; Thu, 30 Sep 2021 13:19:15 +0800 From: "Hu, Jiayu" To: "Ding, Xuan" , "dev@dpdk.org" , "Burakov, Anatoly" , "maxime.coquelin@redhat.com" , "Xia, Chenbo" CC: "Jiang, Cheng1" , "Richardson, Bruce" , "Pai G, Sunil" , "Wang, Yinan" , "Yang, YvonneX" Thread-Topic: [PATCH v6 2/2] vhost: enable IOMMU for async vhost Thread-Index: AQHXtNyfe5Aqmd3Ow0K6bTEBAJi7+Ku8C1cA Date: Thu, 30 Sep 2021 05:19:15 +0000 Message-ID: <98feb55fe5f14799bf377726ad8cd41f@intel.com> References: <20210901053044.109901-1-xuan.ding@intel.com> <20210929024127.15547-1-xuan.ding@intel.com> <20210929024127.15547-3-xuan.ding@intel.com> In-Reply-To: <20210929024127.15547-3-xuan.ding@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.200.16 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v6 2/2] vhost: enable IOMMU for async vhost 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" > -----Original Message----- > From: Ding, Xuan > Sent: Wednesday, September 29, 2021 10:41 AM > To: dev@dpdk.org; Burakov, Anatoly ; > maxime.coquelin@redhat.com; Xia, Chenbo > Cc: Hu, Jiayu ; Jiang, Cheng1 ; > Richardson, Bruce ; Pai G, Sunil > ; Wang, Yinan ; Yang, > YvonneX ; Ding, Xuan > Subject: [PATCH v6 2/2] vhost: enable IOMMU for async vhost >=20 > The use of IOMMU has many advantages, such as isolation and address > translation. This patch extends the capbility of DMA engine to use IOMMU = if > the DMA engine is bound to vfio. >=20 > When set memory table, the guest memory will be mapped into the default > container of DPDK. >=20 > Signed-off-by: Xuan Ding > --- > lib/vhost/vhost.h | 4 ++ > lib/vhost/vhost_user.c | 116 > ++++++++++++++++++++++++++++++++++++++++- > 2 files changed, 118 insertions(+), 2 deletions(-) Reviewed-by: Jiayu Hu