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 D978BA052A; Tue, 26 Jan 2021 12:50:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AE3D141469; Tue, 26 Jan 2021 12:50:10 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 35430141463 for ; Tue, 26 Jan 2021 12:50:08 +0100 (CET) IronPort-SDR: TXCT/WfJS+LKml4D7DP6LyvU/bj957F5Vm8q4/hWsjm4AJgSTqKWU6hB8hhSZOCgKHmmGwd8Hu 8246nmXvf0kQ== X-IronPort-AV: E=McAfee;i="6000,8403,9875"; a="179110173" X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="179110173" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2021 03:50:07 -0800 IronPort-SDR: ULBW+a3JkvvmpAUPCqULl5jaZVEBq5uZUifVXrhDWMW7IfVBRKhRkSefpd+oDgKy+gSN1juOuI 9XOKAV2Nv8yg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="472710633" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga001.fm.intel.com with ESMTP; 26 Jan 2021 03:50:07 -0800 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 26 Jan 2021 03:50:06 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) 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.1713.5 via Frontend Transport; Tue, 26 Jan 2021 03:50:06 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.177) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 26 Jan 2021 03:50:06 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eCAYmmvaDdzmSYBxiQ+OWUPC5rg+5cWFgAdESUbU8vhJmm8lK0Z9+Q7H99kh0lpv4szVjYdB33zEJBGzO+jdVwSEXksmiL7iv3K76ms2C1j45Ar9a5ZtFa121ZOeSwBIPqSswqQXVm+Boipkrks50cHdgkKaVMuItneaBWWqFBnVrIO23xX+b4ELvo8AAPSs4+t+Utd4noHpVXIHh/BmMhGYGT3siYU4tnbXeNBulewIM6EPJR7Rv6BXT1zvzimj36e6/gtjpZmobnjHrtDP1axnGF9F8KitMO8SF+PDpRrxCpOYgm7q7jjbI7I7JNyAU3NHjNIopytHfIM67mheiA== 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:X-MS-Exchange-SenderADCheck; bh=BE5zHY01VxRJyAYapgFFJJ/jyrs3MfDPxp2P9iXjd9E=; b=DCQhRWa0x8RMsXyOXDXABunTJfrD3YdMjDK/2SrXdgFDATNyZQ58k6UV/MitLmwnKd67iPDC9JFJ6Qh4hMpMEjU8wQarX7QTNBXgmO9Mnd2BeW+Emenb0rIIq4gn9UxsHHO9Xcp22cPMB7PZ2ANh9ihqttYqY89I2053mQYJ6CPw9nOTMRRTu+MABpuBWtWc08d/fTabVK2ksANWdwVvQ4sPGQqWqEAffllppOPy8J3Tol1able/3XdGCjsJFrdO9ynLNopshFBbS3JgA0oTD3aT9tQyjf8b1lXHBtrPoVhfjqRC4ajoPbTYDBmGCy1/+sX/z1Q5tWtOtqYaGn0xJw== 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=BE5zHY01VxRJyAYapgFFJJ/jyrs3MfDPxp2P9iXjd9E=; b=rwVXj0aAWk3D1WAXgnRSaPdtpGoBx4xnh3ePYcD2vqcEi0G2RfE8buDf6PLSQ/3U/ifb+MOfWsXE1aTWsI2W5Z77RQss6/JduIlB/Pl59P3+5PTvqJ+1OqglyZBeABdSN77h7hVtSaDT2nxQ5YmPjGXguFB1gaN7eZW1xdbpl04= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB4032.namprd11.prod.outlook.com (2603:10b6:208:135::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.15; Tue, 26 Jan 2021 11:50:05 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::4c5:a27c:aab2:a2ed]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::4c5:a27c:aab2:a2ed%7]) with mapi id 15.20.3784.017; Tue, 26 Jan 2021 11:50:05 +0000 From: "Xia, Chenbo" To: Maxime Coquelin , "dev@dpdk.org" , "olivier.matz@6wind.com" , "amorenoz@redhat.com" , "david.marchand@redhat.com" Thread-Topic: [PATCH v4 02/44] bus/vdev: add driver IOVA VA mode requirement Thread-Index: AQHW88xnXkce1vX8mEWUr5+WD9JYQao5yxgw Date: Tue, 26 Jan 2021 11:50:05 +0000 Message-ID: References: <20210126101639.250481-1-maxime.coquelin@redhat.com> <20210126101639.250481-3-maxime.coquelin@redhat.com> In-Reply-To: <20210126101639.250481-3-maxime.coquelin@redhat.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.39] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cc324e27-96ee-415c-0ecd-08d8c1f085cb x-ms-traffictypediagnostic: MN2PR11MB4032: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: J23hcjAk4mnE/lc1pamA0GgIsQtqfcX5yqH3nle+SjNUDzeecVePZEggO7uzGvD5Dd0xqTHXG5LQKPDasQC9aiWEruFVYn9ExBIzIA8O7JYDfBWb6oTYPnKWu8CtdCpcxqAzI2pm9WhMGcf/v6Cduu0816wsBeQ+QwytY7bWqNFaOcrPPT33wfetCVJLUlAZmnE9aIqOfkVeLA1HNBDNK9RlYPgyAHpH5HoJem30tpSrF9OD9XrDEcQk2zR8mueFWSD5BEyuLhD8VRPXplRRHW1LD8DYbcQeeSfD5KrAxu3TyG8PkoR/Sdtwb01GLvbJmgks21nI8e94Lzk+295JWZtF4P/eznyYHrXUWIxgaKg46kj3CoAGhZzNlI2WsROzENK0+tLHGlpDsvL0/gtTeyW/gS3PB5NvXp85OdvPXH3HiWFWdfNojO1TTd42YbxMCzpS9CxwJLelxSSUS7nle60ZLkoc57Q/S5iE/XWetJzDj2MFBky7OecFedujPy3sKVxp/dqM6ZadA3n7v+FMeg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(136003)(39860400002)(366004)(376002)(76116006)(66556008)(66446008)(8676002)(6506007)(83380400001)(9686003)(55016002)(53546011)(26005)(52536014)(66476007)(66946007)(64756008)(110136005)(8936002)(316002)(33656002)(7696005)(5660300002)(71200400001)(478600001)(2906002)(186003)(86362001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?YVJGREFBTjVIOWhITG1SdlpkaDZGVlFpbmd2UWNZM2dyRzl4WmNRR09xQkp0?= =?utf-8?B?dERvcmpSWUpJSHJOQVExN0NCZ2xuTnFwelBGVHBsTEY3YWNGN1lYVWsxOGZF?= =?utf-8?B?V0FpV2ZFeDNoZHdZOGErMVZUZkMvZ0pXdmlJcDluZWhzV0lWL2lhUHd0OTRx?= =?utf-8?B?eGVoWHVlK0dIcmMyQXV2WXRwSFU1bmtWNXVhaWh5OWYxQmdLZVlEcXhUWEVK?= =?utf-8?B?enJHb0NLaVVJc09yZy9kZkJzOENUSGhZQjFQeks0WEIxQnFQZ1V3dlJ4bXR6?= =?utf-8?B?cnhZekQ1WnJuUWVVNHlRTEp6dGYybEdMOWxPOElvOHlyL2N5Wk12UWhtU2dC?= =?utf-8?B?K0NNV0w2Q2RjdDJiMEF5TlBsWkRqa1I2MlkzcHU5MldBUDljUjd4YXV6UTZ2?= =?utf-8?B?c0FDRERWa1haTTY4NE14OWFTK2lSdUdaMWV4Z1hUL1JIbWwzTVVocjJPMzVM?= =?utf-8?B?RklwSWZLdS9YajlrenA2VWFVTm4xRHI0VTNPMHIyZGVuL3hXeVA4bzdDRm1X?= =?utf-8?B?Mzk3TU5Ba2tBclNXeGREQkJZN2tOWFA0QzBseTVmUkppbkN4TitydXhMMlV0?= =?utf-8?B?Y2tvTXVENkt6emlpOTZ5Y2x6dnROT2JJV3oyQjJlQXJFRU5PNkRQS3VRVndI?= =?utf-8?B?eGluNUxGcm5vV1FVVzlGRmVtRERNdmtiNzhmSWRwVW1tcmlpbkxOZzV3aGNo?= =?utf-8?B?YmtmbS92SU84bTFZUm9qQXZudDd3UUsxdks1Wkx6ZFcvU2UvUEVPSHc4VStH?= =?utf-8?B?RXNRQmM2RmlMbUlydU9vdmN4RnZmellSdFZaZWNMSkNDSUJiRGk3R1oybWdJ?= =?utf-8?B?a3U4ODg3RzlMRGtramRjUXRtYTREeU9HSEZqNXg5L1BaYkJtVGlUK0lrRmFo?= =?utf-8?B?R0dPc01mVXdTb3pUVUtqUmNhd0NRaGVEbmpqMDlybUI2QXBZbElhY3hZZ0dw?= =?utf-8?B?c3VSZ0o5NWV3Tnd2RjJVTm1WeEZ6WTQzNnFCd2FuZ1ZzbHJyM1RpWUQwNG51?= =?utf-8?B?N21BaDlRK1dnd2YrQUVtZ0lWMDg0eUd6OHRJd0JGRXdtT0tPT3p2UksrajBP?= =?utf-8?B?L01KU0FkWEtiRG5CTmVGNXVpejQ1MjVnMVcxMWdXTVkwTVBRTGh0NDFuRWJh?= =?utf-8?B?aTJuZTE0cTBWc2xzdVNlU0xkQTMyRU55YVZvZUtzU2xmVHZ4ZGc2L1VWTHhl?= =?utf-8?B?QlpsY0NDMVV1SkJiRTNOcDVCRnQzZUVZK1MxYUpSeGFXS2xaN1F6WDZYWU1w?= =?utf-8?B?aG4wM2Vta1NFQXc4cnFLZE9XelRQU0RMcnFYcHVYNkV4YUtHS1VzT0hiS25U?= =?utf-8?B?ekhUV1VSc21lcnB2ci9mZXZEUnNnbHU4VlRJL3lyMGRWVm9BQXdUcldpcUVT?= =?utf-8?B?L3RoNDh5aUxmK2o5L1VndnR6bEtMWUtNWlEwZ2lwc1IrN0lMQnFVSVhvZTB0?= =?utf-8?Q?G6e0tHtD?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cc324e27-96ee-415c-0ecd-08d8c1f085cb X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jan 2021 11:50:05.2874 (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: BxAkPaYwLcKffSKy6X7Qxbgwo6y1z2cMlnZp87AmZkYscVl3lMdyU8g2PGDgZlpWCU2jG8znSeYuvjWtxczJKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4032 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4 02/44] bus/vdev: add driver IOVA VA mode requirement 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBNYXhpbWUgQ29xdWVsaW4gPG1h eGltZS5jb3F1ZWxpbkByZWRoYXQuY29tPg0KPiBTZW50OiBUdWVzZGF5LCBKYW51YXJ5IDI2LCAy MDIxIDY6MTYgUE0NCj4gVG86IGRldkBkcGRrLm9yZzsgWGlhLCBDaGVuYm8gPGNoZW5iby54aWFA aW50ZWwuY29tPjsgb2xpdmllci5tYXR6QDZ3aW5kLmNvbTsNCj4gYW1vcmVub3pAcmVkaGF0LmNv bTsgZGF2aWQubWFyY2hhbmRAcmVkaGF0LmNvbQ0KPiBDYzogTWF4aW1lIENvcXVlbGluIDxtYXhp bWUuY29xdWVsaW5AcmVkaGF0LmNvbT4NCj4gU3ViamVjdDogW1BBVENIIHY0IDAyLzQ0XSBidXMv dmRldjogYWRkIGRyaXZlciBJT1ZBIFZBIG1vZGUgcmVxdWlyZW1lbnQNCj4gDQo+IFRoaXMgcGF0 Y2ggYWRkcyBkcml2ZXIgZmxhZyBpbiB2ZGV2IGJ1cyBkcml2ZXIgc28gdGhhdA0KPi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