WARNING - OLD ARCHIVES

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

xen-devel

[Xen-devel] with Xen4 config -> (pci-passthrough-strict-check no), DomU

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] with Xen4 config -> (pci-passthrough-strict-check no), DomU init reports "Error: pci: PCI Backend and pci-stub don't own device"
From: 0bo0 <0.bugs.only.0@xxxxxxxxx>
Date: Fri, 29 Jan 2010 14:10:28 -0800
Cc: horms@xxxxxxxxxxxx, dexuan.cui@xxxxxxxxx
Delivery-date: Fri, 29 Jan 2010 14:11:11 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=F2KRDQ47sVZc2jC7w5UDvi1l9rv7lDQBycmkqdATI2Y=; b=VHGmBP6mf8ZiQVPDiSbUAazZS4GWJpEWDe6yNNSJioDSHynHoWOgo0DHO/FDZJaNkx If4JAg2n523wggjC8x4z6BlWS4JhDF/lxAtK7cf2Xehsg2GwTx46UERbxPlLNf6ftY/L qZ6LQ+0o+1FiWM3XLDVYvTvxzo6Yh4GE/Mw0A=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=jxZb7fOIcNtjEKng/43miaBUGFtQgkxXiLZgEEYit3HfrSO/Apn3v1E/6kvvpkZmXm ifti1Io+av6fr2u+6Dr1cVxnyK9MTmbTbi9XHnKy6m/5sVD9FUxjey38nw0mouo8HFp2 /RkmqFFES3eoju2MPwHgcgVZjjla06V57To4s=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
testing,

        uname -ri
                2.6.33-rc5-4-xen x86_64
        rpm -qa | grep -i Xen-4
                xen-4.0.0_20873_01-29.1.x86_64

        cat test.cfg
                name         = 'test'
                builder      = 'linux'
                bootloader   = '/usr/lib/xen/boot/domUloader.py'
                bootargs     = '--entry=xvda1:vmlinuz-xen,/boot/initrd-xen'
                disk         = [
'phy:/dev/VG0/boot,xvda,w','phy:/dev/VG0/swap,xvdb,w','phy:/dev/VG0/root,xvdc,w',]
                root         = '/dev/xvdc1'
                vfb          = ['']
        xm create -c ./test.cfg

boots OK.

but if (re)enabling pci passthrough,

        vi test.cfg
                        ...
                +       pci          = [ '04:07.0' ]
                        ...

        dmesg | grep "Command line"
                [    0.000000] Command line: ... 
guestdev=0000:04:07.0,0000:04:06.0
reassign_resources iommu=1 noirqdebug clocksource=xen mce=off

for a PCI card behind a shared bridge,

        lspci -vt | grep "\[04\]" -A1
                   +-14.4-[04]--+-06.0  Intel Corporation 82541PI Gigabit
Ethernet Controller
                   |            \-07.0  Silicon Image, Inc. SiI 3124 PCI-X
Serial ATA Controller

with,

        grep passthrough /etc/xen/xend-config.sxp
                (pci-passthrough-strict-check no)
        grep hide /etc/modprobe.d/99-local.conf
                options pciback hide=(0000:04:07.0)(0000:04:06.0)

and checking,

        lsmod | egrep -i "pciback|xen"
                pciback                54471  0
                xenbus_be               3474  4 netbk,blkbk,blktap,pciback
                xenblk                 26117  0
                cdrom                  42939  2 sr_mod,xenblk
                xennet                 37545  0

@ DomU init.

        xm create -c ./test.cfg

returns,

        Using config file "./test.cfg".
        Error: pci: PCI Backend and pci-stub don't own device 0000:04:07.0

that error looks to hail from recent changes to 'XendDomainInfo.py', cref:

        http://article.gmane.org/gmane.comp.emulators.xen.devel/76231

with strict-check disabled in /xend-config.sxp, shouldn't this be ok to do/use?

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