WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] pci passthrough question. Do I need VT-D ?
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=Kia54ni6jlT7bSoX+yvr6W+VtbfmHuljG9c62l2XSqc=; b=xfs4JZuJI2c9DNH87Isfv/VHzLcDOPFUaPrPpqi+uZitgVOVS7H2DR/lm+Fdz1lO/9 CrHX7ZVTeERYnu5LDPxVzLnRqDqlaEpN3PZutbriSHpb+dXo5eutQYDeWf5g07jwLyii pEwJLhGI7mN5GkxxteKIbn9Oxt7C7fpOLfUks=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <-2974229685126062400@unknownmsgid>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <7f60d76b0809082342u6a22e9a4vefc7eafe645537c0@xxxxxxxxxxxxxx> <-2974229685126062400@unknownmsgid>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>