From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40040.outbound.protection.outlook.com [40.107.4.40]) by dpdk.org (Postfix) with ESMTP id 5EF15F94 for ; Tue, 19 Jul 2016 13:18:46 +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=8eEI5ocx5pwyee2G5YWLMAy/7dt0bjEouE37cU/Ytco=; b=WyIWsKbeYEkQ9/j9v9tBVv1+n0ka48VJ3XtBqFuiVTPdEBM3cU5WOrpXt5Yp+5+X73HCisPtH0DcgY1IaG288M7WMRMKf3Ue4MRgWdxgLjZiTCAd4Joma/0Ka7a1KA0vk8VM8b33vCwKdvkSqlAkzmenChLjfiweLONIRwFgSpA= Received: from VI1PR02MB1727.eurprd02.prod.outlook.com (10.166.41.144) by VI1PR02MB1726.eurprd02.prod.outlook.com (10.166.41.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10; Tue, 19 Jul 2016 11:18:44 +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; Tue, 19 Jul 2016 11:18:44 +0000 From: Eli Britstein To: Tetsuya Mukawa , "dev@dpdk.org" CC: "Iremonger, Bernard" Thread-Topic: [dpdk-dev] SRIOV hot unplug Thread-Index: AdHgBokZEAYxOrFcS1eredTEovecxAAZgTVwABioLMAAJjldAAARcAJg Date: Tue, 19 Jul 2016 11:18:43 +0000 Message-ID: References: <8CEF83825BEC744B83065625E567D7C21A04F18C@IRSMSX108.ger.corp.intel.com> <7be321ba-9eb7-2932-ae73-dc7a33b225e6@igel.co.jp> In-Reply-To: <7be321ba-9eb7-2932-ae73-dc7a33b225e6@igel.co.jp> 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: 7395f14d-b755-4cc0-fea4-08d3afc6720f x-microsoft-exchange-diagnostics: 1; VI1PR02MB1726; 6:zrtCKv85MPMZDDWaAXab9CFw8a5pi1c8OqW/qL5rclYjF1Eak1PdBGcDpMuA//e4Kmp7FLMdepfW5P4IKwfAdIEdDum5SG+/LRgQAsKtYPoPnQAzgLpkmjIpj7NRI7VgMQxE4Dlw5u6ATbHp0B1WPhqE7FOiSC/HS9k8x8PpiAfDbnbYgxexVbP0r5vt+4X3bZcwBNeOgsT4ffAjkD8K9ay7IR0pvtsifZzgQHqJ/vHCvVPm2sIhnH2DTFSvYug81W2O4yq+44TxVHfFsFwg19R0BXYV2cCm5KP/1Gn2NF2/acYB1k5shsBvalvUZS8V; 5:FF3Gb5jUbJkKgotcxm747gy1osgwu97SBOXKf9hHPdJ1VUrBWRaONGBvlsCai5YNY54DwOt/1+yJPuYU/2ShUu6ktioaLHkxe5uT+6WQLjYOb+gjtmvXJgoCzHT+JgVAQxOTJNTfQBRt/jDrZXOfyw==; 24:GsZ4E05LpH5x8is74MoRkLKDEwlxlHbl865aTU3D+3HafnvaEZ/J2G4UlFpUbCrOI8tGA4RA/9uupGLdTj3ay860971DALk3sdNfpv7cxE4=; 7:/OFACcGOs2NNaVoWZhmqBBtX4GL6khXoQ35lda0vpXyG+ct9X2D3zgk/rGCa4FhWL4B5ok8GRRfnrwy/PY5jEmg20amMU9DbG/gmXmWH+o+7Ysh3DZZ23pg166qoCg+xaiutF9nSpzi/Xc9YuQvyzQIBdheOfLMQTh2Bf9+0vPaEzInegVSrog4GtuuSB/dITgBSIuiGbXrOKZszNLH2oyOUUyLDPzb9hChzTEk+HtaBngZOPdfi9/q7dpvKOfEI x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR02MB1726; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699)(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040130)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041072)(6043046); SRVR:VI1PR02MB1726; BCL:0; PCL:0; RULEID:; SRVR:VI1PR02MB1726; x-forefront-prvs: 000800954F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(54094003)(189002)(377454003)(24454002)(42154003)(13464003)(34854003)(199003)(5002640100001)(105586002)(33656002)(9686002)(10400500002)(101416001)(87936001)(74316002)(8936002)(11100500001)(106356001)(50986999)(93886004)(76176999)(86362001)(2501003)(5890100001)(76576001)(92566002)(19580405001)(19580395003)(81166006)(77096005)(6116002)(81156014)(586003)(5003600100003)(7696003)(7736002)(102836003)(305945005)(7846002)(8676002)(3846002)(189998001)(3280700002)(4326007)(2900100001)(68736007)(2950100001)(122556002)(66066001)(54356999)(2906002)(97736004)(3660700001)(345774005)(5001770100001)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR02MB1726; 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: 19 Jul 2016 11:18:43.8195 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 73f7e7df-ca98-4f08-bf85-f137b447da96 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR02MB1726 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: Tue, 19 Jul 2016 11:18:46 -0000 > -----Original Message----- > From: Tetsuya Mukawa [mailto:mukawa@igel.co.jp] > Sent: Tuesday, 19 July, 2016 5:49 AM > To: Eli Britstein; dev@dpdk.org > Cc: Iremonger, Bernard > Subject: Re: [dpdk-dev] SRIOV hot unplug > > Hi Eli, > > On 2016/07/18 17:47, Eli Britstein wrote: > > 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= like > to avoid. > > I guess you should have some kind of communication channel to notice the > hotpluging events from host to VM. [Eli Britstein] In order just to notice the hotplugging events inside the VM, I can use add= some udev action in the VM, in /etc/udev/rules.d/XXX However, those are asynchronous events. The host proceeds with unplugging w= ithout waiting for the VM to acknowledge it. > > > Do you think might there be any other way for the application to handle > such event in a smooth way? > > So far, I guess having one more virtio-net device will be easiest way. [Eli Britstein] Could you please elaborate your meaning? How do you mean to use this extra = virtio-net device? To clarify: I would like to have my bond device automatically set the vNIC = as its primary, and close/remove the VF before it is unplugged. Thanks, Eli > > Thanks, > Tetsuya > > > > > 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 "virsh 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 > 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. 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 the > >> contents of this information is strictly prohibited. > >>> -------------------------------------------------------------------- > >>> -- > >>> ------------------------ > >>> -------------------------------------------------- > > > > ---------------------------------------------------------------------- > > ---------------------------------------------------------------------- > > ----- 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 the= y 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. Please notify the sender immediately by e-mail if > > you have received this e-mail by mistake and delete this e-mail from yo= ur > system. If you are not the intended recipient you are notified that discl= osing, > copying, distributing or taking any action in reliance on the 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. ---------------------------------------------------------------------------= ---------------------------------------------------------------------