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/
Home Products Support Community News


Re: [Xen-devel] Hiding pci devices from dom0 drivers

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Hiding pci devices from dom0 drivers
From: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Date: Mon, 24 Sep 2007 09:13:17 +0100
Cc: "You, Yongkang" <yongkang.you@xxxxxxxxx>, "Han, Weidong" <weidong.han@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
Delivery-date: Mon, 24 Sep 2007 01:13:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C31D255F.DEFE%Keir.Fraser@xxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C31D255F.DEFE%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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.
> > 
> > 
> > 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

        # cat pciback 
        if [ $# -eq 0 ] ; then
           echo "Require a PCI device as parameter"
           exit 1
        for pcidev in $@ ; do
            if [ -h /sys/bus/pci/devices/"$pcidev"/driver ] ; then
                echo "Unbinding $pcidev from" $(basename $(readlink 
                echo -n "$pcidev" > /sys/bus/pci/devices/"$pcidev"/driver/unbind
            echo "Binding $pcidev to pciback"
            echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/new_slot
            echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/bind

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>