[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-users] USB Support for DomU - pciback.hide Problem
- To: xen-users@xxxxxxxxxxxxxxxxxxx
- From: "Janusz Ulanowski" <janul666@xxxxxxxxx>
- Date: Thu, 18 Oct 2007 10:20:06 +0100
- Delivery-date: Thu, 18 Oct 2007 02:20:57 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=GBr60fjrfUwZLYCab2FZg5gi5afZhogwMRAEo6rZyP/kfODupfrlSp36elPVKp1ft2sbdGI4yMd9T+R4t80xZ/PaN1ns5S3uBrVBEfw1puCZlLjqppED7zuhNDSvtC6q22UHWIX+lVZ3xlNX+iaoJjSdj5ZcSqxNTbEPa96jeUw=
- List-id: Xen user discussion <xen-users.lists.xensource.com>
On 17/10/2007, Pierre Bernhardt <pierre@xxxxxxxxxxxxxxxxxx> wrote:
Janusz Ulanowski schrieb: > On 14/10/2007, Alexandros Manakos <alexandros@xxxxxxxxxx> wrote: >> Hey everybody, >> >> i have a problem getting the usb interface running in my domU. I
>> successfully booted my dom0 and the log says "/pciback 0000:00:1d.7: >> seizing device" (so did the parameters in grub.conf etc.) >> / I also successfully started the virtual machine (domU) with "xm create
>> xmDebian pci=0000:00:1d.7" with no errors. >> BUT when i connect to the domU machine and make a "lspci" it shows >> nothing...no devices... Janusz Ulanowski schrieb: > On 14/10/2007, Alexandros Manakos <
alexandros@xxxxxxxxxx> wrote: >> Hey everybody, >> >> i have a problem getting the usb interface running in my domU. I >> successfully booted my dom0 and the log says "/pciback 0000:00:
1d.7: >> seizing device" (so did the parameters in grub.conf etc.) >> / I also successfully started the virtual machine (domU) with "xm create >> xmDebian pci=0000:00:1d.7" with no errors.
Hi,
I'd run a config which use my whole usb card in domu on debian xen on etch (3.0.3).
My NEC Usb and my ALi USB has claimed more than one pci devices. Here a tree of mypcidevices with ali:
xen:/etc/xen# lspci -vt -[0000:00]-+-00.0 Advanced Micro Devices [AMD] AMD-760 MP [IGD4-2P] System Conr +-01.0-[0000:01]----05.0 nVidia Corporation NV43 [GeForce 6200] +-07.0 Advanced Micro Devices [AMD] AMD-768 [Opus] ISA
+-07.1 Advanced Micro Devices [AMD] AMD-768 [Opus] IDE +-07.3 Advanced Micro Devices [AMD] AMD-768 [Opus] ACPI +-08.0-[0000:02]--+-00.0 Sun Microsystems Computer Corp. EBUS
| +-00.1 Sun Microsystems Computer Corp. Happy Meal | +-01.0 Sun Microsystems Computer Corp. EBUS | +-01.1 Sun Microsystems Computer Corp. Happy Meal
| +-02.0 Sun Microsystems Computer Corp. EBUS | +-02.1 Sun Microsystems Computer Corp. Happy Meal | +-03.0 Sun Microsystems Computer Corp. EBUS
| \-03.1 Sun Microsystems Computer Corp. Happy Meal +-09.0 Adaptec AHA-3960D / AIC-7899A U160/m +-09.1 Adaptec AHA-3960D / AIC-7899A U160/m \-10.0-
[0000:03]--+-00.0 Advanced Micro Devices [AMD] AMD-768 [OpusB +-04.0 Adaptec AHA-2940U/UW/D / AIC-7881U +-05.0 Silicon Image, Inc. SiI 3114 [SATALink/SATr
+-07.0 ALi Corporation USB 1.1 Controller +-07.1 ALi Corporation USB 1.1 Controller +-07.2 ALi Corporation USB 1.1 Controller
+-07.3 ALi Corporation USB 2.0 Controller \-08.0 3Com Corporation 3c905C-TX/TX-M [Tornado]
I'd trouble by pass only one of them to the domu so could you check
first, that you will export all your pci-devices of the usb-card?
Which xen-version is used in domu please?
Is it an hvm domu? Im not shure but I mean exporting pci-devices to an hvm dom is not working, yet.
Could you give me a pcilist -tv to see your device tree, please?
Do you have checked, that the device is really claimed by the pciback? Check with ls -l /sys/bus/pci/devices/0000\:00\:1d.7. Here is an example:
xen:/etc/xen# ls -l /sys/bus/pci/devices/0000\:02\:00.1/driver|less lrwxrwxrwx 1 root root 0 2007-10-17 13:17 /sys/bus/pci/devices/0000:02:00.1/\ driver -> ../../../../bus/pci/drivers/pciback
And last question: Which guest kernel you are using?
MfG... Pierre Bernhardt
Hi there,
I use xen 3.1 installed from source. 1. before hide pci
# lspci -vt -+-[0000:05]---02.0 Compaq Computer Corporation Smart Array 64xx
+-[0000:02]-+-01.0 Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) | \-01.1 Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) \-[0000:00]-+-00.0 Broadcom CMIC-WS Host Bridge (GC-LE chipset)
+-00.1 Broadcom CMIC-WS Host Bridge (GC-LE chipset) +-00.2 Broadcom CMIC-LE +-02.0 Adaptec AHA-3960D / AIC-7899A U160/m +-02.1 Adaptec AHA-3960D / AIC-7899A U160/m
+-03.0 ATI Technologies Inc Rage XL +-04.0 Broadcom Corporation NetXtreme BCM5702X Gigabit Ethernet +-05.0 Compaq Computer Corporation Advanced System Management Controller
+-0f.0 Broadcom CSB5 South Bridge +-0f.1 Broadcom CSB5 IDE Controller +-0f.2 Broadcom OSB4/CSB5 OHCI USB Controller +-0f.3 Broadcom CSB5 LPC bridge +-
11.0 Broadcom CIOB-X2 PCI-X I/O Bridge \-11.2 Broadcom CIOB-X2 PCI-X I/O Bridge
# lspci -v ... 00:0f.2 USB Controller: Broadcom OSB4/CSB5 OHCI USB Controller (rev 05) (prog-if 10 [OHCI])
Subsystem: Broadcom OSB4/CSB5 OHCI USB Controller Flags: bus master, medium devsel, latency 64, IRQ 11 Memory at f5fc0000 (32-bit, non-prefetchable) [size=4K] ...
# lsusb Bus 001 Device 002: ID 04e8:3242 Samsung Electronics Co., Ltd
Bus 001 Device 001: ID 0000:0000
--------------------------- 2. hiding pci from Dom0
# echo -n '0000:00:0f.2' > /sys/bus/pci/drivers/ohci_hcd/unbind # echo -n '0000:00:0f.2' > /sys/bus/pci/drivers/pciback/new_slot
# echo -n '0000:00:0f.2' > /sys/bus/pci/drivers/pciback/bind
----------------- 3. after hiding
# lspci -v ... 00:0f.2 USB Controller: Broadcom OSB4/CSB5 OHCI USB Controller (rev 05) (prog-if 10 [OHCI])
Subsystem: Broadcom OSB4/CSB5 OHCI USB Controller Flags: medium devsel, IRQ 11 Memory at f5fc0000 (32-bit, non-prefetchable) [disabled] [size=4K] ... # lsusb [empty]
----------------------------
4. starting domU with option in config pci = [ '00:0f.2' ]
xm log in attachement
----------------------
5. lspci -v in DomU [empty]
------------
Thanks for you help
Attachment:
xmlog.log
Description: Text Data
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|