WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] pci hotplug in xcp

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] pci hotplug in xcp
From: Ritu kaur <ritu.kaur.us@xxxxxxxxx>
Date: Wed, 7 Apr 2010 11:56:19 -0700
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Delivery-date: Wed, 07 Apr 2010 11:56:55 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=08qsxzCWcJNnKi9plRprNb67wxYGc6LL8DfY5pKG5zY=; b=nYrr4bHXvMwni46ezNsKGlmb7YQunOrcmwuCB38MIjUZWxWzxrUYKXQKrZGeWJN4SD j1ZWtYBIAxFsmLFiWRxolHSLs6Pbcecy9PSFWnaHU0DEVycGEM7NLEUhg54cE+5OsB71 GAyjoJZ2v89ns74e6xpJ/rLwzmKOgyyN3wf+o=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Rni/SMANgpT5V2vKl5nrojly2ce8/v9zR2eFESGpCOCnUXRWPPQtAcR7k1dJ3CkPHD tCvFv9/PQuLWr5gyhamQvIAY7fdOfBVuEVD44EbFRStab9pNLPG3xfBpX5Na7RmiI2PT ntztZiFQRMUod3bgsM8XMtLixUqfj1n19julg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.1004071209060.7527@kaball-desktop>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <v2p29b32d341004061003ze657beeep69f1a278f3d374b8@xxxxxxxxxxxxxx> <81A73678E76EA642801C8F2E4823AD21565E5542A8@xxxxxxxxxxxxxxxxxxxxxxxxx> <alpine.DEB.2.00.1004071209060.7527@kaball-desktop>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
xl pci-attach doesn't seem to work unless vm is rebooted. Steps followed

1. modprobe pciback on dom0
2. execute xl pci-attach 1 0000:08:01.0, following msgs seen...
[-1] libxl.c:2061:libxl_device_pci_add: xc_assign_device failed: Success
[3] libxl.c:1763:libxl_create_pci_backend: Creating pci backend

3. xl pci-list 1
VFn  domain bus  slot func
0x00 0x0000 0x08 0x01 0x0

4. login into vm, lspci doesn't show anything.

5. vm:~# lspci
vm:~#

6. reboot vm, do lspci again it works.
vm:~# lspci
00:00.0 Ethernet controller: Device feed:face

I want to avoid vm reboot?

Thanks

On Wed, Apr 7, 2010 at 4:09 AM, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> wrote:
On Tue, 6 Apr 2010, Dave Scott wrote:
>
> Hi,
>
> Currently the only way to hotplug is via the ‘xenops’ commandline tool. Try:
>
> # /opt/xensource/debug/xenops plug_pci –domid .. –pci .. –devid 0
>
> And similarly for unplug_pci

xl is also present is XCP so the following should also work:

xl pci-attach <domid> <BDF>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel