From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f51.google.com (mail-pb0-f51.google.com [209.85.160.51]) by dpdk.org (Postfix) with ESMTP id 91199156 for ; Wed, 27 Nov 2013 07:23:14 +0100 (CET) Received: by mail-pb0-f51.google.com with SMTP id up15so9678037pbc.38 for ; Tue, 26 Nov 2013 22:24:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=MesjVxUsJHU4mGLgPsqlkDuT//TVlcxuHaKnWhrovEI=; b=lXpA90B1h/0r1cmh2EwSjGrHByI+R0RhNY/bmOxAi8asdsU2C1MNm+ueE7BUMWbE27 ZVhMkgDTupszllPIrH1NHakdmi8YLssRD6Jn4lb0G57+e3W+lnKIBmJYoIaWUEk+cVOM iT8HsDWLcou1t9ZM/Sq/83dMzp5pY6OaqUTr7RN0TmOGKaLXUcEWqaBvBcKPzG3l7cEa 9JmwekdDx9G2mnpCN46db0mxrpaVLddzgvg6OTFx5KRZvPuG0CiPMzzYuSSdIVwd7uxx SGRIvtSCI8nH9h2h0pZakjGSmEwRUSQj1vc0zOcjd29QNZMVtoZtieDUd37wP9V3OGFM cQxg== X-Gm-Message-State: ALoCoQkrgZEBHeMS3eToV0IEJCHXRkg7XZlFFTSpohjxLvlllsKWHGD2PyYR7Q8OrEM+gtmuRgP5 X-Received: by 10.68.66.103 with SMTP id e7mr3353771pbt.120.1385533454325; Tue, 26 Nov 2013 22:24:14 -0800 (PST) Received: from nehalam.linuxnetplumber.net (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id ye1sm96692439pab.19.2013.11.26.22.24.13 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 26 Nov 2013 22:24:14 -0800 (PST) Date: Tue, 26 Nov 2013 22:24:11 -0800 From: Stephen Hemminger To: Prashant Upadhyaya Message-ID: <20131126222411.41d0e8fd@nehalam.linuxnetplumber.net> In-Reply-To: References: <20131126204554.4b3f9c93@nehalam.linuxnetplumber.net> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:23:15 -0000 On Wed, 27 Nov 2013 11:39:28 +0530 Prashant Upadhyaya wrote: > 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 > Like I said current code doesn't do hotplug. If you wanted to add it, you would have to refactor the PCI management layer.