From: Stefano Stabellini Subject: Re: pci hotplug in xcp Date: Thu, 8 Apr 2010 17:04:24 +0100 Message-ID: References: <81A73678E76EA642801C8F2E4823AD21565E5542A8@LONPMAILBOX01.citrite.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1828159407-1270742664=:7041" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ritu kaur Cc: "xen-devel@lists.xensource.com" , Dave Scott , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --8323329-1828159407-1270742664=:7041 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Please post the qemu logs (in XCP they go to syslog, so /var/log/messages and /tmp/qemu.$domid), they'll probably reveal an error. What is the guest operating system? If it is Linux make sure acpiphp is loaded. On Thu, 8 Apr 2010, Ritu kaur wrote: > Thanks Stefano. It did work fine first time however subsequent attach/d= etach doesn't work. What I did >=20 > 1. (VM has other-config:pci=3D"" as suggested by Ian) >=20 > 2. modprobe pciback >=20 > 3. echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/new_slot echo -n "$= pcidev" > /sys/bus/pci/drivers/pciback/bind >=20 > 4. start VM >=20 > 5. xl pci-attach 1 0000:08:01.0(Cross checked in VM can see device via = lspci) >=20 > 6. xl pci-detach 1 0000:08:01.0(Cross checked in VM, no device via lspc= i) >=20 > 7. xl pci-attach 1 0000:08:01.0(lspci in VM doesn't list the device) >=20 > 8. xl pci-list 1 in dom0 lists the device >=20 > 9. When try to detach I get > xl pci-detach 1 0000:08:01.0 >=20 > [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 /loca= l/domain/0/backend/pci/1/0 is not ready > [-1] libxl.c:2151:libxl_device_pci_remove: xc_deassign_device failed: S= uccess >=20 > dmesg in dom0 has >=20 > ... > pciback: vpci: 0000:08:01.0: assign to virtual slot 0 > pciback: vpci: 0000:08:01.0: assign to virtual slot 0 >=20 > nothing related to detach. Do I need to run any other command prior to = subsequent attach? >=20 > Thanks >=20 > On Thu, Apr 8, 2010 at 7:47 AM, Stefano Stabellini wrote: > On Thu, 8 Apr 2010, Ritu kaur wrote: > > Thanks Stefano. > > > > I am having problems binding device to pciback(this is from day= 1). 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=A0 8 07:40 /sys/bus/pci/drivers= /pciback/bind > > > > Any inputs? > > >=20 > you need to do this: >=20 > echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/new_slot > echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/bind >=20 >=20 >=20 >=20 --8323329-1828159407-1270742664=:7041 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --8323329-1828159407-1270742664=:7041--