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-users

[Xen-users] qla2xxx passthrough

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] qla2xxx passthrough
From: Simon Hintermann <hintermann.simon@xxxxxxxxx>
Date: Mon, 23 Mar 2009 13:02:11 +0100
Delivery-date: Mon, 23 Mar 2009 05:02:53 -0700
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:content-type; bh=9wS47A4wzR2rUAgJenPNkdjIwYELe62mRY5N6/qKP8w=; b=LYLOhW5v/QcHDW/MwIgSUBD/+42ZIyIO+3PIb3qMeUG3KT7+wWta99+sxvPx0kltBN iZLSkndrBlxd/mVLVuXPur5sk79J2/7M+1A9CPnkfKHgLJ47p39MgU0V6zkU4Ovukk92 tAtTT8Gofzn+Ws+cuAqU1uiT4BHxaWFatW9DA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=c+dsnLoV/A1DzqZUwA4NSMgPY9i5D4MgZjrBfxUheAKEPV9rexbvmvuXI5R396tCip SiBnA9AZWs4j7vISxpf5sudOg4YLy5x0GyZjJfta1uo/4U9c5yw4/hE0bYBF0Vfh3JsZ 1SlbCHKqlblf06iR1zUudMjZsjFRLym3/ECig=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello all,

I'm working with a qlogic fiber channel connection to my SAN. My goal is to access it directly from a domU to build up an iscsitarget server. Working with Xen 3.2, I tried to access it by a simple pci = [ ... ] in the cfg file, but I get an ugly:

[    1.498824] qla2xxx 0000:00:01.1: enabling device (0000 -> 0002)
[    1.499221] qla2xxx 0000:00:01.1: Found an ISP2432, irq 17, iobase 0xd1024000
[    1.499470] qla2xxx 0000:00:01.1: [ERROR] Failed to allocate memory for adapter
[    1.499510] qla2xxx: probe of 0000:00:01.1 failed with error -12


Here is my lspci:

# lspci
06:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
06:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)


Here are the boot option (menu.lst):

title           Xen 3.2-1-i386 / Debian GNU/Linux, kernel 2.6.26-1-xen-686 (hd0)
root            (hd0,0)
kernel          /xen-3.2-1-i386.gz
module          /vmlinuz-2.6.26-1-xen-686 root=/dev/mapper/vg00-root ro console=tty0 pciback.hide=(0000:06:00.0)(0000:06:00.1) pciback.permissive
module          /initrd.img-2.6.26-1-xen-686


Here is the pci line (iscsitarget.cfg):

pci = [ '06:00.0','06:00.1' ]


Here is my pciback content:

/sys/bus/pci/drivers/pciback# ls -la
total 0
drwxr-xr-x  2 root root    0 mar 23 11:52 .
drwxr-xr-x 17 root root    0 mar 23 11:46 ..
lrwxrwxrwx  1 root root    0 mar 23 11:48 0000:06:00.0 -> ../../../../devices/pci0000:00/0000:00:1c.0/0000:06:00.0
lrwxrwxrwx  1 root root    0 mar 23 11:51 0000:06:00.1 -> ../../../../devices/pci0000:00/0000:00:1c.0/0000:06:00.1


And finally the content of xend-pci-quirks.sxp:

(qla2xxx
        (pci_ids  
                ('1077:2432:1077:0138' # Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
                ) 
        )

        (pci_config_space_fields
                ('00000004:2:00000000' # From pciback report (cat /sys/bus/pci/drivers/pciback/quirks)
     '0000003c:1:00000000'
     '0000003d:1:00000000'
     '0000000c:1:00000000'
     '0000000d:1:00000000'
     '0000000f:1:00000000'
     '00000010:4:00000000'
     '00000014:4:00000000'
     '00000018:4:00000000'
     '0000001c:4:00000000'
     '00000020:4:00000000'
     '00000024:4:00000000'
     '00000030:4:00000000'
     '00000074:2:00000000'
     '00000076:2:00000000'
     '00000078:4:00000000'
     '00000044:2:00000000'
     '00000046:2:00000000'
     '00000048:2:00000000'
     '0000004a:1:00000000'
     '0000004b:1:00000000'
                ) 
        )
)

Hoping someone can give me a hint...
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>