Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1700185pxk; Tue, 1 Sep 2020 05:50:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL8M3nxvkbN70+VI+Gzry3U1CM7J9UTfDbzqppNw6d84rBTgP7q4W+XoodyrlHzLS80PSv X-Received: by 2002:a05:6402:6c1:: with SMTP id n1mr1619170edy.215.1598964636080; Tue, 01 Sep 2020 05:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598964636; cv=none; d=google.com; s=arc-20160816; b=d7TQbtGmpKXdCaIh9+r3v0Q+F2EW3KXKKvVsZjsOIHqY9Izokco3SyJO+O6djgOwlo 6ez4tOfXhso0SokQFSGH5IKTspiNFjoHBzsQRYFUS1JgfVFOTc1cGY0SfnqukMWLrTeT icplkrZB8QnGcbUELBfwI+x67k2K3veaJMdUEp+TnkMPCVhOYGWMMSl1mOGg0ZQLL3Wm Sdt7Q285SD+npOxVd/ClT3KTYtHI3B93jqPg+8eMuKgFsYNZrdFZPVfmOxwnOANT8dm+ I+z+2Gp5CNMd/XBb0BjBUIR3p7R6VPDeDqu9usBLkvjGHYBMiL88NPrBYRkOMOJNgVfU OvVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=t7dNeGuWIvKZo+jPJEiPq4zhWQPMQoa9x+tEPJpCAc4=; b=kH4KMfdbIO54vT2U98va1gnpe8FpI0KB/uV8iTo6i53OXK/LiyRrb/CfS7kJkp2ogB 2SM5hP8ESmi/xnPE41jDunEjybgkmhEy/WwlOtNF+vy6DmdoMUzLkr+fqBxSGPyB0P+D kKxNHNVBD8yGFk5yZs1pjfRZIhj1QHWf5k180eiYSFo9RZnvJaX0clDqE+24ogC35jNn z+lnmR1uKggvHoKTEUNfQfqrJvMUO4Mn1v3qco0wFAYTwllPWjTbp2GCd6jzx83HSBFD 38jTLCFTNJeR781gcaUFe9CFJ9B1C5aMnTO8NCiT3/y5RcjZqEcH4f9QM/vyPjX7cb42 gz5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c5si574387ejs.330.2020.09.01.05.50.12; Tue, 01 Sep 2020 05:50:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728089AbgIAMsb (ORCPT + 99 others); Tue, 1 Sep 2020 08:48:31 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:3496 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727991AbgIAMKN (ORCPT ); Tue, 1 Sep 2020 08:10:13 -0400 Received: from dggeml406-hub.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id 89EA5ACF72CEEA37BECC; Tue, 1 Sep 2020 20:10:06 +0800 (CST) Received: from DGGEML524-MBX.china.huawei.com ([169.254.1.71]) by dggeml406-hub.china.huawei.com ([10.3.17.50]) with mapi id 14.03.0487.000; Tue, 1 Sep 2020 20:09:58 +0800 From: "Maoming (maoming, Cloud Infrastructure Service Product Dept.)" To: Hugh Dickins CC: Matthew Wilcox , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "alex.williamson@redhat.com" , "cohuck@redhat.com" , "Zhoujian (jay)" , "Huangweidong (C)" , "peterx@redhat.com" , "aarcange@redhat.com" , wangyunjian Subject: =?gb2312?B?tPC4tDogW1BBVENIIFYzXSB2ZmlvIGRtYV9tYXAvdW5tYXA6IG9wdGltaXpl?= =?gb2312?Q?d_for_hugetlbfs_pages?= Thread-Topic: [PATCH V3] vfio dma_map/unmap: optimized for hugetlbfs pages Thread-Index: AQHWfR1kmRi9Q8RQ4keHVlEcbZc2qalRRsGAgAIMtzA= Date: Tue, 1 Sep 2020 12:09:58 +0000 Message-ID: <8B561EC9A4D13649A62CF60D3A8E8CB28C2DC466@dggeml524-mbx.china.huawei.com> References: <20200828092649.853-1-maoming.maoming@huawei.com> In-Reply-To: Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.151.129] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IA0KPiA+IEluIHRoZSBvcmlnaW5hbCBwcm9jZXNzIG9mIGRtYV9tYXAvdW5tYXAgcGFnZXMg Zm9yIFZGSU8tZGV2aWNlcywgdG8NCj4gPiBtYWtlIHN1cmUgdGhlIHBhZ2VzIGFyZSBjb250aWd1 b3VzLCB3ZSBoYXZlIHRvIGNoZWNrIHRoZW0gb25lIGJ5IG9uZS4NCj4gPiBBcyBhIHJlc3VsdCwg ZG1hX21hcC91bm1hcCBjb3VsZCBzcGVuZCBhIGxvbmcgdGltZS4NCj4gPiBVc2luZyB0aGUgaHVn ZXRsYiBwYWdlcywgd2UgY2FuIGF2b2lkIHRoaXMgcHJvYmxlbS4NCj4gPiBBbGwgcGFnZXMgaW4g aHVnZXRsYiBwYWdlcyBhcmUgY29udGlndW91cy5BbmQgdGhlIGh1Z2V0bGIgcGFnZSBzaG91bGQN Cj4gPiBub3QgYmUgc3BsaXQuU28gd2UgY2FuIGRlbGV0ZSB0aGUgZm9yIGxvb3BzLg0KPiANCj4g SSB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