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 passthru

To: "Geoff Gibbs" <geoff.gibbs@xxxxxxxxx>
Subject: Re: [Xen-users] PCI passthru
From: "Christopher Isip" <cmisip@xxxxxxxxx>
Date: Mon, 19 May 2008 18:42:51 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 19 May 2008 15:43:21 -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=XwMnFNvPThdoIyK4QaK3TRLhbVwSsuIuaF219tZ288A=; b=cFYsrK809DH4y7aa9U7pka9/iIB4ZXM6aHn/WbCXVk6I3JcsdpYYNc31+HvQV9G4nOlsL9aDhbTErDrs7V9s0kBObO7qMUpve00/j6g329eXaBsIKVuBnAEjc5RYTxg7E799bNkFJ6eXYNwoksIhCiWtohhgCm5fTz9nKPk7KGU=
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=KPwtkj/YHaSoUn7FmUwpiFOU7R/Eql/4eyBNHt0WDuyOuxDmRMuDfwtfzVtAbtTq53q0DGoPCM9WfN8o2qvVBeCPIKzq6JfWvVdPtVQkl8WYUfHpmJXZumIU78lfqlDrxHQtPpYt3mv7JNB2m4YiTfMTmyfKgIwT6O1j7xRJYfc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46a560a50805191455i6dcf5622pee66bba42b5304e4@xxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <46a560a50805191455i6dcf5622pee66bba42b5304e4@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Mon, May 19, 2008 at 5:55 PM, Geoff Gibbs <geoff.gibbs@xxxxxxxxx> wrote:
I have been trying to get PCI passthru to work for a while now.
I am running 3.3-unstable on Centos 5.1. I have a Intel XEON
5140 CPU, with the latest BIOS.

I would like to be able to pass the SAS raid controller from
dom0 to dumU.

Do I need to do anything special to domU? It is running Fedora
core 4.

Is there any real documentation available on how to configure
PCI passthru on both dom0 and dumU?

thanks,

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


I have centos as well and the pciback is a module ( hence not part of the booting kernel).  You have to use late binding with pciback.  These are the steps I took to hide an ethernet card from dom0.

Grub --> nothing to do here

/etc/modprobe.conf:
options pciback hide=(0000:03:08.0)
install e100 /sbin/modprobe pciback ; /sbin/modprobe --first-time --ignore-install e100

  --> only need the install line if your dom0 kernel has modules for the pci device.

Now boot the domU with a line in the config file :
pci = [ '0000:03:08.0' ]


In some cases you may have to set the device to be permissive. In /sbin/lspci -vnn, get the device numbers:
03:08.0 0200: 8086:27dc (rev 01)
        Subsystem: 1028:01ab
        Flags: bus master, medium devsel, latency 64, IRQ 21
        Memory at efbff000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at dcc0 [size=64]
        Capabilities: [dc] Power Management version 2


And then put them in xend-pci-permissive.sxp

(unconstrained_dev_ids
      ('8086:27dc:1028:01ab')
)


Boot the domU and it should see the device.

Chris
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>