[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] Even Yet Another PCI passthrough question
Well I could not wait until 3.1.0. I want to attach an usb device too an guest by passing through the whole usb bus. I have seen it work in 2.6.32.4(something). On rc4 it almost works: Xen: version 4.1.1 dom0: kernel 3.1.0-rc4+ guest: kernel 3.0.0 pure pv by lac off hvm capable hardware grub: ...multiboot /xen-4.1.1.gz dom0_mem=512M dom0_max_vcpus=1 loglvl=all guest_loglvl=all com1=115200,8n1 console=com1,vga module /vmlinuz-3.1.0-rc4 root=/dev/md2 ro console=hvc0 earlyprintk=xen xen-pciback.hide=(00:1d.0)(00:1d.1)(00:1d.2)(00:1d.7) pci=resource_alignment=00:1d.0\;00:1d.1\;00:1d.2\;00:1d.7 Only 00:1d.7 was complaining about "non-page-aligned MMIO BAR" so aligning the other three is overdone? guest boot: ... [ 1.284326] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.284913] ehci_hcd 0000:00:00.7: enabling device (0000 -> 0002) [ 1.286009] ehci_hcd 0000:00:00.7: Xen PCI mapped GSI23 to IRQ32 [ 1.286112] ------------[ cut here ]------------[ 1.286178] WARNING: at /home/hans/linux-2.6/arch/x86/xen/mmu.c:486 xen_make_pte_debug+0x154/0x160() [ 1.286245] 0xbf700000 is using VM_IO, but it is 0xfffffffffffff000! [ 1.286303] Modules linked in: [ 1.286393] Pid: 1, comm: swapper Not tainted 3.0.0 #4 [ 1.286449] Call Trace: [ 1.286532] [<ffffffff8105be8f>] warn_slowpath_common+0x7f/0xc0 [ 1.286621] [<ffffffff8105bf86>] warn_slowpath_fmt+0x46/0x50 [ 1.286710] [<ffffffff81007300>] ? xen_clocksource_read+0x20/0x30 [ 1.286820] [<ffffffff810051f4>] xen_make_pte_debug+0x154/0x160[ 1.286913] [<ffffffff8100402b>] __raw_callee_save_xen_make_pte_debug+0x11/0x1e [ 1.287009] [<ffffffff812f9f7f>] ? ioremap_page_range+0x22f/0x300 [ 1.287100] [<ffffffff8103390e>] __ioremap_caller+0x2be/0x3b0 [ 1.287190] [<ffffffff8145d62f>] ? usb_hcd_pci_probe+0x18f/0x340 [ 1.287196] [<ffffffff810549d0>] ? try_to_wake_up+0x2b0/0x2b0 [ 1.287196] [<ffffffff81033a57>] ioremap_nocache+0x17/0x20 [ 1.287196] [<ffffffff8145d62f>] usb_hcd_pci_probe+0x18f/0x340 [ 1.287196] [<ffffffff8161833e>] ? _raw_spin_unlock_irqrestore+0x1e/0x30 [ 1.287196] [<ffffffff8132047f>] local_pci_probe+0x5f/0xd0 [ 1.287196] [<ffffffff81321d18>] pci_device_probe+0x88/0xb0 [ 1.287196] [<ffffffff813bad6a>] ? driver_sysfs_add+0x7a/0xb0 [ 1.287196] [<ffffffff813bb076>] driver_probe_device+0x96/0x1c0 [ 1.287196] [<ffffffff813bb1a0>] ? driver_probe_device+0x1c0/0x1c0 [ 1.287196] [<ffffffff813bb24b>] __driver_attach+0xab/0xb0 [ 1.287196] [<ffffffff813bb1a0>] ? driver_probe_device+0x1c0/0x1c0 [ 1.287196] [<ffffffff813ba01e>] bus_for_each_dev+0x5e/0x90 [ 1.287196] [<ffffffff813bacee>] driver_attach+0x1e/0x20 [ 1.287196] [<ffffffff813ba855>] bus_add_driver+0xc5/0x280 [ 1.287196] [<ffffffff81b100d6>] ? mon_bin_init+0xb5/0xb5 [ 1.287196] [<ffffffff813bb846>] driver_register+0x76/0x140 [ 1.287196] [<ffffffff81615642>] ? printk+0x41/0x43 [ 1.287196] [<ffffffff81b100d6>] ? mon_bin_init+0xb5/0xb5 [ 1.287196] [<ffffffff81320b76>] __pci_register_driver+0x56/0xd0 [ 1.287196] [<ffffffff81b10140>] ehci_hcd_init+0x6a/0x78 [ 1.287196] [<ffffffff81002164>] do_one_initcall+0x44/0x190 [ 1.287196] [<ffffffff81adecea>] kernel_init+0xc8/0x14d [ 1.287196] [<ffffffff81619f64>] kernel_thread_helper+0x4/0x10 [ 1.287196] [<ffffffff81619063>] ? int_ret_from_sys_call+0x7/0x1b [ 1.287196] [<ffffffff81618661>] ? retint_restore_args+0x5/0x6 [ 1.287196] [<ffffffff81619f60>] ? gs_change+0x13/0x13 [ 1.287196] ---[ end trace 23d374c0300324c4 ]--- [ 1.289626] ehci_hcd 0000:00:00.7: setting latency timer to 64 [ 1.289724] ehci_hcd 0000:00:00.7: EHCI Host Controller[ 1.290891] ehci_hcd 0000:00:00.7: new USB bus registered, assigned bus number 1 [ 1.291732] ehci_hcd 0000:00:00.7: debug port 1 [ 1.295802] ehci_hcd 0000:00:00.7: Enabling legacy PCI PM [ 1.296309] ehci_hcd 0000:00:00.7: cache line size of 64 is not supported [ 1.296578] ehci_hcd 0000:00:00.7: irq 32, io mem 0xbf700000 [ 1.310164] ehci_hcd 0000:00:00.7: USB 2.0 started, EHCI 1.00 [ 1.310452] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002[ 1.310492] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.310530] usb usb1: Product: EHCI Host Controller [ 1.310564] usb usb1: Manufacturer: Linux 3.0.0 ehci_hcd [ 1.310598] usb usb1: SerialNumber: 0000:00:00.7 [ 1.311517] xvda: xvda1 xvda2 [ 1.312965] hub 1-0:1.0: USB hub found [ 1.313067] hub 1-0:1.0: 6 ports detected [ 1.316526] 116x: driver isp116x-hcd, 03 Nov 2005 [ 1.317133] driver isp1362-hcd, 2005-04-04 [ 1.317659] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.318241] uhci_hcd: USB Universal Host Controller Interface driver [ 1.318553] uhci_hcd 0000:00:00.0: enabling device (0000 -> 0001) [ 1.318892] xen_map_pirq_gsi: returning irq 32 for gsi 23 [ 1.318931] uhci_hcd 0000:00:00.0: Xen PCI mapped GSI23 to IRQ32 [ 1.319231] uhci_hcd 0000:00:00.0: setting latency timer to 64 [ 1.319338] uhci_hcd 0000:00:00.0: UHCI Host Controller[ 1.320495] uhci_hcd 0000:00:00.0: new USB bus registered, assigned bus number 2 [ 1.322116] uhci_hcd 0000:00:00.0: irq 32, io base 0x0000c480 [ 1.322596] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001[ 1.322636] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.322675] usb usb2: Product: UHCI Host Controller [ 1.322708] usb usb2: Manufacturer: Linux 3.0.0 uhci_hcd [ 1.322742] usb usb2: SerialNumber: 0000:00:00.0 [ 1.324742] hub 2-0:1.0: USB hub found [ 1.324818] hub 2-0:1.0: 2 ports detected [ 1.326264] uhci_hcd 0000:00:00.1: enabling device (0000 -> 0001) [ 1.326614] uhci_hcd 0000:00:00.1: Xen PCI mapped GSI19 to IRQ34 [ 1.326875] uhci_hcd 0000:00:00.1: setting latency timer to 64 [ 1.326965] uhci_hcd 0000:00:00.1: UHCI Host Controller[ 1.328186] uhci_hcd 0000:00:00.1: new USB bus registered, assigned bus number 3 [ 1.328840] uhci_hcd 0000:00:00.1: irq 34, io base 0x0000c400 [ 1.329302] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001[ 1.329342] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.329381] usb usb3: Product: UHCI Host Controller [ 1.331378] usb usb3: Manufacturer: Linux 3.0.0 uhci_hcd [ 1.331378] usb usb3: SerialNumber: 0000:00:00.1 [ 1.354896] hub 3-0:1.0: USB hub found [ 1.354977] hub 3-0:1.0: 2 ports detected [ 1.356474] uhci_hcd 0000:00:00.2: enabling device (0000 -> 0001) [ 1.357123] uhci_hcd 0000:00:00.2: Xen PCI mapped GSI18 to IRQ35 [ 1.359004] uhci_hcd 0000:00:00.2: setting latency timer to 64 [ 1.359093] uhci_hcd 0000:00:00.2: UHCI Host Controller[ 1.360152] uhci_hcd 0000:00:00.2: new USB bus registered, assigned bus number 4 [ 1.360784] uhci_hcd 0000:00:00.2: irq 35, io base 0x0000c080 [ 1.362214] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001[ 1.362257] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.362297] usb usb4: Product: UHCI Host Controller [ 1.362334] usb usb4: Manufacturer: Linux 3.0.0 uhci_hcd [ 1.362368] usb usb4: SerialNumber: 0000:00:00.2[ 1.362417] uhci_hcd 0000:00:00.2: host controller process error, something bad happened! [ 1.362461] uhci_hcd 0000:00:00.2: host controller halted, very bad! [ 1.362652] uhci_hcd 0000:00:00.2: HC died; cleaning up [ 1.364055] usb usb4: can't set config #1, error -108 [ 1.365107] uhci_hcd 0000:00:00.2: HC died; cleaning up [ 1.366633] sl811: driver sl811-hcd, 19 May 2005 [ 1.367371] r8a66597_hcd: driver r8a66597_hcd, 2009-05-26 [ 1.371328] Initializing USB Mass Storage driver... [ 1.372104] usbcore: registered new interface driver usb-storage [ 1.372148] USB Mass Storage support registered. [ 1.372768] usbcore: registered new interface driver ums-alauda ... playing with usb stick:[ 359.400173] uhci_hcd 0000:00:00.0: host controller process error, something bad happened! [ 359.636824] usb 1-3: new high speed USB device number 2 using ehci_hcd [ 374.773485] usb 1-3: device descriptor read/64, error -110 [ 390.013496] usb 1-3: device descriptor read/64, error -110 [ 390.223495] usb 1-3: new high speed USB device number 3 using ehci_hcd [ 405.360167] usb 1-3: device descriptor read/64, error -110 [ 420.547111] hub 1-0:1.0: unable to enumerate USB device on port 3[ 422.550091] ehci_hcd 0000:00:00.7: force halt; handshake ffffc90000028024 0000c000 00000000 -> -110 dom0 lspci: -[0000:00]-\ +-00.0 Intel Corporation N10 Family DMI Bridge +-02.0 Intel Corporation N10 Family Integrated Graphics Controller +-02.1 Intel Corporation N10 Family Integrated Graphics Controller +-1a.0 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 +-1a.1 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 +-1a.7 Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 +-1b.0 Intel Corporation 82801H (ICH8 Family) HD Audio Controller +-1c.0-[01]-- +-1c.3-[02]----00.0 Realtek Semiconductor Co., Ltd. RTL8111/8168B... +-1c.4-[03]-- +-1d.0 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 +-1d.1 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 +-1d.2 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 +-1d.7 Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 +-1e.0-[04]--+-04.0 Realtek Semiconductor Co., Ltd. RTL-8139/8139C... | +-06.0 Realtek Semiconductor Co., Ltd. RTL-8139/8139C... | \-07.0 Realtek Semiconductor Co., Ltd. RTL-8139/8139C... +-1f.0 Intel Corporation 82801HEM (ICH8M) LPC Interface Controller +-1f.1 Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller +-1f.2 Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller \-1f.3 Intel Corporation 82801H (ICH8 Family) SMBus Controller Should I hide 00:1a.* too? xm pci-list-assignable-devices 0000:00:1d.0 0000:00:1d.1 0000:00:1d.2 0000:00:1d.7 -- Hans _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |