Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3634869img; Mon, 25 Mar 2019 14:30:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQbY6L+VyD7CKxa6+Q7tYk5ak5LYkF5opvDsqWgUG9m6KRmZWzQdJeik0lB34ZXoJHE3ah X-Received: by 2002:a63:bd42:: with SMTP id d2mr8794528pgp.319.1553549432000; Mon, 25 Mar 2019 14:30:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553549431; cv=none; d=google.com; s=arc-20160816; b=ZTc4+dRDpYFPgNsLbUWItp4t6kBDfJIi7Cb7bu7guVaFaFtQ+cnDJ99nwT7R5lCD8K y8Iu8mMEp5PcZbN/5dUhccosl8N8KpMM6A+WOtev39cG9Y3Vl0kKS57e1xfwxvFRn46F Hn7ozTqEeB30WRePj3YifWKR5SFaEmInm5NHl/z6ZGeV0Px94OpuWFrZRtuPgnMd2pOi vmLU4/rqIJzQkWPitMtqjorHEVUaVKoIrFoEN9+o3uH0D33ktm1sceL3rB8y7vl7j4/X 3xLqU80I1yULvhyu7C0Y0wqNUXZm7+tzWoqoIoFxfp2jseJHr60Q8RSn008UISmexNKj gB3g== 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:to:from:dkim-signature; bh=wT/K9NTngom9AJAXZp2v+9UJUav0rMnxhQ8iF0FtSCc=; b=aiUZVgPUgUSCN+lXCt+MJjHsifilJdv/wWY4wL2j/n4n/hwWAPoX2mU70YLnLnuBcW jya8DyjjWI6aY8E5YG7yOjBltssyAUAxT1vRlh9gMGKALFS9usZ6loqvlEJusy+dndk1 VWE+pYKOftowGzi7RH3IuvcxTarLxWjaqZgduOqg2vgrs+GI7SeAscF1kwak3UzUtPKu HldI035V1GH0Uyk5CoFyUvaZ3RiJ8BsqSwEw6R8hIwm1PSjP8DkmXa6R89XhClyIG9nZ NtnxdcUxLPRZCyhDXxNWTRYrjlhkRFTA4lwdEBdtfy/KVFjXyZF1CRsLM4Giy2oWT8xH kZRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=IpoWKAXr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f36si619131pgf.332.2019.03.25.14.30.17; Mon, 25 Mar 2019 14:30:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=IpoWKAXr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730492AbfCYV3S (ORCPT + 99 others); Mon, 25 Mar 2019 17:29:18 -0400 Received: from mail-eopbgr150073.outbound.protection.outlook.com ([40.107.15.73]:62318 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730006AbfCYV3R (ORCPT ); Mon, 25 Mar 2019 17:29:17 -0400 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=wT/K9NTngom9AJAXZp2v+9UJUav0rMnxhQ8iF0FtSCc=; b=IpoWKAXr0Tr77icLb+PVG43jHUue/bgqbkVkpiiLZiliafsHNp7Obf0dQP0gvfnkaFW5Nqv6q38EcEmGphVrYSNbGEfpvR0IKKn+t1y4d7Z5GkvUvfjWZ5Md9vCMDCFNZvHfmm2FsSCd8xI5DDfQvbrWTpryF656tWZ1WuWu7mI= Received: from VI1PR0501MB2271.eurprd05.prod.outlook.com (10.169.135.8) by VI1PR0501MB2558.eurprd05.prod.outlook.com (10.168.136.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.18; Mon, 25 Mar 2019 21:29:13 +0000 Received: from VI1PR0501MB2271.eurprd05.prod.outlook.com ([fe80::a0b8:7ed8:d657:2f59]) by VI1PR0501MB2271.eurprd05.prod.outlook.com ([fe80::a0b8:7ed8:d657:2f59%6]) with mapi id 15.20.1730.019; Mon, 25 Mar 2019 21:29:13 +0000 From: Parav Pandit To: Kirti Wankhede , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "alex.williamson@redhat.com" Subject: RE: [PATCH 5/8] vfio/mdev: Avoid masking error code to EBUSY Thread-Topic: [PATCH 5/8] vfio/mdev: Avoid masking error code to EBUSY Thread-Index: AQHU4QX6UPY3XMRjH0GxvL6hB0Kl8qYcvPiAgAAkNNA= Date: Mon, 25 Mar 2019 21:29:13 +0000 Message-ID: References: <1553296835-37522-1-git-send-email-parav@mellanox.com> <1553296835-37522-6-git-send-email-parav@mellanox.com> <6f990e18-296c-cd33-df2b-c5c4bad7a740@nvidia.com> In-Reply-To: <6f990e18-296c-cd33-df2b-c5c4bad7a740@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=parav@mellanox.com; x-originating-ip: [208.176.44.194] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a11e7a06-4052-4286-5bd4-08d6b168ed77 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR0501MB2558; x-ms-traffictypediagnostic: VI1PR0501MB2558: x-microsoft-antispam-prvs: x-forefront-prvs: 0987ACA2E2 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(346002)(366004)(376002)(136003)(39860400002)(13464003)(189003)(199004)(486006)(2201001)(476003)(110136005)(478600001)(14454004)(86362001)(5660300002)(102836004)(2906002)(186003)(76176011)(7696005)(8936002)(2501003)(53546011)(26005)(6506007)(97736004)(25786009)(33656002)(14444005)(99286004)(106356001)(105586002)(256004)(7736002)(3846002)(68736007)(316002)(6116002)(52536014)(66066001)(6246003)(305945005)(229853002)(81156014)(8676002)(74316002)(11346002)(6436002)(71190400001)(53936002)(71200400001)(446003)(81166006)(55016002)(9686003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0501MB2558;H:VI1PR0501MB2271.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: /yxm3p31O/KvHB1jIHlZaql5TCheGHrCrLMYpzMC8rcO9o8ZIInN7azQFEyyQGl6RJdkVnNdY3U/uf9NTeHu1q7TR/+jm4wONQmnVXypmJFdARlMzHBjdnPCjj+XB0dzX2lKVPuRoCF6g9BUVqEU935qsypF/e8ZgIja9d2wH3gD7mmuTxaEOQ3Zxr0PUSneAk5WRhjV9IGh5FZ65EkYy2hzwY0T3AwkmD1e4SLCEySYRuHdU+IyTURATMtiSu7qtwpvsPNZ9DukRsQFUS4Rw7O3lcV20EhVEz8VLSgoXjkOWZHELGWBHYqiBUAVmvNixSHYCWEeJM9Y2N/jj607zQ2GmfEXe+qPq329agJJu6IbcTyo7yjRMS1xyHnXzVyJKqoXlZc8aEGyeQt3CbprOC8FjBT/ZJuC8Z8NEGIEpME= 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: a11e7a06-4052-4286-5bd4-08d6b168ed77 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2019 21:29:13.7020 (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-Transport-CrossTenantHeadersStamped: VI1PR0501MB2558 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogS2lydGkgV2Fua2hlZGUg PGt3YW5raGVkZUBudmlkaWEuY29tPg0KPiBTZW50OiBNb25kYXksIE1hcmNoIDI1LCAyMDE5IDI6 MTggUE0NCj4gVG86IFBhcmF2IFBhbmRpdCA8cGFyYXZAbWVsbGFub3guY29tPjsga3ZtQHZnZXIu a2VybmVsLm9yZzsgbGludXgtDQo+IGtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc7IGFsZXgud2lsbGlh bXNvbkByZWRoYXQuY29tDQo+IFN1YmplY3Q6IFJlOiBbUEFUQ0ggNS84XSB2ZmlvL21kZXY6IEF2 b2lkIG1hc2tpbmcgZXJyb3IgY29kZSB0byBFQlVTWQ0KPiANCj4gDQo+IA0KPiBPbiAzLzIzLzIw MTkgNDo1MCBBTSwgUGFyYXYgUGFuZGl0IHdyb3RlOg0KPiA+IEluc3RlYWQgb2YgbWFza2luZyBy ZXR1cm4gZXJyb3IgdG8gLUVCVVNZLCByZXR1cm4gYWN0dWFsIGVycm9yDQo+ID4gcmV0dXJuZWQg YnkgdGhlIGRyaXZlci4NCj4gPg0KPiA+IF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