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 7D334A057B; Wed, 1 Apr 2020 10:50:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BA71D1BEA3; Wed, 1 Apr 2020 10:50:43 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 224DD1BE95 for ; Wed, 1 Apr 2020 10:50:41 +0200 (CEST) IronPort-SDR: Awd4/ktXshqEQCEPXsIsZPUshajDLZWVj8eec+oeOGHATL9G5jmg59CuQP8895Jw1fTJGNUAQI ztwUBl3LAYwg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2020 01:50:41 -0700 IronPort-SDR: bcjg340lL4W+ehxzfsNL/gMkvA5qOoSg3uSYYWjgXC280RMo08EiXP4fTsYCuYn5q2baty7Tqz AwixSKkwBrzg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,331,1580803200"; d="scan'208";a="242661647" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga008.jf.intel.com with ESMTP; 01 Apr 2020 01:50:40 -0700 Received: from lcsmsx602.ger.corp.intel.com (10.109.210.11) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 1 Apr 2020 01:50:40 -0700 Received: from hasmsx603.ger.corp.intel.com (10.184.107.143) by LCSMSX602.ger.corp.intel.com (10.109.210.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 1 Apr 2020 11:50:38 +0300 Received: from hasmsx603.ger.corp.intel.com ([10.184.107.143]) by HASMSX603.ger.corp.intel.com ([10.184.107.143]) with mapi id 15.01.1713.004; Wed, 1 Apr 2020 11:50:38 +0300 From: "Stojaczyk, Dariusz" To: Michael Haeuptle , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] eal: Fixes VFIO/sysfs race condition Thread-Index: AQHWB314sQAzzWXyrEahAQyI56g2b6hj9cLA Date: Wed, 1 Apr 2020 08:50:38 +0000 Message-ID: References: <20200331165657.29368-1-michael.haeuptle@hpe.com> In-Reply-To: <20200331165657.29368-1-michael.haeuptle@hpe.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.2.0.6 dlp-product: dlpe-windows dlp-reaction: no-action x-originating-ip: [163.33.253.164] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] eal: Fixes VFIO/sysfs race condition 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" > From: dev On Behalf Of Michael Haeuptle > Sent: Tuesday, March 31, 2020 6:57 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] eal: Fixes VFIO/sysfs race condition >=20 > This fix treats a 0 return value from vfio_open_group_fd > in vfio_get_group_fd as the intended error condition instead > of putting an incorrect 0 file descriptor in the vfio_group table. >=20 > Sometimes, the creation of device files in sysfs is not > instantaneously causing vfio_open_groupfd to return 0. > This has been observed when hot removing/adding multiple > NVMe devices (>=3D4). >=20 > Signed-off-by: Michael Haeuptle > --- Acked-by: Darek Stojaczyk