[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: [Xen-devel] Hiding pci devices from dom0 drivers
What are your experiences with the reliability of the following "pciback" script to dynamically "hide" pci devices after boot? I found it cause system hangs about 50% of the time. I'm also having some issues with xen0 kernel. It has e1000 driver as builtin. This causes problems since I need to use the latest e1000 driver from sourceforge so I need to modify xen0 linux config to mark e1000 as "m". In any case, the path of least resistence for me right now is to come up with a set of instructions to ask people to download linux-2.6.18-xen.hg manually, move it to xen-unstable.hg, turn on PCIDEV_BACKEND='y' in config file, and then do "make install" in xen-unstable.hg. Let me know if there is a simpler way to do this. Also >-----Original Message----- >From: Ian Campbell [mailto:Ian.Campbell@xxxxxxxxxxxxx] >Sent: Monday, September 24, 2007 1:13 AM >To: Keir Fraser >Cc: Kay, Allen M; xen-devel@xxxxxxxxxxxxxxxxxxx; Han, Weidong; >You, Yongkang >Subject: Re: [Xen-devel] Hiding pci devices from dom0 drivers > >On Mon, 2007-09-24 at 08:27 +0100, Keir Fraser wrote: >> On 24/9/07 08:10, "Kay, Allen M" <allen.m.kay@xxxxxxxxx> wrote: >> >> > Currently we had to manually make the following change in >linux config >> > before building dom0 kernel to enable pciback.hide functionality in >> > dom0. >> > >> > -CONFIG_XEN_PCIDEV_BACKEND=m >> > +CONFIG_XEN_PCIDEV_BACKEND=y >> > >> > What do you think about having this change check into your >tree so that >> > we can get rid of this manual step? If you are ok with >it, we can send >> > you a patch for it. >> >> It's already '=y' in the -xen0 kernel. -xen is a modular >kernel config to >> keep the base kernel a reasonable size. PCI device hiding is still an >> esoteric option that most users will not use. > >You can also get the same effect as pciback.hide entirely from >userspace: > > # cat pciback > > #!/bin/sh > > if [ $# -eq 0 ] ; then > echo "Require a PCI device as parameter" > exit 1 > fi > > for pcidev in $@ ; do > if [ -h /sys/bus/pci/devices/"$pcidev"/driver ] ; then > > echo "Unbinding $pcidev from" $(basename >$(readlink /sys/bus/pci/devices/"$pcidev"/driver)) > echo -n "$pcidev" > >/sys/bus/pci/devices/"$pcidev"/driver/unbind > fi > echo "Binding $pcidev to pciback" > echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/new_slot > echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/bind > done > > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |