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 4E466A0C46; Tue, 31 Aug 2021 15:47:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 181B840141; Tue, 31 Aug 2021 15:47:02 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id BDAB74013F for ; Tue, 31 Aug 2021 15:47:00 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10093"; a="304048116" X-IronPort-AV: E=Sophos;i="5.84,366,1620716400"; d="scan'208";a="304048116" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 06:46:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,366,1620716400"; d="scan'208";a="577130551" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by orsmga004.jf.intel.com with ESMTP; 31 Aug 2021 06:46:55 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) 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.10; Tue, 31 Aug 2021 06:46:54 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Tue, 31 Aug 2021 06:46:54 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.100) 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.10; Tue, 31 Aug 2021 06:46:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bk3x5Dnc/3Pan1x2S7W5vLxwssMegWAZIhWQhmWWoO3BeIKMuTgHrf3BxblZjGDyVecoSR/3dx5EK7kQi7UuhFymUrdj0phibbIcrF4vES/7ZuyrssiWLF2r0kjkQcIotUBIB8osH1jwuhhsK3xI2u2YVaQUGNGoq6xy9Lvd6UDwKh+Rngdj8Ghspw+U8kMnne9SI/hSD0+JMBXiKz1BEkhPG7m3qkitXM5srfuUk5HfVavXgmwx9NVGp0vxRECmmwOxdM05qQ1TuA/JA5W0Rf5sg9aUIoSYBCKgaQmnVyHgVbKQcwhGZS2JjkH3IbIKPiN3ctgrRHWp6fR4CpoLJQ== 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=/tMURaMq9DquDIlyZkH0zk1uACp4eJwefZ79rabBWNM=; b=klaQq2qxF0p4molWHjoWkzzTFiNJgLycrHbLyyHnkEHPrVBRua/SkfcGdQFgfltTG1aVydMVB5k+YSs3aF8VZU1z60UqmjecpcxiCqWyq8R3T3DOclipdtB5bK8PoCewwJwPZMouF+TUUfwt/r8x3a3FY0LrD6GfT2BS52tyMllJcbXVTLbwlL6Zjf6FnrVWu08ZB31p2nkqDygOY4IpK3fF6UjOYtnspdM/qicLfGrRycE9aljfrPs0bVefkvF+E2sj1H6JMt+Cg3YsY7qELMYaeY/38HSe+46ofY1chK7ZnrEPHufiD6f31OnE+t5fQ71RmGvPf6P3At1Q7pHCBA== 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=/tMURaMq9DquDIlyZkH0zk1uACp4eJwefZ79rabBWNM=; b=j8VK5uJKv0p39hERAgtIP00flZp1Arbn1PrRqUaOonRQOgYiQntywR0YXjQdikqfcmiBtQFClVifJFFufjVfOrfpK7Fg/9plUvPsupVcJucVFlJf3jd37DS+lKONj3MAPMt41zq+oreLHiKNPeA2VUb2zd9BH3sorEzcErz+fUA= 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 PH0PR11MB5046.namprd11.prod.outlook.com (2603:10b6:510:3b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.17; Tue, 31 Aug 2021 13:46:51 +0000 Received: from PH0PR11MB5093.namprd11.prod.outlook.com ([fe80::d145:710a:1bac:7e91]) by PH0PR11MB5093.namprd11.prod.outlook.com ([fe80::d145:710a:1bac:7e91%7]) with mapi id 15.20.4457.024; Tue, 31 Aug 2021 13:46:51 +0000 To: Xuan Ding , CC: , , , , References: <20210831131039.29964-1-xuan.ding@intel.com> From: "Burakov, Anatoly" Message-ID: <5f8b8736-f006-828e-b665-4253aa0a6740@intel.com> Date: Tue, 31 Aug 2021 14:46:46 +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: <20210831131039.29964-1-xuan.ding@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB6PR07CA0194.eurprd07.prod.outlook.com (2603:10a6:6:42::24) To PH0PR11MB5093.namprd11.prod.outlook.com (2603:10b6:510:3e::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.12] (212.17.34.161) by DB6PR07CA0194.eurprd07.prod.outlook.com (2603:10a6:6:42::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.9 via Frontend Transport; Tue, 31 Aug 2021 13:46:50 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 605b54c4-2653-4adc-30e3-08d96c85c96c X-MS-TrafficTypeDiagnostic: PH0PR11MB5046: 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:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7zPqiie7T7cPMLlh474AGf+ScmtA/zgS75kiv3lKIkZUbrctl7/oRghO3YimHXAOQDR8sYXnqCew7vNvSjQmjz+zUDtzMFmYmTjuFGlZB8yQTIRr8PEiat7A6W6pqZZeie4w5+kUHx1MwMJ8Hoxs3qIaLonSi4B/6ZqIT00e9A0Vc/SfnN2uthUEH0YDr7RwVlDlTlOH4aCxTRlfh8FAWApLlXCL85zCBUi0E9C8/461O8Z+HZruSTcuj0DXmBLi/AdGZXpF7/RKpNUN8+oB75UVpfLW24+gmtczr3z4XDS1rqAHckReY9HyuwoNe3BE7G9cc+pkETuxUxLmtQH+Gr+Exw8BEvUiE4ErLcoaPnXw1/DGMiNk4yU8CzLih/k+dkhxzMueG5M9qzBXZNlvcGHKtWR5XEh8nBlfjyp0zoAvB5VqtS4IeFr73QwKAaTffyxKzpIP4I80EgEgQ6XA/oGtSPj1lgya+F/PGMpoVEKKoVcBfaUSQnvstJRlB/UqGtcWKwl/ujjh2qS/WDc5UlSx3Q+S2MRqcvvdQIRenDnJHnbJxaYBuR8X7ogUkr/WUL6lafS8phy+rbaReHm4EKW8W+EQ4sfy7Eo88lA7rfD9nZnOdFZW0DJFVckF8HFNiuk26L6JMk36TiLBBP/sRe6KIbLR0KUz+i5R0U8XhHOmdMFWnvXMVuj6V5/ORckr+y0tV3suNtOU4qy0vXxlvWNJv4ZOadRb27CAp0xgTVMpdakfz/fmWTGJ67GIXgKwWudryXH/CbNWt5an93MQ7oeiKmhP1+IbcgpCO6cqSw8CIXc61VLx3ve7c8h+vaVE 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)(366004)(86362001)(966005)(16576012)(31696002)(316002)(4326008)(508600001)(8676002)(2616005)(956004)(2906002)(8936002)(36756003)(6486002)(83380400001)(31686004)(53546011)(26005)(66946007)(5660300002)(66556008)(186003)(107886003)(38100700002)(6666004)(66476007)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T1lBaWtCcFFBQ0h1NkdvTU9tLzQzUnpCM0ovbUFzTXJVYWlFY0dDMktxTkxh?= =?utf-8?B?SW45NVErVzlDSXlncWxpalpwakNSL09RRGszWG9nR2hwcHNlZVZPbm40NDJt?= =?utf-8?B?RFVjU0RiQjVTdEQ2dDVSaHFlMXoxNHNhL0QyL1FhK0lYNE4wWGxrUnExQ1c3?= =?utf-8?B?NHpPNjhwYkFuVHpaWnRXbGhyOE1qZGg0NHJKWVNYQmp3L1l4ZC9CdUdrd2FQ?= =?utf-8?B?RG9wcGF0d2tmYUhqNmRNZHU1S2h6UWhLTEdzWm83K0p0TXBndEx0Ync5RDBF?= =?utf-8?B?cHdzMzB2UnJTS2dsc3drMnBMWkptTlhzQ1QrM2JTb0czbzY4TTlaM3ppc05a?= =?utf-8?B?bnkrYW5xWXRyZWRWUGJhb2Z5YS9QOGt2eG5sU3RESVVBTGMzRW4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2OTVKSEE5QXVyRnEvWVpFcHU3bDJKY0pWVTd6?= =?utf-8?B?ZW5HazdXMFMyU0JDQmZrSDVtSjdDdmtpVnBQSngwVXBuajJadW5vN2hLY1pQ?= =?utf-8?B?N3BzN2x3UzRieXk2RWF4a1FqMUFMV1JyQXU1WjhENFVENER1b0FRckRyblIz?= =?utf-8?B?Vmd4TGxkWkptRXRnSUloRU5RWGVBSDhRUkRtTThZblZhZ241b2laMTlNZStJ?= =?utf-8?B?M0JUcXVUSDVJTXdUU1Jnb2E2RC94aEM5LzhBNFdlZlhVRmY1MTJBMS8zTkgz?= =?utf-8?B?eVM5Z1d4b0ZjVU11Q2NrTXk2VG4ybWN5ejcwTkdrRnJURnRNL2t3VkxxUlM1?= =?utf-8?B?UlhjK21zeGN0ZkN3Z2xTK0FwWWNuN3VwOC9pWHl2aHRxamxRcTlGSnI4Q0xC?= =?utf-8?B?bjVERWNhRTdpbkZaR1YxQnM0MFplbExMNVc2ZllNMVJNdWZzRVRLNVNkWlV5?= =?utf-8?Q?1IcgUMcwiIScBkYCF+gVzzSF35BLPObNQwF40A2?= X-MS-Exchange-CrossTenant-Network-Message-Id: 605b54c4-2653-4adc-30e3-08d96c85c96c X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5093.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2021 13:46:51.6969 (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: U7o0Jmtmg3/+ewKPW+R4n+UT0OkCka/TgY5ubRuJFsgHuS9luRV6DcUc08fRfV0Q1K7HhdFou0nKOD+/FOhBs94BJ2HzJPDg9+IxBfhmLJg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5046 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] doc: announce change in vfio dma mapping 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 31-Aug-21 2:10 PM, Xuan Ding wrote: > Currently, the VFIO subsystem will compact adjacent DMA regions for the > purposes of saving space in the internal list of mappings. This has a > side effect of compacting two separate mappings that just happen to be > adjacent in memory. Since VFIO implementation on IA platforms also does > not allow partial unmapping of memory mapped for DMA, the current DPDK > VFIO implementation will prevent unmapping of accidentally adjacent > maps even though it could have been unmapped [1]. > > The proper fix for this issue is to change the VFIO DMA mapping API to > also include page size, and always map memory page-by-page. > > [1] https://mails.dpdk.org/archives/dev/2021-July/213493.html > > Signed-off-by: Xuan Ding > --- > doc/guides/rel_notes/deprecation.rst | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst > index 76a4abfd6b..1234420caf 100644 > --- a/doc/guides/rel_notes/deprecation.rst > +++ b/doc/guides/rel_notes/deprecation.rst > @@ -287,3 +287,6 @@ Deprecation Notices > reserved bytes to 2 (from 3), and use 1 byte to indicate warnings and other > information from the crypto/security operation. This field will be used to > communicate events such as soft expiry with IPsec in lookaside mode. > + > +* vfio: the functions `rte_vfio_container_dma_map` will be amended to > + include page size. This change is targeted for DPDK 22.02. > Acked-by: Anatoly Burakov -- Thanks, Anatoly