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 6F547A0C4D; Wed, 13 Oct 2021 08:57:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 61B0B41158; Wed, 13 Oct 2021 08:57:36 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 5F64140142 for ; Wed, 13 Oct 2021 08:57:34 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10135"; a="214514732" X-IronPort-AV: E=Sophos;i="5.85,369,1624345200"; d="scan'208";a="214514732" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2021 23:57:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,369,1624345200"; d="scan'208";a="480675198" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga007.jf.intel.com with ESMTP; 12 Oct 2021 23:57:33 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 12 Oct 2021 23:57:32 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 12 Oct 2021 23:57:32 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Tue, 12 Oct 2021 23:57:32 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.175) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Tue, 12 Oct 2021 23:57:31 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UEFLTudWFJJGmGvPzwmJcR+Qpb1JUCA4XIIg43gJ5x2JVUHs2ZZUKGOn16E2374cyrLKwd3lLPhoDhQWOMhnnlbUSbxjndWryieSoP0qax/kydekPsFwYbm6XL3GEmAO7wA9VKsT2BGGKXFf/YLWzhrMIkdhPk2UyPBxsWjXHEOwuEiZ6JrApBxVEjB6Edvrbnhciq3vUpO0aUNVwrm9stFX1qI2g/WtvrYe8tCAiRNKBGhAHqHNUdd+65BH2YzuauCkwBEmvDcmCTRWQgPUnIPzm1erm7vPvIXHePmuU5Zi+npq2mjlLixBay2jl4eohVvofuUtYYtOj7HeeyPu+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=t8G5892/ESaBXPb3GciJmRdFUgG0QEnIbWF52dVkhxk=; b=Yif1JfLzC/LeVV+slV03lbo6/LOM+FXSH/o0aTwkvFdkolGVm2KvdP4/Z86JK1SHpvqodD33P1txndNl15yK60hmSkOAwK9008olHPm4OvLAUXAoWW0Fc2RyP6PkNf90t8p0FYP0v4Sml4nBPdHLyhvIp5T2A9Zv0lMQmIKAermYtZnVHK2Ek4Owb5kDBLXrG6jCQK8NGbzdZZT3Pu1RkPKAiY+Osfqz3/e8JgUFU7G5XwvMRmL3miZGPKeWRn8QTTVa0mi5zzBo3SVtf4/0IZys61WV3Z57jvnEzr1jDFjeYSaf69R8Epe5GmbK2No9xmQfXgXb3GvOASx3uf29ag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t8G5892/ESaBXPb3GciJmRdFUgG0QEnIbWF52dVkhxk=; b=adIbOZ/2Sarf9ApFwqJbY4b4x6s0TrHqDjxOedCajDLrUQy5PY67Lcew7FwuAPPcegZBsJeBZlwl2mcUPGKNRH2NTOaBf8EipBdSzGlqDPIxG+WZzUmfoK/W/TVhymRY1s8DDesnCL42i8bJaRBYI20wXhPHYI+7gNY/ocljDnY= Received: from DM6PR11MB3771.namprd11.prod.outlook.com (2603:10b6:5:13f::15) by DM6PR11MB4011.namprd11.prod.outlook.com (2603:10b6:5:19d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.20; Wed, 13 Oct 2021 06:57:29 +0000 Received: from DM6PR11MB3771.namprd11.prod.outlook.com ([fe80::ac5b:17ce:f5a5:4ee]) by DM6PR11MB3771.namprd11.prod.outlook.com ([fe80::ac5b:17ce:f5a5:4ee%5]) with mapi id 15.20.4587.026; Wed, 13 Oct 2021 06:57:29 +0000 From: "Yang, YvonneX" To: "Ding, Xuan" , "dev@dpdk.org" , "Burakov, Anatoly" , "maxime.coquelin@redhat.com" , "Xia, Chenbo" CC: "Hu, Jiayu" , "Jiang, Cheng1" , "Richardson, Bruce" , "Pai G, Sunil" , "Wang, Yinan" Thread-Topic: [PATCH v7 2/2] vhost: enable IOMMU for async vhost Thread-Index: AQHXvndZMAKH2C+fjkyyk3wlkkgCTavQgi3Q Date: Wed, 13 Oct 2021 06:57:29 +0000 Message-ID: References: <20210901053044.109901-1-xuan.ding@intel.com> <20211011075942.38180-1-xuan.ding@intel.com> <20211011075942.38180-3-xuan.ding@intel.com> In-Reply-To: <20211011075942.38180-3-xuan.ding@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e3c237ac-cf29-4a0f-f9df-08d98e16b93e x-ms-traffictypediagnostic: DM6PR11MB4011: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bt0gP3JrjunMmt5c2z4dXY0ibs8HnZo7/Rem4CMH2YrFwWyIcVFjbM0Zt+84E3ACtdfCOgO1Wj6K8Wc06Pac737UfaLgOelbcS+RsEJ+84/FwlyBFx/hmZhT+G6H++MGHsW7rrVUnzUp5W4Kz3GfAEsgG6jwbr4uCY5wHIXLCEol1qEeHSdqlMe7j1Ft3NTbHuGIsNvHuolyZ4iygHgregg8XDjWS8oW+pgE47oEvZc3XPXByv/h4AOXSsDkL1eQVZRy20sqlLYePrf6P5MkqWdPnZ15G6zGJBxi56z1PxPl9zBqcvGa0nbsC6wR/rTlpkkFmSdP2COW6wNayfAPn3znpjIIGvMCmf0APBUFR5G6+Ycbti7Klx86EWuWJUZmq6TR72Yw58LKDcOVZpy64hZXErylSXxhnhATV5/n5oYa1Tv4TQAj9j6XtcqkeSQ/VBXZDRFQTl7jZcUKHBjAaaUN2DeftGxOIGWSe0IU69bHydDHjjAiwKtwceDbEzIerFoN4JmHEB0/RqhSpT/WZ7Cjh3ZIgaMyNofj2JIRjjFGQ0cegYPWKplLrbgNz5e88kqZbJkkLM8PuuEtbbphBgd919htt8t9uuisRoonDAkbqcfF+U3+RwfQfHXrkQSltHyR84i+0EN6EX3CCPkMsFQBzw5yNifmvsoCQ3RdgaxmoB7wXuU5oIVG/fO+umzWKINQ7F2IE3pE8A+OFa4SYA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3771.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(316002)(38070700005)(66446008)(64756008)(5660300002)(4744005)(2906002)(6636002)(38100700002)(52536014)(122000001)(54906003)(110136005)(83380400001)(33656002)(7696005)(26005)(508600001)(107886003)(86362001)(66556008)(8676002)(8936002)(186003)(4326008)(53546011)(55016002)(9686003)(82960400001)(76116006)(71200400001)(6506007)(66476007)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?WXxe/lxyijbhqbfTJEJnsKDUTnjOfH2ybtoeA8a02baiggSohy9a025+U06v?= =?us-ascii?Q?DUvwt9MeErYVKBJqU4/UPQnMQvrsskrY86ucEmlFDD6DatpYMFQ5H7SvTlNA?= =?us-ascii?Q?AcYDLreIEDuooBm46i/3CCd+DIHMNe+JNPK9GZfPkdVF4pWugQESI4gfKp7y?= =?us-ascii?Q?2BE0FZg9HEXvPQVNa4tNfTxPGrLMHz0y4SvcqGeKrVXGQlTE6AtdV/QNjLn/?= =?us-ascii?Q?pUmTjgWoSl2r3c9cl8MrJYYD2qBuDMk5mVwbsjvFGnn2+pnt4UejTynytP1S?= =?us-ascii?Q?YCm+zb/3CDReuBnnqLzmHQfku6OZFZXUoToHD9c0ILxzIdmgSNPNBz2wVjPS?= =?us-ascii?Q?1+8GRQD2Udll/4LbPiSG9VEqWuhb/7p+4hy3PoZ7LpEw1oFJDVo0uNLXBe0h?= =?us-ascii?Q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VuNxTDAxiKDou9ftS4/PKKZLMH?= =?us-ascii?Q?z9k=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3771.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3c237ac-cf29-4a0f-f9df-08d98e16b93e X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2021 06:57:29.6563 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YktGbAyoglztrR+2Pd+CQG4IJU79W9PIbZ1kMNOBc+/jYzvUbuu1Bo1wLgBskQ5SZnas0nbw4LY+ut6e9d/c3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4011 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v7 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: Monday, October 11, 2021 4:00 PM > 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 v7 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 > --- Tested-by: Yvonne Yang