Port-xen archive

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

Xen 3.1 PCI pass-through / NB 6.1.4 amd64



Hi, guys,

I needed to see Xen PCI pass-through works on NB 6.1.4 amd64.
After some hussle I ended up with the success.  This is a note for
someone who wants to do the same.

As of today no pre-compiled Xen 3.1 amd64 binary is published
by pkgsrc collection.  I was successful in fresh build of xenkernel3
and xentools3 binaries and comfirmed PCI pass-through could
work on amd64.  This is the excerpt of my /boot.cfg;

menu=Boot Xen 3.1:load /netbsd-XEN3_DOM0.gz console=pc
pciback.hide=(02:00.0);multiboot /usr/pkg/xen3-kernel/xen.gz
dom0_mem=4096M

Note the place where pciback.hide=(02:00.0) is inserted.  DOM0
recognized "pciback0" to hide 02:00.0 device in this way;

pciback0 at pci2 dev 0 function 0: vendor 0x10ec product 0x8169 (rev. 0x10)
pciback0: I/O: 0x0000e000 - 0x00000100
pciback0: mem: 0xfe420000 - 0x00000100
pciback0: interrupting at ioapic0 pin 16, event channel 5
irq line 198 pin 1 sc 0xffffa00008863ac0

A custom DOMU kernel has to be built as standard XEN_DOMU
has no real PCI device driver.  I added the following lines to build
the new one;

xpci* at xenbus ?
pci* at xpci ?
re* at pci? dev ? function ? # Realtek 8139C+/8169/8169S/8110S
rgephy* at mii? phy ? # Realtek 8169S/8110 internal PHYs

And one single line was added to domU.cfg file in order to boot
the DOMU with the particular PCI device attached;

pci = [ '0000:02:00.0' ]

I feel thankful to Manuel Bouyer who provided a prompt and
precise advice for me.

Toru Nishimura / ALKYL Technology


Home | Main Index | Thread Index | Old Index