[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] pci hotplug in xcp


  • To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
  • From: Ritu kaur <ritu.kaur.us@xxxxxxxxx>
  • Date: Thu, 8 Apr 2010 08:53:18 -0700
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
  • Delivery-date: Thu, 08 Apr 2010 08:56:04 -0700
  • 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=eXptFEW0t1iB0qzcAu9DZe1DV2Tue0TgO+x/YzYUwWLQFGlek6aj0sZfGu/uI0tWBp Gb4IXoNbtBvBtMbUqSeu3CvkSOsOrfVl208JRVN3IBcs6FHDokvonOEZizA82lGQ6/85 kKQ90/iCO67nIvIDN8WYMF22SNMKh4jkCdO+c=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Thanks Stefano. It did work fine first time however subsequent attach/detach doesn't work. What I did

1. (VM has other-config:pci="" as suggested by Ian)

2. modprobe pciback

3. echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/new_slot
echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/bind

4. start VM

5. xl pci-attach 1 0000:08:01.0(Cross checked in VM can see device via lspci)

6. xl pci-detach 1 0000:08:01.0(Cross checked in VM, no device via lspci)

7. xl pci-attach 1 0000:08:01.0(lspci in VM doesn't list the device)

8. xl pci-list 1 in dom0 lists the device

9. When try to detach I get
xl pci-detach 1 0000:08:01.0

[0] libxl_device.c:444:libxl_wait_for_backend: Backend /local/domain/0/backend/pci/1/0 not ready
[3] libxl.c:1881:libxl_device_pci_remove_xenstore: pci backend at /local/domain/0/backend/pci/1/0 is not ready
[-1] libxl.c:2151:libxl_device_pci_remove: xc_deassign_device failed: Success

dmesg in dom0 has

...
pciback: vpci: 0000:08:01.0: assign to virtual slot 0
pciback: vpci: 0000:08:01.0: assign to virtual slot 0

nothing related to detach. Do I need to run any other command prior to subsequent attach?

Thanks

On Thu, Apr 8, 2010 at 7:47 AM, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> wrote:
On Thu, 8 Apr 2010, Ritu kaur wrote:
> Thanks Stefano.
>
> I am having problems binding device to pciback(this is from day1). Driver for this device is not loaded in dom0 so this
> device is not bound to any driver.
>
> #echo $pcidev
> 0000:08:01.0
>
> # echo -n $pcidev > /sys/bus/pci/drivers/pciback/bind
> -bash: echo: write error: No such device
>
> ls -l /sys/bus/pci/drivers/pciback/bind
> --w------- 1 root root 4096 Apr  8 07:40 /sys/bus/pci/drivers/pciback/bind
>
> Any inputs?
>

you need to do this:

echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/new_slot
echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/bind

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.