From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00079.outbound.protection.outlook.com [40.107.0.79]) by dpdk.org (Postfix) with ESMTP id E703B1B05 for ; Thu, 1 Nov 2018 03:33:11 +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=7dYetY3b9i4t4PzbkQNHsr9VKLbh7QHIGwD91Hz4QDk=; b=ej3VWMGKTUeI5eYdlRWPVGqUE0CFD1EJXvcVT8C1DJmAkjD6nuc8eHEFyGzPApuqxyYu+iIal8Y3FcIu5FNg14+Zov/jNWhE+OGO5cby++RSWYT/0RgY8JNQLH+oKesa3EziaG51pWXZwMr45iT6IObe7Xu4hl7R/F9wvj3KtIo= Received: from AM0PR08MB3409.eurprd08.prod.outlook.com (20.177.109.139) by AM0PR08MB3042.eurprd08.prod.outlook.com (52.134.93.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.20; Thu, 1 Nov 2018 02:33:10 +0000 Received: from AM0PR08MB3409.eurprd08.prod.outlook.com ([fe80::3074:eca6:1d39:dd5]) by AM0PR08MB3409.eurprd08.prod.outlook.com ([fe80::3074:eca6:1d39:dd5%2]) with mapi id 15.20.1294.021; Thu, 1 Nov 2018 02:33:10 +0000 From: "Tone Zhang (Arm Technology China)" To: "Burakov, Anatoly" , "dev@dpdk.org" CC: nd Thread-Topic: [dpdk-dev] [PATCH] pci_vfio: Support 64KB kernel page_size with vfio-pci driver Thread-Index: AQHUa3lCIRooCn9f+0Kigcs8A1SPlKU6Mqgg Date: Thu, 1 Nov 2018 02:33:10 +0000 Message-ID: References: <1540347604-18590-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; AM0PR08MB3042; 6:sLHNq6OlYyZS1Df1+qoDs5j8i1pmp6Um1ULGVYBzV2RVzG8mED0RJnyXYrktD1eIXYyxdW+nCs2r6oRIYLwOSJHp3KHJViKGuWz3osXeIndAPUPuXcyxYlofVbqn6estna6XEXxyJNO3l052Rq6FphgXxsGrb78baz1CJyqQoqYab21aRCsDGnpPXpUjaFJeSRRTHuBvrsCpRAqiJpYNEkKuAu+SHxQ12yKiFdgQ8j2mivuc36nt3eThamX8wBSnguT67mU7p78DEHDJ0sakw1LxP55Ctcjg03KkKWpZKKM1rXF1DF9ddWWNZenYzoWILKRm7yzkrVodUtRGtKS732xPQOEtUw418sbGpaktCrB1P1iFcGlV0fz+wuoFqLD0KD2NFvO5Ie78ErxyWMzgsTdzji3TSM8R+MRcg6VPSU84sktFd8CoKiuufnDl+JNydT4TtQgiRz444dVgD/s4cg==; 5:SVDyvWzzPPgjsz81DUNErQ61WazYozPWv1S9kB3IQK2ohKUNGhEzTaUOWX8q7j68q28sVeC7n4+2iaMpxVUqcK6yPqzlcFJFvaM+rGj0hr2l2V0+OYqOxNjTbjEXuH2yH+Ya0mHtBNGxJ5ca/fmAW+su3peo4v2EUzFWxF3Fu4Y=; 7:H11NLt6hAV56PGh32OFewu/Ui0fLmnmIv6A6msO4SKIcwS+yh4UuZsLp5iqwOj/Kiof9WOeWZBg9bTXSHlt1LnjwMx1VbzC6Rcot70UVJzOexXZ1drDDRY5Nct10oZMVPxeohLB3w8Z0N2SzlJ1ucA== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 3c2e2d8b-9100-4093-325e-08d63fa25d69 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR08MB3042; x-ms-traffictypediagnostic: AM0PR08MB3042: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699)(180628864354917); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM0PR08MB3042; BCL:0; PCL:0; RULEID:; SRVR:AM0PR08MB3042; x-forefront-prvs: 0843C17679 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(136003)(376002)(346002)(366004)(13464003)(199004)(189003)(14444005)(105586002)(316002)(81166006)(2900100001)(106356001)(71200400001)(2906002)(256004)(14454004)(486006)(71190400001)(8676002)(81156014)(86362001)(76176011)(9686003)(110136005)(2501003)(55236004)(53936002)(4326008)(478600001)(25786009)(55016002)(99286004)(5250100002)(33656002)(26005)(74316002)(102836004)(97736004)(229853002)(72206003)(5660300001)(7696005)(6436002)(6506007)(186003)(11346002)(53546011)(305945005)(8936002)(66066001)(476003)(6116002)(7736002)(3846002)(68736007)(6246003)(446003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR08MB3042; H:AM0PR08MB3409.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Sc0wZd3cPnutXaiBkj5D5aoCz3cw1ksRy/YbTQCruYNnLpR4xVF9UUGNgzZ5IT5aSmeYyHOils280WCjG7r9g2Ie2NK3Iw/o7cucAFlC09bd37/UTliEHJOT76tmQBxtTP4S/TC96ZdUwZHHkcry2+QtLPf7SBKe+syHq1Hd2QaKzMnsYoqaGHxyV+aOUm7+277iHhnnRlwEmy1knyfQBDK8aq2jMYzo7Fepfd85cg5IUksbXak81oHaWHn55qFIC6kUDk2qQHc+ROpOvXMI4s/RcBe0Q6s+SCYpp2ZzBQkSLlH2Y6e01GryJsacQMk/lal9VWZuHicKt/goae6/kB7rX1/5TaVLn9g3O6XTJTg= 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: 3c2e2d8b-9100-4093-325e-08d63fa25d69 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2018 02:33:10.2680 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3042 Subject: Re: [dpdk-dev] [PATCH] 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: Thu, 01 Nov 2018 02:33:12 -0000 SGkgQnVyYWtvdiwNCg0KSSdtIHNvcnJ5IGZvciB0aGUgbGF0ZSByZXNwb25zZS4gDQoNClRoYW5r cyBhIGxvdCBmb3IgeW91ciBjb21tZW50cy4gUGxlYXNlIGZpbmQgbXkgcmVzcG9uc2UgYmVsb3cg KG1hcmtlZCB3aXRoICJUb25lOiIpLiDwn5iKDQoNCkJyLA0KVG9uZQ0KDQotLS0tLU9yaWdpbmFs IE1lc3NhZ2UtLS0tLQ0KRnJvbTogQnVyYWtvdiwgQW5hdG9seSA8YW5hdG9seS5idXJha292QGlu dGV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