Daniel Whelan
2006-Nov-21 00:39 UTC
[Xen-users] DomU kernel oops when loading module for PCI device
Hello, I have a Xen installation in which I have hidden a PCI device from the dom0 and passed it onto a domU. I experience the following non-fatal oops when the module is loaded: Nov 20 19:30:26 peter kernel: SCSI subsystem initialized Nov 20 19:30:26 peter kernel: PCI: Enabling device 0000:00:00.0 (0000 -> 0003) Nov 20 19:30:26 peter kernel: scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0 Nov 20 19:30:26 peter kernel: <Adaptec 29160 Ultra160 SCSI adapter> Nov 20 19:30:26 peter kernel: aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs Nov 20 19:30:26 peter kernel: Nov 20 19:30:26 peter kernel: Unable to handle kernel NULL pointer dereference at 0000000000000078 RIP: Nov 20 19:30:26 peter kernel: [<ffffffff880043a2>] :scsi_mod:scsi_calculate_bounce_limit+0x15/0x49 Nov 20 19:30:26 peter kernel: PGD 20593067 PUD 205ae067 PMD 0 Nov 20 19:30:26 peter kernel: Oops: 0000 [1] SMP Nov 20 19:30:26 peter kernel: CPU 1 Nov 20 19:30:26 peter kernel: Modules linked in: aic7xxx scsi_transport_spi scsi_mod Nov 20 19:30:26 peter kernel: Pid: 462, comm: modprobe Not tainted 2.6.18-2-xen-amd64 #1 Nov 20 19:30:26 peter kernel: RIP: e030:[<ffffffff880043a2>] [<ffffffff880043a2>] :scsi_mod:scsi_calculate_bounce_limit+0x15/0x49 Nov 20 19:30:26 peter kernel: RSP: e02b:ffff880020799950 EFLAGS: 00010246 Nov 20 19:30:26 peter kernel: RAX: 0000000000000000 RBX: ffff88001eac0088 RCX: 0000000000000071 Nov 20 19:30:26 peter kernel: RDX: 0000000000000067 RSI: 0000000000000400 RDI: ffff88001eeb2000 Nov 20 19:30:26 peter kernel: RBP: ffff88001eeb2000 R08: ffff88001e9c7000 R09: 0000000000000000 Nov 20 19:30:26 peter kernel: R10: ffffffff880058a0 R11: 0000000000000048 R12: ffff88001eeae028 Nov 20 19:30:26 peter kernel: R13: ffff88001eeb2000 R14: 0000000000000000 R15: ffff88001eeae000 Nov 20 19:30:26 peter kernel: FS: 00002ac75335a6d0(0000) GS:ffffffff804c3080(0000) knlGS:0000000000000000 Nov 20 19:30:26 peter kernel: CS: e033 DS: 0000 ES: 0000 Nov 20 19:30:26 peter kernel: Process modprobe (pid: 462, threadinfo ffff880020798000, task ffff88001f0817f0) Nov 20 19:30:26 peter kernel: Stack: ffffffff880049f2 ffff88001eadb800 ffff88001eadb800 ffff88001eeae000 Nov 20 19:30:26 peter kernel: ffffffff88006611 ffff88001eeb2168 00000001880001fe ffff88001eeb2000 Nov 20 19:30:26 peter kernel: 0000000000000000 0000000000000000 Nov 20 19:30:26 peter kernel: Call Trace: Nov 20 19:30:26 peter kernel: [<ffffffff880049f2>] :scsi_mod:scsi_alloc_queue+0x65/0xb6 Nov 20 19:30:26 peter kernel: [<ffffffff88006611>] :scsi_mod:scsi_alloc_sdev+0x12e/0x1d2 Nov 20 19:30:26 peter kernel: [<ffffffff88006840>] :scsi_mod:scsi_probe_and_add_lun+0x10d/0x9c6 Nov 20 19:30:26 peter kernel: [<ffffffff88007457>] :scsi_mod:scsi_alloc_target+0x239/0x327 Nov 20 19:30:26 peter kernel: [<ffffffff88007688>] :scsi_mod:__scsi_scan_target+0xc3/0x5e7 Nov 20 19:30:26 peter kernel: [<ffffffff803079f1>] idr_get_new+0xb/0x28 Nov 20 19:30:26 peter kernel: [<ffffffff88007bf1>] :scsi_mod:scsi_scan_channel+0x45/0x70 Nov 20 19:30:26 peter kernel: [<ffffffff88007cdc>] :scsi_mod:scsi_scan_host_selected+0xc0/0xfb Nov 20 19:30:26 peter kernel: [<ffffffff88043564>] :aic7xxx:ahc_linux_register_host+0x3cc/0x403 Nov 20 19:30:26 peter kernel: [<ffffffff88043fa5>] :aic7xxx:ahc_pci_map_int+0x2c/0x52 Nov 20 19:30:26 peter kernel: [<ffffffff8803e600>] :aic7xxx:ahc_pci_config+0x127a/0x12d0 Nov 20 19:30:26 peter kernel: [<ffffffff88044233>] :aic7xxx:ahc_linux_pci_dev_probe+0x23b/0x24f Nov 20 19:30:26 peter kernel: [<ffffffff80256511>] netlink_broadcast+0x297/0x2e0 Nov 20 19:30:26 peter kernel: [<ffffffff80257db1>] kobject_get+0x12/0x17 Nov 20 19:30:26 peter kernel: [<ffffffff80311677>] pci_device_probe+0x4c/0x75 Nov 20 19:30:26 peter kernel: [<ffffffff8035cc31>] driver_probe_device+0x52/0xa8 Nov 20 19:30:26 peter kernel: [<ffffffff8035ccec>] __driver_attach+0x0/0x9a Nov 20 19:30:26 peter kernel: [<ffffffff8035cd3c>] __driver_attach+0x50/0x9a Nov 20 19:30:26 peter kernel: [<ffffffff8035ccec>] __driver_attach+0x0/0x9a Nov 20 19:30:26 peter kernel: [<ffffffff8035c6ae>] bus_for_each_dev+0x43/0x6e Nov 20 19:30:26 peter kernel: [<ffffffff8035c2f0>] bus_add_driver+0x7e/0x130 Nov 20 19:30:26 peter kernel: [<ffffffff80311812>] __pci_register_driver+0x57/0x7d Nov 20 19:30:26 peter kernel: [<ffffffff88043fee>] :aic7xxx:ahc_linux_pci_init+0x17/0x21 Nov 20 19:30:26 peter kernel: [<ffffffff88059325>] :aic7xxx:ahc_linux_init+0x325/0x336 Nov 20 19:30:26 peter kernel: [<ffffffff802602a0>] __down_read+0x35/0xa2 Nov 20 19:30:26 peter kernel: [<ffffffff802607aa>] _spin_lock_irqsave+0x9/0x14 Nov 20 19:30:26 peter kernel: [<ffffffff80222521>] __up_read+0x13/0x8a Nov 20 19:30:26 peter kernel: [<ffffffff802976e0>] sys_init_module+0x16cc/0x1882 Nov 20 19:30:26 peter kernel: [<ffffffff8025c6a6>] system_call+0x86/0x8b Nov 20 19:30:26 peter kernel: [<ffffffff8025c620>] system_call+0x0/0x8b Nov 20 19:30:26 peter kernel: Nov 20 19:30:26 peter kernel: Nov 20 19:30:26 peter kernel: Code: 83 78 78 00 75 0c 48 8b 05 59 9a 54 f8 48 c1 e0 0c c3 48 8b Nov 20 19:30:26 peter kernel: RIP [<ffffffff880043a2>] :scsi_mod:scsi_calculate_bounce_limit+0x15/0x49 Nov 20 19:30:26 peter kernel: RSP <ffff880020799950> Nov 20 19:30:26 peter kernel: CR2: 0000000000000078 The OS is Debian Linux, Xen is 3.0.3, and the kernel is 2.6.18-2. I would ordinarily avoid the PCI passthrough, but I need a tape drive within the domU. Any ideas as to what might be failing here? Thanks, Daniel _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users