From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0076.outbound.protection.outlook.com [104.47.0.76]) by dpdk.org (Postfix) with ESMTP id DCF9B9E7 for ; Mon, 18 Jul 2016 10:47:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=TogaNetworksLtd.onmicrosoft.com; s=selector1-toganetworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=JISwySfOrzneTmP/xc2J8XTulRYc3kdOQnZU3mhvAzo=; b=mbUk5+QPFZCgaxoaIhNsIXYh+2SEXE+G+Rz4omBIap7NmGIIpkr0muih9Yii6CO29OxOt4R8Gp9Lz98GHeH8XiFFWX2pH4pR09Uet+fpd4/63XiJRG0+CcJ2RIvBvY94N6972ERyUC4FInLPC4mL1xgH8ZA9biWFChRUGVqzcJ0= Received: from VI1PR02MB1727.eurprd02.prod.outlook.com (10.166.41.144) by VI1PR02MB1728.eurprd02.prod.outlook.com (10.166.41.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10; Mon, 18 Jul 2016 08:47:14 +0000 Received: from VI1PR02MB1727.eurprd02.prod.outlook.com ([10.166.41.144]) by VI1PR02MB1727.eurprd02.prod.outlook.com ([10.166.41.144]) with mapi id 15.01.0544.013; Mon, 18 Jul 2016 08:47:14 +0000 From: Eli Britstein To: "Iremonger, Bernard" , "dev@dpdk.org" Thread-Topic: SRIOV hot unplug Thread-Index: AdHgBokZEAYxOrFcS1eredTEovecxAAZgTVwABioLMA= Date: Mon, 18 Jul 2016 08:47:14 +0000 Message-ID: References: <8CEF83825BEC744B83065625E567D7C21A04F18C@IRSMSX108.ger.corp.intel.com> In-Reply-To: <8CEF83825BEC744B83065625E567D7C21A04F18C@IRSMSX108.ger.corp.intel.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=eli.britstein@toganetworks.com; x-originating-ip: [84.94.204.35] x-ms-office365-filtering-correlation-id: bfdbe836-f187-4023-a522-08d3aee81ddd x-microsoft-exchange-diagnostics: 1; VI1PR02MB1728; 6:cMH92Fq1t7/TfKguvvuXmP1+qIMaiS0kJVS/xG13iEkTqfZ2QCs46/opbxlomNxr8diG0khibelAw3THYr7rB1JDzofqhDwNQgcrmhTXdXdmB1E9AkKGfHxBytxEVVChpesuHBuHMITcvPKxbIQPLtcOR+G6k0m+4Ul7Gib/i1GeJuYs1YkK/fixbWbscsvFtKMnqQiKXP7fWu9oFJwtYT/NhemlUGSorDWFMxnJHDZgEWs+C311Q8A6IQICMc9LkAo9y9Ce+Z0OavA2cHjk+pxYLodBcrx/iOrhyse+4gnV5lsVIu6rIZFthss0AN+0; 5:kAUaPQ2VShTCJ8vG2P9OKU5SguFxxr1nMs/dg3o/RzPuFr+AZ4T8IF4ZUk/e97iiJX0puWXcvPQgLbcIR4VI0yAj20qc3Hi/lY+oDlHA+4CVZxhMk22PrI+Rghgvpz2X8INuAqIj0g/Wl1dBud0QVw==; 24:zx1pkNBWOeIkbtZdezQNWkolRqXjXqq8MKRUODkQBMr8zcW9GoBcbjIgGh0jyUrZ3bq7jR7oRI4D5JRrOBAkI3ngegtk+eL0quorDls7CYc=; 7:RdZwJfH3+IRJOfVHplXs4ohTvVeKzeHxVWeHWZkGvEUOGtHipv8VXHducGzvYKEs33/A/IUbgGv6IRuRLaSucxTcbLKWujYaPhYp9qnQkOeQLvi4SZid06HWZlSBxjPsotJekcYGkRuTfKv84RgU2aG7GGy0tXTCsQ4dZT8+0Epyq4E4DRMqDodQyj+2TFAG9wooPxaaP9w/SHAuggrCaqk0Ectx1yMRC3UyZg5S+g2zYsKas7QzZ/5We3ynzhY0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR02MB1728; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040130)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041072)(6043046); SRVR:VI1PR02MB1728; BCL:0; PCL:0; RULEID:; SRVR:VI1PR02MB1728; x-forefront-prvs: 00073DB75F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(34854003)(13464003)(42154003)(54094003)(189002)(199003)(377454003)(7846002)(305945005)(33656002)(7736002)(87936001)(7696003)(105586002)(5003600100003)(189998001)(97736004)(68736007)(107886002)(5001770100001)(92566002)(586003)(74316002)(2906002)(122556002)(2501003)(5002640100001)(5890100001)(3846002)(2900100001)(2950100001)(6116002)(102836003)(81166006)(81156014)(106356001)(101416001)(3280700002)(77096005)(9686002)(8936002)(19580405001)(19580395003)(3660700001)(76176999)(54356999)(50986999)(10400500002)(86362001)(76576001)(345774005)(3480700004)(8676002)(11100500001)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR02MB1728; H:VI1PR02MB1727.eurprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: toganetworks.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: toganetworks.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jul 2016 08:47:14.2349 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 73f7e7df-ca98-4f08-bf85-f137b447da96 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR02MB1728 Subject: Re: [dpdk-dev] SRIOV hot unplug X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2016 08:47:18 -0000 Hi Bernard, Thank you for your answer. However, to do this, I have to have some communication protocol to the VM's= application in order for it to do this sequence and acknowledge that it is= now safe to proceed with detaching the device. This implies some kind of integration from the host side, which I would lik= e to avoid. Do you think might there be any other way for the application to handle suc= h event in a smooth way? Thanks, Eli > -----Original Message----- > From: Iremonger, Bernard [mailto:bernard.iremonger@intel.com] > Sent: Sunday, 17 July, 2016 11:53 PM > To: Eli Britstein; dev@dpdk.org > Cc: Iremonger, Bernard > Subject: RE: SRIOV hot unplug > > Hi Eli, > > The DPDK application in the VM should remove the slave device from the > bond device, stop, close and detach the device in the VM before doing "vi= rsh > detach-device" from the host. > > Regards, > > Bernard. > > > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Eli Britstein > > Sent: Sunday, July 17, 2016 9:58 AM > > To: dev@dpdk.org > > Subject: [dpdk-dev] SRIOV hot unplug > > > > Hello, > > > > A DPDK application with a DPDK bond device, with 2 slaves: one vnic, > > and another is a SRIOV VF connected as a pathrough. > > The bond device is configured as ACTIVE/BACKUP, and the primary is the > > VF slave. > > Now, I do "virsh detach-device" from the host, and the DPDK process in > > the VM gets segmentation fault, as it tries to poll an address that is > > not mmaped anymore. > > I wonder if this flow is supposed to be supported by DPDK, or not. > > Please advise. > > > > Thanks, > > Eli > > ---------------------------------------------------------------------- > > ------------------------ > > --------------------------------------------------- > > This email and any files transmitted and/or attachments with it are > > confidential and proprietary information of Toga Networks Ltd., and > > intended solely for the use of the individual or entity to whom they > > are addressed. > > If you have received this email in error please notify the system manag= er. > > This message contains confidential information of Toga Networks Ltd., > > and is intended only for the individual named. If you are not the > > named addressee you should not disseminate, distribute or copy this > > e-mail. Please notify the sender immediately by e-mail if you have > > received this e-mail by mistake and delete this e-mail from your > > system. If you are not the intended recipient you are notified that > > disclosing, copying, distributing or taking any action in reliance on t= he > contents of this information is strictly prohibited. > > ---------------------------------------------------------------------- > > ------------------------ > > -------------------------------------------------- ---------------------------------------------------------------------------= ---------------------------------------------------------------------- This email and any files transmitted and/or attachments with it are confide= ntial and proprietary information of Toga Networks Ltd., and intended solely for the use of the individual or en= tity to whom they are addressed. If you have received this email in error please notify the system manager. = This message contains confidential information of Toga Networks Ltd., and is intended only for the individual = named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Pleas= e notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mai= l from your system. If you are not the intended recipient you are notified that disclosing, copying, distribut= ing or taking any action in reliance on the contents of this information is strictly prohibited. ---------------------------------------------------------------------------= ---------------------------------------------------------------------