From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: domU guest for xcp 0.1.1 Date: Tue, 16 Mar 2010 07:37:49 +0000 Message-ID: <1268725069.8652.4179.camel@localhost.localdomain> References: <29b32d341003120910l5340bc01tcada3ca2adbaf763@mail.gmail.com> <112460240.20100314121540@eikelenboom.it> <29b32d341003141329v3c6a73c0y8030cf3c6736634c@mail.gmail.com> <1056770753.20100314215224@eikelenboom.it> <29b32d341003141840x5a55e74sfb2eda56005e4f84@mail.gmail.com> <29b32d341003142030p1fe511d2ke30b8483ff8cc368@mail.gmail.com> <1268642688.8652.2792.camel@localhost.localdomain> <29b32d341003150642o4e2620edsf154b19d78aa7f42@mail.gmail.com> <1268660645.10129.25070.camel@zakaz.uk.xensource.com> <29b32d341003150646o4d215dfel1c2a2bc6d287edc@mail.gmail.com> <29b32d341003151904m2a992be5s74697d6047b864c6@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <29b32d341003151904m2a992be5s74697d6047b864c6@mail.gmail.com> 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" List-Id: xen-devel@lists.xenproject.org On Tue, 2010-03-16 at 02:04 +0000, Ritu kaur wrote: > Thanks Ian and Pasi, it took me much less time than I had thought to > fix drivers and I am able to see nic interfaces via ifconfig. I am yet > to test ping and other stuff. Had couple of questions > > 1. I used xe vm-param-clear uuid= param-name=other-config > on dom0 and rebooted domU assuming dom0 will get back pci device. It > didn't. I had to reboot dom0 in order to unhook pci device from domU. > Is this the way it is supposed to work? Aside: you need "param-key=pci" in the above or I think you will clear all keys in other-config which is unlikely to be what you want. You could also have used vm-param-set other-config:pci="". The NIC will remain bound to the pciback driver until you explicitly unbind it and rebind to another driver in domain 0 and won't be available until you do this. You can rebind the driver echo'ing the PCI BDF of the device into the "unbind" and "bind" nodes under the appropriate drivers in sysfs. e.g. for pcidev=0000:00:08.0: echo -n "$pcidev" > /sys/bus/pci/devices/"$pcidev"/driver/unbind echo -n "$pcidev" > /sys/bus/pci/drivers/$mydriver/bind > 2. Unrelated to pci passthrough, xen/stable code I downloaded doesn't > seem to have netfront drivers or any front drivers, doesn't it come by > default when you download from xen/stable? It should do. The modules have different names though, xen-netfront and xen-blkfront IIRC. Ian.