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

Re: [Xen-users] Yet Another PCI passthrough question

> Nothing shows up here. I've also tried adding the xen-pciback.hide
> line to the other module line in grub, that's not doing anything
> either.
> What am I missing? I searched the archives of this list, found this
> (http://lists.xensource.com/archives/html/xen-users/2011-05/msg00517.html) in 
> May, same problem. Followed the instructions. Am I missing something dumb?
> Julien


I'm using xen 4.0.2 in sles11. Below is a little "doc" I use for passing
through devices. It seems there are always different ways to do these
things, but this one does seem to work. 

Btw, my experience has been that xm pci-list-assignable-devices
sometimes doesn't list anything, but we're still able to pass through. 


lspci to find <PCI-ID>

find /sys/bus/pci/drivers -name 0000:<PCI-ID>

echo -n "<PCI-ID>" > "/sys/bus/pci/drivers/<driver dir>/unbind" 
*****(where <driver dir> is from the previous command.)
echo -n "<PCI-ID>" > "/sys/bus/pci/drivers/pciback/new_slot"
echo -n "<PCI-ID>" > "/sys/bus/pci/drivers/pciback/bind"

#Start Example:

find /sys/bus/pci/drivers -name 0000:0e:04.0

modprobe pciback
echo -n "0000:0e:04.0" > "/sys/bus/pci/drivers/mptspi/unbind" 
echo -n "0000:0e:04.0" > "/sys/bus/pci/drivers/pciback/new_slot"
echo -n "0000:0e:04.0" > "/sys/bus/pci/drivers/pciback/bind"

#End Example

Edit or create /etc/init.d/after.local and add:

modprobe pciback
echo -n "0000:0e:04.0" > "/sys/bus/pci/drivers/mptspi/unbind" 
echo -n "0000:0e:04.0" > "/sys/bus/pci/drivers/pciback/new_slot"
echo -n "0000:0e:04.0" > "/sys/bus/pci/drivers/pciback/bind"

Now try provisioning new VM using the hardware device or add hardware
device to existing VM.

Note:for some scsi devices such as tape drives, you may have to update
kernel boot parameters to hide the scsi card from the host OS. For
example, add the following to the modules line in /boot/grub/menu.lst
for the xen boot process:

pciback.permissive pciback.hide=(0e:04.0)(0e:04.1)

For example:
module /boot/vmlinuz- 
splash=silent showopts pciback.permissive pciback.hide=(0e:04.0)(0e:04.1) 

Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.