Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PCI passthrough not working?



I have a 2-CPU box with a pair of Intel gigabit controllers.  I'd like
to run a dom0 plus two guests, with one of the Intel controllers
passed through to each domU.

I'm using NetBSD-current as of about three days ago.

I am using the "xenkernel3" and "xentools3" packages from pkgsrc since
this evidently doesn't work with 3.3 yet.  I have configured my boot.cfg
according to the "howto" web page:

menu=Boot native with ACPI:boot netbsd
menu=Boot single user:boot netbsd -s
menu=Disable ACPI:boot netbsd -2
menu=Disable ACPI and SMP:boot netbsd -12
menu=Boot Xen with NetBSD dom0:load /netbsd.xen console=pc; multiboot /usr/pkg/x
en3-kernel/xen.gz vga=text-80x25 console=pc dom0_mem=256M pciback_hide=(06:07:0)
(07:08:0)
menu=Drop to boot prompt:prompt
default=5
timeout=5
clear=1

But wm0 and wm1 (PCI devices 06:07:0 and 07:08:0) are still attached to
the dom0, not the DomU.  What's going on?  Dmesg snippets follow:

hypervisor0 at mainbus0: Xen version 3.1
vcpu0 at hypervisor0: Intel 686-class, 3192MHz, id 0xf4a
debug virtual interrupt using event channel 1
xenbus0 at hypervisor0: Xen Virtual Bus Interface
xencons0 at hypervisor0: Xen Virtual Console Driver
acpi0 at hypervisor0: Intel ACPICA 20080321
acpi0: X/RSDT: OemId <DELL  ,PE BKC  ,00000001>, AslId <MSFT,0100000a>
mpacpi: found root PCI bus 0 at level 1
mpacpi: found subordinate bus 1 at level 2
mpacpi: failed to derive bus number, ignoring
mpacpi: failed to derive bus number, ignoring
mpacpi: found subordinate bus 4 at level 2
mpacpi: failed to derive bus number, ignoring
mpacpi: found subordinate bus 5 at level 2
mpacpi: found subordinate bus 6 at level 3
mpacpi: found subordinate bus 7 at level 3
mpacpi: failed to derive bus number, ignoring
mpacpi: failed to derive bus number, ignoring
mpacpi: failed to derive bus number, ignoring
mpacpi: found subordinate bus 9 at level 2
mpacpi: 7 PCI busses
[...]
pci0 at hypervisor0 bus 0: configuration mode 1
hypervisor0: added to list as bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x3590 (rev. 0x09)
ppb0 at pci0 dev 2 function 0: vendor 0x8086 product 0x3595 (rev. 0x09)
pci1 at ppb0 bus 1
ppb0: added to list as bus 1
pci1: i/o space, memory space enabled
ppb1 at pci1 dev 0 function 0: vendor 0x8086 product 0x0330 (rev. 0x06)
ppb1: disabling notification events
pci2 at ppb1 bus 2
ppb1: added to list as bus 2
pci2: i/o space, memory space enabled
mpt0 at pci2 dev 5 function 0: vendor 0x1000 product 0x0030
ioapic0: int17 0x1a9a8<vector=0xa8,delmode=0x1,logical,actlo,level,masked,dest=0
x0> 0xf000000<target=0xf>
mpt0: interrupting at ioapic0 pin 17, event channel 4
scsibus0 at mpt0: 16 targets, 8 luns per target
ppb2 at pci1 dev 0 function 2: vendor 0x8086 product 0x0332 (rev. 0x06)
ppb2: disabling notification events
pci3 at ppb2 bus 3
ppb2: added to list as bus 3
pci3: i/o space, memory space enabled
[...]
ppb3 at pci0 dev 4 function 0: vendor 0x8086 product 0x3597 (rev. 0x09)
pci4 at ppb3 bus 4
ppb3: added to list as bus 4
pci4: i/o space, memory space enabled
ppb4 at pci0 dev 5 function 0: vendor 0x8086 product 0x3598 (rev. 0x09)
pci5 at ppb4 bus 5
ppb4: added to list as bus 5
pci5: i/o space, memory space enabled
ppb5 at pci5 dev 0 function 0: vendor 0x8086 product 0x0329 (rev. 0x09)
ppb5: disabling notification events
pci6 at ppb5 bus 6
ppb5: added to list as bus 6
pci6: i/o space, memory space enabled
wm0 at pci6 dev 7 function 0: Intel i82541GI 1000BASE-T Ethernet, rev. 5
ioapic2: int0 0x1a9b8<vector=0xb8,delmode=0x1,logical,actlo,level,masked,dest=0x
0> 0xf000000<target=0xf>
wm0: interrupting at ioapic2 pin 0, event channel 6
wm0: 32-bit 66MHz PCI bus
wm0: 65536 word (16 address bits) SPI EEPROM
wm0: Ethernet address 00:13:72:54:ae:b1
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX
, auto
ppb6 at pci5 dev 0 function 2: vendor 0x8086 product 0x032a (rev. 0x09)
ppb6: disabling notification events
pci7 at ppb6 bus 7
ppb6: added to list as bus 7
pci7: i/o space, memory space enabled
wm1 at pci7 dev 8 function 0: Intel i82541GI 1000BASE-T Ethernet, rev. 5
ioapic2: int1 0x1a9c0<vector=0xc0,delmode=0x1,logical,actlo,level,masked,dest=0x
0> 0xf000000<target=0xf>
wm1: interrupting at ioapic2 pin 1, event channel 7
wm1: 32-bit 66MHz PCI bus
wm1: 65536 word (16 address bits) SPI EEPROM
wm1: Ethernet address 00:13:72:54:ae:b2
igphy1 at wm1 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX
, auto
ukphy0 at wm1 phy 2: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: no media present
ppb7 at pci0 dev 6 function 0: vendor 0x8086 product 0x3599 (rev. 0x09)
pci8 at ppb7 bus 8
ppb7: added to list as bus 8
pci8: i/o space, memory space enabled

-- 
Thor Lancelot Simon
Coyote Point Systems, Inc.                      <tls%coyotepoint.com@localhost>
Millerton, NY, USA


Home | Main Index | Thread Index | Old Index