From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f171.google.com (mail-pf0-f171.google.com [209.85.192.171]) by dpdk.org (Postfix) with ESMTP id 2547C377A for ; Wed, 20 Jul 2016 07:16:52 +0200 (CEST) Received: by mail-pf0-f171.google.com with SMTP id p64so15062248pfb.1 for ; Tue, 19 Jul 2016 22:16:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=dxkIFOYwZqtS5lFClalwtApX6FAoH1nWMojT3x/s4eg=; b=DCuz/ZqLyTVD9aFr6bhf4wDfDxU1Si1fMAu/tiNPz79txEy6drCLcuzZv5dcVybEJL kWcfheWTp6+0USO4L4dbP+0Af5IttbB+OG693XtdrQMHb/wePWWf6MBtF1ncz3nS6PSb cAKzS010wE82BCupjL049cL2i7v3HY6RRIbcPXxt3HFxSSKZV8TY7vtvgEpysLhn4jnf keGFePc1E+1XCoGR9vuFG7fhDjjNsdAPihilq+M1xR4FCbWv0IIHwp/MZlkUFK7N4bM3 GwOl24zG9hFFXrPCM6Z3MmVnID4+7rhOAziZaVkvd+YadxreaNBvJFSu/iFRespGDe0n 2MWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=dxkIFOYwZqtS5lFClalwtApX6FAoH1nWMojT3x/s4eg=; b=I7ccyX0nJzziEDrsHqkozYR8nAR5hbQ6C/UrBGCPCbrXillbWGyLELsAog4tO2u1Mr HOcxB5raWBD5008Q3T/DyX3SUErT6dSUq26Iah640bgAXgfVmEIcEpi4pNCAPlLy/oaR qQy41dSz/pAQvZgryv0VUOjGy20EkrX1gVZ1ju8CJhI334kboY57g1bPeHa6PT7gxS1M u4qD7nYO2fLPpI0IkgIghTE5yHzfvD56XNPXp7I7B8/tXYs1BJvUrM2ojjtgw0n2ALvv VJKIpmyGcAZAXDhY92c7NULP/3sShV9KGky+HDQBAL+lwZ2E3Z/+7DZhuUFA4k1RlAQc B3Fw== X-Gm-Message-State: ALyK8tK4RIPuVwr4X67S7DwJE6bob8n07itvobd2mfPSl+XoxCncqyRqiPH2BC1L30dzY6hJ X-Received: by 10.98.57.151 with SMTP id u23mr61709074pfj.4.1468991811357; Tue, 19 Jul 2016 22:16:51 -0700 (PDT) Received: from [192.168.1.4] (p5221004-ipngn11502marunouchi.tokyo.ocn.ne.jp. [153.163.183.4]) by smtp.googlemail.com with ESMTPSA id c66sm1133138pfd.24.2016.07.19.22.16.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jul 2016 22:16:50 -0700 (PDT) To: Eli Britstein References: <8CEF83825BEC744B83065625E567D7C21A04F18C@IRSMSX108.ger.corp.intel.com> <7be321ba-9eb7-2932-ae73-dc7a33b225e6@igel.co.jp> Cc: "dev@dpdk.org" , "Iremonger, Bernard" From: Tetsuya Mukawa Message-ID: Date: Wed, 20 Jul 2016 14:16:52 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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: Wed, 20 Jul 2016 05:16:52 -0000 Hi Eli, On 2016/07/19 20:18, Eli Britstein wrote: > > >> -----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 without waiting for the VM to acknowledge it. Yes, it will be asynchronous. > >> >>> 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? If you have one more network device, you can send and receive some kind of control messages between host and VM. It may be okay to use general socket API for this additional network device. So I guess it's not so difficult to additionally implement it. Thanks, Tetsuya > > 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 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 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. > ------------------------------------------------------------------------------------------------------------------------------------------------ >