From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00088.outbound.protection.outlook.com [40.107.0.88]) by dpdk.org (Postfix) with ESMTP id 00F2C1B1F1 for ; Wed, 12 Dec 2018 11:48:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TLdXjt49b7UpTbEziIk8kFbtj0TC4Ururtrw4R7jSD4=; b=T0ZmbBS0ER9sDxYjTbvdR9JV0YVcviUPhW9Af1YbsuyCxz39NJRt5iKV8Srdobt7kFEj0KQtLZDqBgWBtgkNZB/tuMRrBChGXAAxEB/f/QNBEPlUu3ZMnrQofvNt/DvxSiofLczikapx0r35wzLoKtLYQTklugr+/2656jJaMSk= Received: from AM0PR08MB3409.eurprd08.prod.outlook.com (20.177.109.139) by AM0PR08MB3538.eurprd08.prod.outlook.com (20.177.109.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.19; Wed, 12 Dec 2018 10:48:42 +0000 Received: from AM0PR08MB3409.eurprd08.prod.outlook.com ([fe80::b0a9:5828:906a:c424]) by AM0PR08MB3409.eurprd08.prod.outlook.com ([fe80::b0a9:5828:906a:c424%5]) with mapi id 15.20.1404.026; Wed, 12 Dec 2018 10:48:42 +0000 From: "Tone Zhang (Arm Technology China)" To: "Burakov, Anatoly" , "dev@dpdk.org" CC: "Gavin Hu (Arm Technology China)" , Honnappa Nagarahalli , Steve Capper , nd Thread-Topic: [PATCH v3] pci_vfio: Support 64KB kernel page_size with vfio-pci driver Thread-Index: AQHUkH3iQarLXMqsakm+uSmmrk6KyqV67jJg Date: Wed, 12 Dec 2018 10:48:42 +0000 Message-ID: References: <1541743077-27994-1-git-send-email-tone.zhang@arm.com> <1542595044-27145-1-git-send-email-tone.zhang@arm.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tone.Zhang@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR08MB3538; 6:UDDfjAjtiM8M6WO1oNRmBmqGPtX0nZK7DCfvQ+cdvnPnYVRSz/K2ZramJs3a0gJ3mL72KXhjNRyTUKjf3YXNRGvxzONub2VTThFaSfGMsXSyUjce8xsOnBrH3HxdCgUYSl9cAW/DAZgGTyeqzoUynvkihpvgu7ZjHp/fKZ7w13AVyYOYh3gl1MpAs3Yk44dOVljO8SqJonefBibJCA2VapVk4MNby19J0BevRHd7x9hHTwqVEkPlv7u5QCeYDJXfg69VJ9riC+ufAwWXP0lBFOZmBpHel4PTgqqvj7OxJEuTCUjq4Oiqw0ni66/JHCbnwhrLz7wfJuZFNt8aucQPUSNOFsFigIDkZVXqYc+Tla7pzNVp8gtacbvCWpHGnYdHfgt16BeCb+9wQ0RJi1XwMA4ns+rdsrsoPyN0uqUBtnNME2VwokWgPmN8xanGspPMxG2U+G+74iSP4ZTmgmBFaw==; 5:HusYG0VvjPDgz+ANmVnNlXHKTLMQI6v2ipMWRGxlh2OsMus9XoALANTJCDAmXyAwlYVmQ1FtPIDaShuAPuPa7fH1owz9sGvJ9jQ2UGTTi/3mQc6EAlArft3AHpPyav2LAEEpNDDxRR00wAyXhjTtVkziw3Qev2QnzJv2DY4+FvA=; 7:88B33VXG09AuO4Y1tVZESAobZ5TFO20UGYPKxLAkU8n9R90x84TVAlra5pVHGiBogHRJGRKO3Nha2133J3kBPayLyISIpBCJlVao/NfrJsEh+CFbnoa8T49yXgrtLb7T2ZkOP8C7atDM64CtQNvpTw== x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-ms-office365-filtering-correlation-id: d26e2f4d-56d6-498b-181a-08d6601f6228 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR08MB3538; x-ms-traffictypediagnostic: AM0PR08MB3538: nodisclaimer: True x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231455)(999002)(944501520)(52105112)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:AM0PR08MB3538; BCL:0; PCL:0; RULEID:; SRVR:AM0PR08MB3538; x-forefront-prvs: 0884AAA693 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(376002)(39860400002)(366004)(346002)(189003)(199004)(13464003)(51914003)(229853002)(74316002)(4326008)(81166006)(81156014)(72206003)(6116002)(3846002)(305945005)(478600001)(8936002)(186003)(33656002)(106356001)(25786009)(105586002)(66066001)(97736004)(476003)(99286004)(486006)(11346002)(316002)(446003)(68736007)(54906003)(7736002)(110136005)(14454004)(53936002)(6436002)(102836004)(76176011)(2501003)(71190400001)(8676002)(71200400001)(53546011)(7696005)(6506007)(9686003)(55236004)(86362001)(55016002)(6246003)(26005)(14444005)(256004)(5660300001)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR08MB3538; H:AM0PR08MB3409.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Ac6L7FtM8KW1UCiBMnv4WmC5qjfSr8zwcwUaRYdhqbogzPTVB+gfGab/NRqkkneitdmTIhfaIKqItvE9yYXsPvGKsJq3mFe6+F5NKSHsiB7o5zQHwufkWTTairusZ/PpGxaG0yv1Taqvsu2j1JDpAcTkChyd9QlljdDIc2A7Z/BAnGq4MdREio9iPJ/Atb45yYiz80cJMk+C/5pbZIUYTtHmmIz4euczzmyhI1M29Vmay6IzHDxxU3/2359pGi3eoBqR2/YxAzGU3I/xYc63/G2AjC/1zEIv2YKExJ9NNsqMBl8sn7TvJp0jyoC2RpEV spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: d26e2f4d-56d6-498b-181a-08d6601f6228 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Dec 2018 10:48:42.6082 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3538 Subject: Re: [dpdk-dev] [PATCH v3] pci_vfio: Support 64KB kernel page_size with vfio-pci driver X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2018 10:48:44 -0000 SGkgQW5hdG9seSwNCg0KVGhhbmtzIGZvciB0aGUgY29tbWVudHMuDQoNCj4gLS0tLS1PcmlnaW5h bCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQnVyYWtvdiwgQW5hdG9seSA8YW5hdG9seS5idXJha292 QGludGVsLmNvbT4NCj4gU2VudDogTW9uZGF5LCBEZWNlbWJlciAxMCwgMjAxOCA3OjQ2IFBNDQo+ IFRvOiBUb25lIFpoYW5nIChBcm0gVGVjaG5vbG9neSBDaGluYSkgPFRvbmUuWmhhbmdAYXJtLmNv bT47DQo+IGRldkBkcG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