From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0072.outbound.protection.outlook.com [104.47.2.72]) by dpdk.org (Postfix) with ESMTP id 0EEDF1D7 for ; Thu, 8 Nov 2018 08:20:33 +0100 (CET) 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=RQd1yMY0gdhxJ92fVAY55krKKwQYb8/GxNAlxwQj8JY=; b=c4lbEgpf7WVoPLfCFF/wSALMI2jyNGolkUyp616+2qbjmpJsHTHWhMYJ+QE3YDVTke6GuI7iI/4r9++YEVL0a4MmVkNKqntbkOTnCfPgdgoi9XPXctpJ2NKEwmh4iFlDw8KHo4jjk4K2f8CzPsnc0TzA+8y2O8tVvusa6u0BBpk= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.41.11) by AM0PR0502MB3748.eurprd05.prod.outlook.com (52.133.47.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Thu, 8 Nov 2018 07:20:32 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::b158:af20:5026:3d25]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::b158:af20:5026:3d25%2]) with mapi id 15.20.1294.034; Thu, 8 Nov 2018 07:20:32 +0000 From: Matan Azrad To: Jeff Guo , "konstantin.ananyev@intel.com" , "anatoly.burakov@intel.com" , Thomas Monjalon , "bernard.iremonger@intel.com" , "jingjing.wu@intel.com" , "wenzhuo.lu@intel.com" CC: "ferruh.yigit@intel.com" , "dev@dpdk.org" , "helin.zhang@intel.com" , "shaopeng.he@intel.com" Thread-Topic: [PATCH 2/3] vfio: fix to add handler lock for hot-unplug Thread-Index: AQHUdZZ6KGI5DW3yiU6wuad724mZ86VCRx6QgAGQKICAAaMV8A== Date: Thu, 8 Nov 2018 07:20:31 +0000 Message-ID: References: <1541484436-91320-1-git-send-email-jia.guo@intel.com> <1541484436-91320-3-git-send-email-jia.guo@intel.com> In-Reply-To: Accept-Language: en-US, he-IL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR0502MB3748; 6:VwlX714d+GofzB5D31N89WY/vSyYnBQ3ItgNNzzjCPzog61ac74K7xasO+1SCahrzPTRaUW0Wzqiyw0wNFVIcJZLUFcmlm8mSRm4n/XKNNBv0PAxoCYOWGC9lEZ7vZ4rnBfFguqoyGtPTeG3pU8IMPZYFIk/oXDX/HwJiYHexW/fKyO1+4iCq8leYFPXayjVnQ7p4nl7c2CwePo6R9IOYu7eR6+2QwgwHGajijE/XhcGw92HHizJ5Xa0d7qskZWBmejxl2ufbpuHyTpjUkKSW9KeEI41bnTQ9fBeFPFImvBWjYlz0g2lh77fikcMWWFjAyalmSm2Ud/dXnplZHjpyV2KmevF9+CE+d5TVoTAdvax0HmquUTjB+4Bz+56UFyxZoDq0F9v+cWtiTE6taB0N8Uc38GyJjQtXmKN92Aq+dBHNkaQHR2bML5vDNUMXPFCFeAnJjuQXhbg6Fn7fj7ljA==; 5:+NVZBZX2pS0xPn6UxKF1dGurIXKzrktmFuwCKkjlYTh1Lbai4rnupjFHmcGK3n7sc58alLB9yB72JdGNdvexPTJJg9EWIXquB0LYEDGpoxIO0cZPmtTy9ViqnoKMo6JX+MZvDBnblZy1tdw0eQInCbNdgTBjIqYXelXab0E89J8=; 7:1yEPxB7pJTrLbtf4wtyosaDNJnPFXUz2G1EYxOEnJGSKL1yKyRTp+usQ9WReygu966RLludSpovLyN51oYql1fJmpA6BgAXTcyyJPwd+L5XxnXa5zd/oEICt/9H1iyWSiBd1kAe1sM/7bgdI0bgf4w== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: cfb5eb9d-0ae2-4501-0ef8-08d6454aab21 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM0PR0502MB3748; x-ms-traffictypediagnostic: AM0PR0502MB3748: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231382)(944501410)(52105095)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:AM0PR0502MB3748; BCL:0; PCL:0; RULEID:; SRVR:AM0PR0502MB3748; x-forefront-prvs: 0850800A29 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(366004)(396003)(346002)(136003)(376002)(39860400002)(13464003)(199004)(189003)(186003)(14454004)(105586002)(486006)(446003)(33656002)(54906003)(110136005)(476003)(93886005)(66066001)(53546011)(229853002)(6506007)(316002)(76176011)(86362001)(2201001)(2501003)(106356001)(99286004)(7696005)(11346002)(102836004)(26005)(5660300001)(2900100001)(6436002)(71190400001)(55016002)(25786009)(4326008)(9686003)(3846002)(53936002)(6116002)(6246003)(2906002)(71200400001)(68736007)(7416002)(97736004)(7736002)(14444005)(305945005)(256004)(8936002)(74316002)(8676002)(81156014)(478600001)(81166006)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3748; H:AM0PR0502MB4019.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: UMt5soAzje3xQlbHSSoZx/36S1xIz2VA1YuzbZv3bHuvn7i9EJh/vCtBo8bXLW98lwlXrZkqVVustY8Adl+OfjpSM2O7BxOvh6cHdxGv4AuZ1d151bAl5MzZ3PIKu1dB7oni1TgNdd+Dw0Nbs6ZHsIznb6s0XITqlYZy1Wn+guISkHVbCHS0Ir7zHmWIPUbUjLSWDMbxWxBUKyjyrJGG1vz86avniRTtl4+Zkogz2Gb8ii/iTBD3OEE+PJRvPGj6TnwSxGU/C4Edour25D7+VXWqC8rKCPzD2n7pV912CH//h5hBlzWEhX/p6C9DU8hQELnakJ+wqza9+JO6Td+tHOJXEss47FWMMFC/1nuSNA0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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: cfb5eb9d-0ae2-4501-0ef8-08d6454aab21 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2018 07:20:31.9680 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3748 Subject: Re: [dpdk-dev] [PATCH 2/3] vfio: fix to add handler lock for hot-unplug 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, 08 Nov 2018 07:20:33 -0000 DQoNCkZyb206IEplZmYgR3VvDQo+IE9uIDExLzYvMjAxOCAyOjIzIFBNLCBNYXRhbiBBenJhZCB3 cm90ZToNCj4gPiBIaSBKZWZmDQo+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