From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from jaguar.aricent.com (jaguar.aricent.com [121.241.96.11]) by dpdk.org (Postfix) with ESMTP id 779F5156 for ; Wed, 27 Nov 2013 07:08:48 +0100 (CET) Received: from jaguar.aricent.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 4547636B74; Wed, 27 Nov 2013 11:39:30 +0530 (IST) Received: from GUREXHT02.ASIAN.AD.ARICENT.COM (gurexht02.asian.ad.aricent.com [10.203.171.138]) by jaguar.aricent.com (Postfix) with ESMTP id 2EB2A36B55; Wed, 27 Nov 2013 11:39:30 +0530 (IST) Received: from GUREXMB01.asian.ad.aricent.com ([10.203.171.134]) by GUREXHT02.ASIAN.AD.ARICENT.COM ([10.203.171.138]) with mapi; Wed, 27 Nov 2013 11:39:30 +0530 From: Prashant Upadhyaya To: Stephen Hemminger Date: Wed, 27 Nov 2013 11:39:28 +0530 Thread-Topic: [dpdk-dev] Regarding VM live migration with SRIOV Thread-Index: Ac7rK4o1v4UKSqyVSZOPEeYfeyNnoQACsqPw Message-ID: References: <20131126204554.4b3f9c93@nehalam.linuxnetplumber.net> In-Reply-To: <20131126204554.4b3f9c93@nehalam.linuxnetplumber.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-TM-AS-MML: No Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Regarding VM live migration with SRIOV 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, 27 Nov 2013 06:08:48 -0000 Hi Stephen, The rte_eal_pci_probe is typically called at the startup. Now let's say a DPDK application is running with a PCI device (doing tx and= rx) and I remove that PCI device underneath (hot plugout) So how does the application now know that the device is gone ? Is it that rte_eal_pci_probe should be called periodically from, let's say,= the slow control path of the DPDK application ? Regards -Prashant -----Original Message----- From: Stephen Hemminger [mailto:stephen@networkplumber.org] Sent: Wednesday, November 27, 2013 10:16 AM To: Prashant Upadhyaya Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Regarding VM live migration with SRIOV On Wed, 27 Nov 2013 10:09:09 +0530 Prashant Upadhyaya wrote: > Hi, > > Let me be more specific. > Does DPDK support hot plugin/plugout of PCI devices ? > What typically needs to be done if this is to be achieved inside an appli= cation. > > Typically, the NIC PF or VF appears to the DPDK application as a PCI devi= ce which is probed at startup. > Now what happens if I insert a new VF dynamically and want to use it > inside the DPDK application (while it is already running), how should > this typically be done ? [hotplugin] And what happens if the DPDK > application is in control of a PCI device and that PCI device is > suddenly removed ? How can the application detect this and stop doing > data transfer on this and sort of unload it ? [hotplugout] > > If the above can be coded inside the DPDK app, then we can think of live = VM migration with SRIOV -- just hotplugin and plugout the VF's. > > Regards > -Prashant > The current implementation does look like it supports hotplug. All devices are discovered during rte_eal_pci_probe. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Please refer to http://www.aricent.com/legal/email_disclaimer.html for important disclosures regarding this electronic communication. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D