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

Re: [Xen-users] pciback.hide with ISDN Cards


Hi all,

Thaks to Stephan... his mail inspired me to look closer to the syntax :-)
and now it works, so here is the config:

In /boot/grub/menu.lst:
title XEN -- openSUSE 10.3 - PAE
   root (hd0,4)
   kernel /xen-pae.gz
   module /vmlinuz-2.6.22.13-0.3-xenpae root=/dev/mapper/nvidia_deihceca_part7 vga=normal resume=/dev/mapper/nvidia_deihceca_part6 splash=silent showopts pciback.hide=(0000:01:00.0)(0000:01:01.0)
   module /initrd-2.6.22.13-0.3-xenpae

In /etc/init.d/boot.local:
# HFC ISDN PCI Devices remove from Dom0 and also set permissive
modprobe pciback hide='(01:00.0)(01:01.0)'
echo -n 0000:01:00.0 > sys/bus/pci/drivers/pciback/permissive
echo -n 0000:01:01.0 > sys/bus/pci/drivers/pciback/permissive

Well the entry in /var/log/boot.msg is an little bit disturbing but if you ignore it pci delegation will work ;-)
<3>Unknown boot option `pciback.hide=(0000:01:00.0)(0000:01:01.0)': ignoring
to be sure sure look at /var/log/messages and you will find:
Dec 20 09:51:20 print kernel: pciback 0000:01:00.0: seizing device
Dec 20 09:51:20 print kernel: pciback 0000:01:01.0: seizing device
Dec 20 09:51:20 print kernel: ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 18
Dec 20 09:51:20 print kernel: ACPI: PCI Interrupt 0000:01:01.0[A] -> Link [LNKB] -> GSI 18 (level, low) -> IRQ 21
Dec 20 09:51:20 print kernel: ACPI: PCI interrupt for device 0000:01:01.0 disabled
Dec 20 09:51:20 print kernel: ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 17
Dec 20 09:51:20 print kernel: ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 17 (level, low) -> IRQ 22
Dec 20 09:51:20 print kernel: ACPI: PCI interrupt for device 0000:01:00.0 disabled


so you may start the DomU, add the devices to the DomU config:
...
pci=[ '01:00.0','01:01.0' ]
...


PS: Happy New Year

Mit freundlichen Grüßen / with kind regards
Gerhard Possler
IT Architect
IBM Enterprise Linux Services

ELS Wiki@IBM (only accessible via IBM intranet)
IT-Services and Solutions GmbH
Rathausstr. 7, D-09111 Chemnitz
Geschäftsführung: Rainer Laier, Michael Mai
Sitz der Gesellschaft: Chemnitz
Registergericht: Amtsgericht Chemnitz, HRB 18409

http://www.itsas.de/
gerhard.possler@xxxxxxxxxx
Mobil +49 (0) 160 90578637




Stephan Seitz <s.seitz@xxxxxxxxxxxx>
Sent by: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

19.12.2007 14:10

To
Gerhard Possler/Germany/IBM@IBMDE
cc
xen-users@xxxxxxxxxxxxxxxxxxx
Subject
Re: [Xen-users] pciback.hide with ISDN Cards





Hi,

we've done this with a fritz pci isdn card successfully.
as that machine in no way uses the isdn stack at dom0,
i removed the kernel module and rebuild the dom0's initrd
without this module (I didn't trust the /etc/modprobe ;) )

one line from the lspci:

03:01.0 Network controller: AVM Audiovisuelles MKTG & Computer System GmbH Fritz!PCI v2.0 ISDN (rev 02)

the grub entry:

title           Xen 3.1-i386-pae / Ubuntu, kernel 2.6.20-100-server
root            (hd0,1)
kernel          /xen-3.1-i386-pae.gz
module          /vmlinuz-2.6.20-100-server root=UUID=09503299-c560-45de-b69d-8d98eadc7b23 ro console=tty0 irq=poll
pciback.hide=(03:01.0)
module          /initrd.img-2.6.20-100-server
quiet
savedefault

the domU conf:

kernel = '/boot/vmlinuz-2.6.19-4-server'
ramdisk = '/boot/initrd.img-2.6.19-4-server'
memory  = '1832'
cpus="0"
root    = '/dev/sda1 ro'
disk    = [ 'phy:vg0/XXXXX-disk,sda1,w', 'phy:vg0/XXXXX-swap,sda2,w' ]
name    = 'XXXXX'
vif  = [ 'mac=XX:XX:XX:XX:XX, bridge=xenbr0', ' mac=XX:XX:XX:XX:XX:XX, bridge=xenbr1' ]
pci = [ '03:01.0' ]

on_reboot   = 'restart'
on_crash    = 'restart'

Hope this helps.

Regards,

Stephan




Gerhard Possler schrieb:
>
> Hi all,
>
> did somebody successfuly export ISDN Cards to DomU?
>
> I want to have 2 ISDN Cards in DomU (for Asterisk with mISDN)
> lspci -vt
> -[0000:00]-+-00.0  nVidia Corporation MCP55 Memory Controller
>            +-01.0  nVidia Corporation MCP55 LPC Bridge
>            ...
>            +-05.1  nVidia Corporation MCP55 SATA Controller
>            +-06.0-[0000:01]--+-00.0  Cologne Chip Designs GmbH ISDN
> network controller [HFC-PCI]
>            |                 +-01.0  Cologne Chip Designs GmbH ISDN
> network controller [HFC-PCI]
>            |                 \-02.0  S3 Inc. 86c764/765 [Trio32/64/64V+]
>            +-06.1  nVidia Corporation MCP55 High Definition Audio
>
> There are 2 ISDN Card under following PCI Adresses: 0000:01:00.0 and
> 0000:01:01.0
>  
> so under /boot/grub/menu.lst:
> title XEN -- openSUSE 10.3 - PAE
>     root (hd0,4)
>     kernel /xen-pae.gz pciback.hide=(0000:01:00.0)(0000:01:01.0)
>     module /vmlinuz-2.6.22.13-0.3-xenpae
> root=/dev/mapper/nvidia_deihceca_part7 vga=normal
> resume=/dev/mapper/nvidia_deihceca_part6 splash=silent showopts
>     module /initrd-2.6.22.13-0.3-xenpae
>
> and under /etc/modprobe.conf.local:
> options pciback hide=(0000:01:00.0)(0000:01:01.0)
> install hfcpci /sbin/modprobe pciback ; /sbin/modprobe --first-time
> --ignore-install hfcpci
>
> even combinations of above config and also when using the address short
> form 01:00.0 and 01:01.0 does't export the device, in all cases the
> start of DomU shows:
> Using config file "/etc/xen/vm/opensuse".
> Error: pci: failed to locate device and parse it's resources - [Errno 2]
> No such file or directory: '/sys/bus/pci/devices/0000:01:00.0/driver'
>
> DomU config file is:
> name="opensuse"
> ostype="opensuse"
> uuid="b24449ce-e89a-b107-a96a-da91ce26651f"
> memory=384
> vcpus=1
> > > > > > > localtime=0
> builder="linux"
> bootloader="/usr/lib/xen/boot/domUloader.py"
> bootargs="--entry=xvda2:/boot/vmlinuz-xenpae,/boot/initrd-xenpae"
> disk=[ 'file:/srv/xen/opencave/hda,xvda,w', ]
> vif=[ 'mac=00:16:3e:00:00:01', ]
> nographic=1
> pci=[ '01,00,0', '01,01,0' ]
>
> I don't belive it is the openSUSE kernel 2.6.22.13-0.3-xenpae because on
> an identical system with an 3Com NIC the export of the PCI device works
> perfect...
> Here it's enough to set in /etc/modprobe.conf.local:
> options pciback hide (02:0d.0)
> install 3c59x /sbin/modprobe pciback ; /sbin/modprobe --first-time
> --ignore-install 3c59x
>
> also commenting out the eth1 device in /etc/modprobe.conf and remove
> network config for eth1.
>
>
> I'm a little bit confused  because the working mISDN doesn't show an any
> hfcpci device under /sys/bus/pci/drivers that i could unbind...
>
>
> So the question is did somebody export ISDN PCI devices to DomU (Vendor
> doesn't matter)
>
> Mit freundlichen Grüßen / with kind regards
> *Gerhard Possler*
> IT Architect
> IBM Enterprise Linux Services_
> __ELS Wiki_ <
http://w3.webahead.ibm.com/w3ki/display/ELSde>@IBM (only
> accessible via IBM intranet)                  *IT-Services and Solutions GmbH*
> Rathausstr. 7, D-09111 Chemnitz
> Geschäftsführung: Rainer Laier, Michael Mai
> Sitz der Gesellschaft: Chemnitz
> Registergericht: Amtsgericht Chemnitz, HRB 18409_
> __http://www.itsas.de/_                  *gerhard.possler@xxxxxxxxxx*
> Mobil +49 (0) 160 90578637
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
>
http://lists.xensource.com/xen-users


--
Stephan Seitz
Senior System Administrator

*netz-haut* e.K.
multimediale kommunikation

zweierweg 22
97074 würzburg

fon: +49 931 2876247
fax: +49 931 2876248

web:
www.netz-haut.de <http://www.netz-haut.de/>

registriergericht: amtsgericht würzburg, hra 5054
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

Attachment: s_seitz.vcf
Description: Binary data

Attachment: signature.asc
Description: Binary data

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>