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 3A7B2A0547; Fri, 10 Sep 2021 14:33:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED4C64115B; Fri, 10 Sep 2021 14:31:21 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id DB07240DF7 for ; Fri, 10 Sep 2021 14:31:20 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="200591009" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="200591009" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2021 05:31:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="607392657" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by fmsmga001.fm.intel.com with ESMTP; 10 Sep 2021 05:31:19 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 10 Sep 2021 05:31:18 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 10 Sep 2021 05:31:18 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Fri, 10 Sep 2021 05:31:18 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.106) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Fri, 10 Sep 2021 05:31:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B/N3TRcE6qrG8w1cstzXJZ+BEvC5svAIu/OsIZmy4BLoF0oFbUNEyCIgRIUKAu7NLDcwnAF8+QqGW6w+XpmhNCwBSCUTxq4qkZroyHMRerA5gAfEwhhRTPANukyHJnEp9SNivVIn6NMrKVcSQZaAECRw0/X9dVUEAlyGrBhJrVRgNB6O7+feXuANDkejC+EdEEvuxCcw2PJPv2gMFFhUy3Omlfeyymr9VPj9ZMNXdRoygS/TJtBe/JEXysRf+PHyT4fsuoRzMiIJbNLYd7mXz/STEnMiiGwFQv6ncuaOZ3BCUMTzeePqnMYvvOtv4k7s0SDTtHRuovl8m2UdjoqwiA== 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; bh=0AmU49l5AudGjr19aXqZilhtuJKe6RDIPhvGy0klq/A=; b=TXyDTKGGuY1WocV1mReQ4zDs9yU+SkCBlKOHF7ZJ9Zp3VOe6/+GmyF5kdPSKoqK0u2ysOcm1R5ZcYlYYZRsv/NyJ283X6zjwyvpiW1EUdUGUraSaEtkEloibrj7KZXlE3yZpQpEgPaol9zAYtCPs5xEo3H2HTGQ74pUO0caMn4LAHufzTB2NeTlvefHQWmnygHIhdQybvl/imzeamwnltiHptynprOJ/74DqGnV2+1ev3KL/c11Y7a9LdPPY7LVkDaiHugXNqGXGtEfJ1haHfguW4pHvaxPwqrCTEOKnkNgF+XAdF1QL52PnSAjlT+7PY50sElYuRH+TkcVQh9r9HQ== 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=0AmU49l5AudGjr19aXqZilhtuJKe6RDIPhvGy0klq/A=; b=F5RsL5tXwrNmANbDkQzvlFEigOapcHPab3zCTWTe6raWieLsYnYtE8Jx2HkJ5vxTUoshGMCzD/VQ7P8r8PkiZhV1hOdomxoZkbUe/nEj6Au0meRf4F/m4AP8WpIM+uknWe6gNkXZLl5UagHfAd8XJzZ60DhHx7InFBwCTGP9oc8= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5093.namprd11.prod.outlook.com (2603:10b6:510:3e::23) by PH0PR11MB5157.namprd11.prod.outlook.com (2603:10b6:510:3d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.16; Fri, 10 Sep 2021 12:31:16 +0000 Received: from PH0PR11MB5093.namprd11.prod.outlook.com ([fe80::d145:710a:1bac:7e91]) by PH0PR11MB5093.namprd11.prod.outlook.com ([fe80::d145:710a:1bac:7e91%9]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 12:31:16 +0000 From: "Burakov, Anatoly" To: , Bruce Richardson , "Ray Kinsella" , Dmitry Kozlyuk , Narcisa Ana Maria Vasile , Dmitry Malloy , Pallavi Kadam CC: , References: <043fc2d53770da8248b9cd0214775f9d41f2e0fb.1631273229.git.anatoly.burakov@intel.com> Message-ID: <90bf1977-4828-3992-531a-1bd3591f200d@intel.com> Date: Fri, 10 Sep 2021 13:31:10 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 In-Reply-To: <043fc2d53770da8248b9cd0214775f9d41f2e0fb.1631273229.git.anatoly.burakov@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB3PR06CA0028.eurprd06.prod.outlook.com (2603:10a6:8:1::41) To PH0PR11MB5093.namprd11.prod.outlook.com (2603:10b6:510:3e::23) MIME-Version: 1.0 Received: from [192.168.1.10] (212.17.34.161) by DB3PR06CA0028.eurprd06.prod.outlook.com (2603:10a6:8:1::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Fri, 10 Sep 2021 12:31:14 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 47a0774b-acf1-4359-301b-08d97456e252 X-MS-TrafficTypeDiagnostic: PH0PR11MB5157: 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:3276; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6MSpKXDX0dKCnXmWshiH+O9q7ey5561Pf6YzFNU+joV53INjVzE3Mdm65slPRD/KMNcBl6nYiIZgwYCSlLdHnqqs6OA0efczN9lqRvpIbNb5yvjYvBvgRVIOlbfCFaKlwH2VVim76xc6WkUPz2XdhGv5usqZhFIZLTgxNxKon4kMQVgEj313IyWIj35ouAZsLikZPyDxBNjnQHcDPIPpBXsQMiUZGVM1kzsRj0Q4osXpDBAfbDF1qH6AVBSnNtS6ubfrZRaQu1v7ivphbS2aFD2C0jWTYdJn81MKw86sXsPE2Pz39Zs6zRxzVJttWartWIlN0IH196FLJDqUdF2TGFjTBc0xFR1E6hM/0SGkoDCw7Pd7L7gX99kyZURqcK35IVFygoAR40qzOmGJ/Qp2s4Q53HC+l3jfJc9J6pVrbWwUpDQap3ccsM5oCf+I8+YA3/Et0RPc8KAw/CTMLJ6RtMrAcEUlBc+Vm7KjF40C1UQHgX4ROhsBymgMt2LB5eL+5u2ZNgUJEqY39ct9hUdGaUS7XtOq8NB/q3ElJgNU7ZAtqnF+onJFW0Je/HCJvrTvonoJhuVBp4rRPIFvmijFhOnZD5vk5ykTUmQTqISfGZ1SEVQRGa3TBMbKW7yjix6u7ou4zmCCofEN1cWl7HsIwmQ/gDRVxq0P7fY+vPl/KzsGKYKHGdFFiO150JlX/fZHbnnSV/doKP7IaoftUcPLtWZCd7BRCdFxQOGpT65kPJe9kobaC2iJ/gCEiVKKaWk4+tr/OzakOcn+elNkG0FSe65xi3YvxQoNiHw89aSjF0en9kwLxQB3Jyo0sPnRtL1eoOaguUXEluo5YOB5swCIhg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5093.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(346002)(39860400002)(366004)(376002)(31696002)(6636002)(107886003)(31686004)(86362001)(66946007)(8936002)(66476007)(66556008)(6486002)(478600001)(38100700002)(966005)(26005)(956004)(36756003)(53546011)(186003)(2616005)(16576012)(110136005)(2906002)(8676002)(5660300002)(4326008)(6666004)(4744005)(316002)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cmNDeFhEb2Z1cm5BSS9WMUcxZnA3cnZSaFhlUWVOV0M0dUNtVHRWQytKc0NY?= =?utf-8?B?dmpFUm5aWDBIZ0c3UVZwUXQzbFZqcWc0VUFwbGp0YWtWb1JuL1o0dXE3Znoz?= =?utf-8?B?d1BSc20zNFQ4NTBWVVBm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UVFBbWZaVnF5eUVraDRZdHF3MzcxQkFpYjdvamV0NnUwNW5tRU1Yei80R2da?= =?utf-8?B?QWh0RXVxZVU2NFg4eFBlb2g1VzdLRklESkJkNFV2dDM1ajlWMkFwRjV4LzBV?= =?utf-8?B?ZnF1WnBSOFl4UzMxOEYzTUh2cGdUSCt1WWdMc1lNOGtuWlF3b3UwVzRheWdo?= =?utf-8?B?T3dmU1phMTlwM09MNmFzN29HY2lsdjROcUxuN2R4K21oQnQ1T0o4bThTTm80?= =?utf-8?B?aVJwc2IzUHExeFNRcmxpWW9FRG1adEM0MCtUTVFpdHRhVHBNTUxnSkZnS0x5?= =?utf-8?B?b25rK1dGTXM1L0U1UVJkdGJvSUhmSU5qV3d1RXRWL0pEVkM1Qnk1b0JnYUF2?= =?utf-8?B?YWJrRDNDNGxQMjRBR2dKdzNSOU05T0tWVzhSQUV3dEY2elBDQ2kwZFFYTG5M?= =?utf-8?B?ZjlZcWVoZmFRSWZmU05YYjJIQ0RWZGFaYm1SdWhDNkM5SWo5MTZSdGl6YXFo?= =?utf-8?B?Y3ZvY3RlY3VUU1dIa2tpNXBkYzlkd2prSmVKaldpUlNvc2J3bi9pNlF2dGNj?= =?utf-8?B?SkhzREZpajhtd1dDYkdkM1oxa3M1SjhFRXFFaXNqRHBsV1VMcFN2cTVvVDZT?= =?utf-8?B?aUNTcGdpVSt4WU92ZDFIM3g5aU9LR09iczRsV1BPU1FQNVRwZ0FOU2VBZy9O?= =?utf-8?B?NzE3aklUMmtWaHhtMUczaVpXSUZFWFJVNC9IMGtEbEExUDg1dDlCbEd3MnJS?= =?utf-8?Q?EmTE/3+u7kwMiysTRf20Lg2y/pjT87xH/IWQaw4?= X-MS-Exchange-CrossTenant-Network-Message-Id: 47a0774b-acf1-4359-301b-08d97456e252 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5093.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 12:31:16.3787 (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: vKtZDgsXnXr7qSl0Wz5Jugj78HmXk6TN2vaF8aM/MCO9GUMtiU0+oxKl9sSMCVUoGUw5U4vxAp648IjAL7TaaGC5GySI65f2QGMsbNNC7+k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5157 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v1 1/1] vfio: add page-by-page mapping API 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" On 10-Sep-21 12:27 PM, Anatoly Burakov wrote: > Currently, there is no way to map memory for DMA in a way that allows > unmapping it partially later, because some IOMMU's do not support > partial unmapping. There is a workaround of mapping all of these > segments separately, but this is inconvenient and silly, so this > commit adds a proper API that does it. > > This commit relies on earlier infrastructure that was built out to > support "chunking", as the concept of "chunks" is essentially the same > as page size. > > Signed-off-by: Anatoly Burakov > --- This patch depends on Xuan's VFIO chunking patchset [1]. [1] http://patches.dpdk.org/project/dpdk/list/?series=18590 -- Thanks, Anatoly