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

Re: [Xen-users] PCI e Passthrough



Hi,

Your issue is that you haven't bound the PCI device to the pciback
driver in dom0.
In order to passdevices through to domU, Xen requires you to bind the
devices to either pciback or pci-stub in dom0, though it's highly
recommended that you use pciback.

This can be done online or offline (requires reboot)
In your case the offline method involves editing grub.cfg and adding
xen-pciback-hide option to the kernel like so:
module       /boot/vmlinuz-2.6.32.10 root=/dev/sda1 ro nomodeset
xen-pciback.hide=(03:00.0)

You can also do the same thing offline by first unbinding the NIC
driver and then binding the device to pciback:
echo -n 1 >/sys/bus/pci/devices/0000:03:00.0/driver/unbind
echo -n 0000:03:00.0 > /sys/bus/pci/drivers/pciback/bind

Then you should be able to run xm pci-list-assignable and xm pci-attach etc. :)

Joseph.

On 25 May 2011 07:21, Achala Aryal <arya2595@xxxxxxxxxxxxxxxxxx> wrote:
>
> Hi
>
> I am trying to do PCIe passthrough on HVM domu. I have window XP as a HVM
> domu and xen-4.0. dom0 and domU (without device assign) works fine.
>
> I have more than one NIC card. I want to passthrough 03:00.0 to domu
> here are the list of my nic cards:
>
> lspci | grep -i eth
> 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B
> PCI Express Gigabit Ethernet controller (rev 03)
> 04:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network
> Connection
> 06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169
> Gigabit Ethernet (rev 10)
> 06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169
> Gigabit Ethernet (rev 10)
> 07:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network
> Connection
>
> Here is my grub:
> menuentry 'Xen 4.0'{
>         insmod ext2
>         set root='(hd0,7)'
>         multiboot       (hd0,7)/boot/xen-4.0.0-rc8.gz dom0_mem=2056M
> dummy=dummy xen-pciback.hide=(03:00.0)
>         module  (hd0,7)/boot/vmlinuz-2.6.32.25 dummy=dummy
> root=UUID=045b2154-a6b3-45ed-8fce-61d3b0358808 ro nomodeset iommu=1
>         module (hd0,7)/boot/initrd.img-2.6.32.25
> }
>
> And I added pci=['03:00.0'] on my domu.cfg
>
> When I do xm pci-list  or xm pci-list-assignable-devices
> It does not return anythings.
>
> When I do xm create domu.cfg I get following error
> Error: pci: PCI Backend and pci-stub don't own device 0000:03:00.0
>
> Did I miss something somewhere?
>
> Any help will be appreciated.
>
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>



-- 
Kind regards,
Joseph.
Founder | Director
Orion Virtualisation Solutions | www.orionvm.com.au | Phone: 1300 56
99 52 | Mobile: 0428 754 846

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

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