Julien Reveillet
2008-Mar-27 16:25 UTC
[Xen-users] Pci Export to get usb Dongle working under DomU (Xen 3.2)
Hello everybody, I''m experiencing some problems while exporting a whole usb hub to my DomU. My Dom0 is a Debian Etch using Xen 3.2 and kernel 2.6.18-5-xen-686 SMP on an intel core 2 duo. My DomU is a CentOs 5.1 using same kernel. Both are 32 bits environnements. I''ve exported my Usb Hub, and a ethernet card, using the pciback.hide=(04:00.0)(00:1d.0) option to Dom0 kernel. I can see it working as both devices are detected by the lspci command and i''m using my ethernet card for managing my system. The problem is that the lsusb command do not show me my usb dongle. Here are some lines taken from my dom0 dmesg output : pciback: vpci: 0000:00:1d.0: assign to virtual slot 0 pciback: vpci: 0000:04:00.0: assign to virtual slot 1 PCI: Enabling device 0000:04:00.0 (0000 -> 0003) ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 17 (level, low) -> IRQ 17 PCI: Setting latency timer of device 0000:04:00.0 to 64 PCI: Enabling device 0000:00:1d.0 (0000 -> 0001) ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 21 (level, low) -> IRQ 18 PCI: Setting latency timer of device 0000:00:1d.0 to 64 Here is my lpci output from DomU : 00:00.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01) 00:01.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller (rev 01) Here are some dmesg lines from DomU : usbcore: registered new driver usbfs usbcore: registered new driver hub Intel(R) PRO/1000 Network Driver - version 7.1.9-k4-NAPI Copyright (c) 1999-2006 Intel Corporation. PCI: Enabling device 0000:00:01.0 (0000 -> 0003) PCI: Setting latency timer of device 0000:00:01.0 to 64 USB Universal Host Controller Interface driver v3.0 e1000: 0000:00:01.0: e1000_probe: (PCI Express:2.5Gb/s:Width x1) 00:13:72:0f:xx:xx e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection PCI: Enabling device 0000:00:00.0 (0000 -> 0001) PCI: Setting latency timer of device 0000:00:00.0 to 64 uhci_hcd 0000:00:00.0: UHCI Host Controller uhci_hcd 0000:00:00.0: new USB bus registered, assigned bus number 1 uhci_hcd 0000:00:00.0: irq 18, io base 0x0000ff80 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected usb 1-2: new low speed USB device using uhci_hcd and address 2 Here is the lsusb output from DomU : Bus 001 Device 001: ID 0000:0000 Here is the lsusb output from Dom0 without exporting my Usb Hub : Bus 001 Device 002: ID 04b9:0300 Rainbow Technologies, Inc. SafeNet USB SuperPro/UltraPro As you can see it is Safenet ultrapro Dongle that is recognized by the Xen kernel. While diconnecting my dongle from my usb port, i can see, while watching the dmesg command output, that the kernel know the device is disconnected. Same while connecting it. I forgot to mention that my Usb Dongle is no more seen by Dom0 after the Usb hub exportation. Do you think it can be a driver or a xen related problem? Thanks in advance. Regards, Julien. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stephan Seitz
2008-Mar-27 21:00 UTC
Re: [Xen-users] Pci Export to get usb Dongle working under DomU (Xen 3.2)
> I forgot to mention that my Usb Dongle is no more seen by Dom0 after the > Usb hub exportation. > > Do you think it can be a driver or a xen related problem? > > Thanks in advance.Hi, I assume the usb bus is occupied (or at laest confused) by the usb drivers in dom. I would try to blacklist the usb* modules in dom0. afaik this done in /etc/modprobe.d/blacklist in debian distros. Cheers Stephan -- 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@lists.xensource.com http://lists.xensource.com/xen-users
Julien Reveillet
2008-Mar-28 14:34 UTC
Re: [Xen-users] Pci Export to get usb Dongle working under DomU (Xen 3.2)
Thanks. You were right. I also needed to put my pci "vendor:devid" in the xend-pci-permissive file in ordre to work. Best Regards, Julien. Stephan Seitz a écrit : I forgot to mention that my Usb Dongle is no more seen by Dom0 after the Usb hub exportation. Do you think it can be a driver or a xen related problem? Thanks in advance. Hi, I assume the usb bus is occupied (or at laest confused) by the usb drivers in dom. I would try to blacklist the usb* modules in dom0. afaik this done in /etc/modprobe.d/blacklist in debian distros. Cheers Stephan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users -- ____________________________________ Julien Reveillet j.reveillet@graphique-alliance.com GraphiqueAlliance Solution pré-presse et gestion de documents Centre Emeraude Cidex 3 61/69 Rue Camille Pelletan 33150 CENON Tél. 05 56 67 55 78 Fax. 05 57 54 12 77 www.graphique-alliance.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users