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

Re: [Xen-users] pci passthrough question. Do I need VT-D ?


  • To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "sven waeyenbergh" <sven.waeyenbergh@xxxxxxxxx>
  • Date: Tue, 9 Sep 2008 15:17:52 +0200
  • Cc: Dustin.Henning@xxxxxxxxxxx, Nick S Kanakakorn <bbdada@xxxxxxxxx>
  • Delivery-date: Tue, 09 Sep 2008 06:18:32 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=XJyIPqjluS+8uOtlITgVwtl0XCjBVeWp5yD/EmHrRt142yAscHJrSxN4Z7otf7idMC h5oBGjV959svBeqel68jH2jvUbz9UJYrPJ8Nrr35x0HP6WBPu+gy9xBst7yuyWAJ/1/e XQDCdXi5qAgKQzCCM4Fk/MziDXSJmmpLpY6tY=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

indeed, VT-d is needed to do pci passthrough to a HVM domain.
It is not needed for a PV domain, i have been running a mythtv domU with multiple TV-cards for ages.

but there are some requirements to get this to work.
make sure that :
- you do not load any drivers for the device on dom0 (google "pciback" for more info)
- your domU has enough memory (pci cards do use memory) and not too much, trial and error is the way to go.
- you domU kernels support PCI and the device that you're trying to passthrough
- you add the "pci" statement to your config file (ex: pci = ['04:08.0'],['04:09.0'],['06:09.0'] )
- if problems arise, you probably need to append a statement like this one to the kernel options of the domU:
      "iommu=soft swiotlb=force"
- one more caveat: some PCI cards actually are more then 1 pci device in the output of lspci.
  for example a tvcard with seperate audio device -> you need to passthrough them both
  other devices are not "dividable" for example my new quad port gigabit card is actually 4 pci devices, but i have to passthrough them 2 by 2

i have this working for tvcards, network cards, a scsi card and USB as well as serial.
but all for PV domains, i haven't tested yet with my new VT-d enabled mobo, that should be able to do this in HVM domains as well.

Greetings,
Sven
_______________________________________________
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®.