From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 910F0A00C3; Mon, 8 Jun 2020 11:19:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 026D11BDAE; Mon, 8 Jun 2020 11:19:47 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2088.outbound.protection.outlook.com [40.107.21.88]) by dpdk.org (Postfix) with ESMTP id 3582B1BDAC for ; Mon, 8 Jun 2020 11:19:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FFS7rzHMDw3HzCVzTrxapdCfEBe0Kfw4mhvD4Xtuz1SIdm7iCU3688RQLFdJS+CuztVvhAHXPrscvVe6ylUzuw/eiVBeHtIvqHwhguCBGK8fqajrnjBQfDGfeFNrTZyJBvHP+/4Q56W7OpDAt4lVXYlD2mE9bFJj/u/1ZNY9TUo0YcIbCT0lymO8xXr48lQ0/Djuy2x73V7V7DNt03M/Xo+9cTjYGVWR4IKMXbjgqeWMLEdk4zQdyO6UHsEsAw1seR+yWZG0GoExu+lWp1OCriPciWmKe9Ls/XRSdhdVdQs8clarlQ0keJWGJU3nTzq6Pz/VyOez2PSAZy/QUElEFg== 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=mgpozdZRKHgxAp8vExVeY7W4sxCCkElD8JN1+PVr6DU=; b=RuNIxaDd7JL9tdBc/gwbex9EH1qvuPdvlX2dt4aj1HUs7EQ/oCtyhDwHrwGzD9d11ZMe8jVkQOyLp2PiKY8sBdtnbJoXLqMnDJHO6Xyh/Sn3gORZeIpZy29+8l0z4CFhObh3VCYVgsPepmC4g2nYMEBhlqYuk/G5U79W4ANdAmU5ZRf2d0vg4hI6IrY/6l6ByxccwlFilOtq83nYwei4aAWXsGcml6KIlojfXPrV46cqyyW3zHWW4j+kNwAxpbWdD6cRBgG+sMU/qBqlOXAraK9a+yKb+4KbxdPtNbnYF0AL6yEMuJeUSg1//tJIlwyaTy70WRAM1FNsOpvxIdOOWw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mgpozdZRKHgxAp8vExVeY7W4sxCCkElD8JN1+PVr6DU=; b=CIhLzJr48uUg0T72LxMDhbEKkmLPq+/dmLrMELN8groilSMQ6sGqHd83BkR7Bb4wGT+MwKHm6mrjFQ94MUjZd0ASPj1FexRzwlaIKatgP/oBJSDqTPOate2J1JwWiXKKl+5ytlH9NQPv8a9mT7FDSj6eM59YxBVlGYaOfSLR8q0= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (2603:10a6:208:f::11) by AM0PR0502MB3731.eurprd05.prod.outlook.com (2603:10a6:208:1e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Mon, 8 Jun 2020 09:19:43 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::b189:d782:4c74:7998]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::b189:d782:4c74:7998%7]) with mapi id 15.20.3066.023; Mon, 8 Jun 2020 09:19:43 +0000 From: Matan Azrad To: Maxime Coquelin , "xiaolong.ye@intel.com" , Shahaf Shuler , "amorenoz@redhat.com" , "xiao.w.wang@intel.com" , Slava Ovsiienko , "dev@dpdk.org" CC: "jasowang@redhat.com" , "lulu@redhat.com" Thread-Topic: [PATCH 9/9] vhost: only use vDPA config workaround if needed Thread-Index: AQHWKcYg67JP6PpHo0+Nx4qLJ7aEAqjNF8jQgAF0CICAAAZssA== Date: Mon, 8 Jun 2020 09:19:43 +0000 Message-ID: References: <20200514080218.1435344-1-maxime.coquelin@redhat.com> <20200514080218.1435344-10-maxime.coquelin@redhat.com> <0216165f-aedd-06c7-5a90-2cd0d238b143@redhat.com> In-Reply-To: <0216165f-aedd-06c7-5a90-2cd0d238b143@redhat.com> Accept-Language: en-US, he-IL 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=mellanox.com; x-originating-ip: [87.68.154.208] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b4011220-f813-4985-03d4-08d80b8d1490 x-ms-traffictypediagnostic: AM0PR0502MB3731: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 042857DBB5 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fS/cPi7GVWQAn3WDqTCy3oLEdDp7LS77TcYCW/T5UT6ngeQWVc2gjUadPGczkFFbMREQH77vHaHpOthySGOKgOeb1sHzdexKaAf/nouYN/pfci3goOTUh5rAO2ISSt98VZS6Lr8U/IBR6oBHvBO4zec57yqxvfcWCAZCCtoM2W5p8EiEWsyGJUciMP4ybidDoxyRMP9Dx6sUaVjpjppXTYtD3m535pS9sc9vT3XnPcLA2jdgCr886Gdit2C4NN5A4XSs/9A6DNIp4qkcSAL9oOt1aslduHHYHsM04lDRgQp3+NJRAEQuciC/ia6hs85T x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR0502MB4019.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(396003)(366004)(376002)(39860400002)(346002)(5660300002)(54906003)(110136005)(86362001)(8676002)(52536014)(316002)(8936002)(66446008)(9686003)(53546011)(2906002)(26005)(7696005)(83380400001)(33656002)(64756008)(55016002)(66556008)(76116006)(71200400001)(478600001)(186003)(66946007)(6506007)(66476007)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: la977oT+Gxx1IiPhU71o2itsJ2tFF5XJCiBfn6sSZKrYML5PmpxiB8eFkgjs/oFOagp+XkV+p5cvprE/2aBsOIB3dMjIR+KiFsXl2IXORlckPGEZmRz4axpXZjMCMG3adv8U74Slsx7NWz9nCMWCWx34xm4t/68J97reqJNO1h/PIKEvRDppRxLHx2u40Il79VDzR/6ebvJWfoaC5EruOjVn79kAPiv/UXHlFaabCqrXgvKmzgcLIOC1m/IAo1XjGIghu7h9T9kjQpHY+OIvn5r37jGDdBQjluVWHwxVULCjvlBoLBySoWS7Y8PCgpX3nmrCdAO86h5UqPy6Ngq488A16hTfOrDG7skNpt/5k/78kNAypmZD+S5Fd6vZsBSDhRk7uYI22CS6TelkF6ZnFPyiDZwZxJ9xSukTE1vfrDmBfbOXwd9W6UJrvm6/1DHBLfgBugssxC/nAUAOGhzLUPCNZECpMDSWYkTCpdUoikRs2Xvxi5QXXxDTG4uOY38n Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4011220-f813-4985-03d4-08d80b8d1490 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jun 2020 09:19:43.4502 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: kpqbNXLm0Q+1wC/k5nEakdz3kZRLtHChG5sdRUIGI/tFEcJKMEUMOArnGALj+YOCizftA6txJicudZ+FDZ59Xw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3731 Subject: Re: [dpdk-dev] [PATCH 9/9] vhost: only use vDPA config workaround if needed 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SGkgTWF4aW1lDQoNCkZyb206IE1heGltZSBDb3F1ZWxpbjoNCj4gSGkgTWF0YW4sDQo+IA0KPiBP biA2LzcvMjAgMTI6MzggUE0sIE1hdGFuIEF6cmFkIHdyb3RlOg0KPiA+IEhpIE1heGltZQ0KPiA+ DQo+ID4gVGhhbmtzIGZvciB0aGUgaHVnZSB3b3JrLg0KPiA+IFBsZWFzZSBzZWUgYSBzdWdnZXN0 aW9uIGlubGluZS4NCj4gPg0KPiA+IEZyb206IE1heGltZSBDb3F1ZWxpbjoNCj4gPj4gU2VudDog VGh1cnNkYXksIE1heSAxNCwgMjAyMCAxMTowMiBBTQ0KPiA+PiBUbzogeGlhb2xvbmcueWVAaW50 ZWwuY29tOyBTaGFoYWYgU2h1bGVyIDxzaGFoYWZzQG1lbGxhbm94LmNvbT47DQo+ID4+IE1hdGFu IEF6cmFkIDxtYXRhbkBtZWxsYW5veC5jb20+OyBhbW9yZW5vekByZWRoYXQuY29tOw0KPiA+PiB4 aWFvLncud2FuZ0BpbnRlbC5jb207IFNsYXZhIE92c2lpZW5rbyA8dmlhY2hlc2xhdm9AbWVsbGFu b3guY29tPjsNCj4gPj4gZGV2QGRwZGsub3JnDQo+ID4+IENjOiBqYXNvd2FuZ0ByZWRoYXQuY29t OyBsdWx1QHJlZGhhdC5jb207IE1heGltZSBDb3F1ZWxpbg0KPiA+PiA8bWF4aW1lLmNvcXVlbGlu QHJlZGhhdC5jb20+DQo+ID4+IFN1YmplY3Q6IFtQQVRDSCA5LzldIHZob3N0OiBvbmx5IHVzZSB2 RFBBIGNvbmZpZyB3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