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 to domU does not work with XEN 3.3

To: Andreas Dahlén <andreas@xxxxxxxxx>
Subject: Re: [Xen-users] PCI passthrough to domU does not work with XEN 3.3
From: Paul Schulze <avlex@xxxxxxx>
Date: Wed, 17 Dec 2008 19:50:50 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 17 Dec 2008 10:53:32 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=WvYKoHNTY7+Vff61hY3WRWz9VjbjfhkY7KhGiuTXgGE=; b=aNDXERZJ97Qo9bQllWWHb3tNG3F/rfbpn+T76H8pmHukNE1wLszXmJH47rpzNqtsez mevPWIaJmjawviZAFrPtu5Az7wciKzqCGLv7PML84WcshS884r780egFwC7Fcc/l7Ixk hEyvU6RWqbMlxxZvErjEbOiiAMTOz0QM3tAiI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:in-reply-to:references:mime-version:content-type:message-id :cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=VqaB6sOR5iDCgtbMM1ee3Ize1hC7uHleBUW5KqMS/kWK/pXKelf1KV8yDrFWFWPIqA HCuE+4cIPigrGej9pBU2pKDIC5e3om/tobz0wWLmOeWpfnutxRq21bLk/73zljI9FHr7 g+hGuqzR0HrBDSnI6vD7gDmGnOM1xEf2+QfBc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081116210221.94074p3su8fivia5@xxxxxxxxxxxxx>
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: <20081116210221.94074p3su8fivia5@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Andreas,

The Ubuntu Intrepid kernel uses Pv-Ops features to run on Xen, which sadly does not yet support PCI passthrough. Like most other distributors, Canonical/Ubuntu decided not to forward port the Xen Linux kernel and instead use the more or less early and incomplete, Pv-Ops support, already included in the vanilla kernel tree, leaving the forward port up to the community. There seem to be some efforts from Suse and Debian to produce more up-to-date patches, but nothing solid so far. So basically, your only choice for now is to use the Hardy kernel with your Intrepid installation, because it is based on a forward port of the Xen Linux kernel and hope, someone does the port soon, or do it yourself.

Hope this helps,


Paul.

--
Paul Schulze
Mail: avlex  gmx  net ($1@$2.$3)
Public Key: http://solaris-net.dyndns.org/keys/key_avlex.asc

"Making mistakes is human,
but to really screw things up, you need Computers"



Am 16.11.2008 um 21:02 schrieb Andreas Dahlén:

Hi!

As dom0 I'm running Ubuntu Hardy withe xen 3.3 from backports.

Reason to using xen 3.3 is that I could get Intrepid stock kernel to work as domu with xen 3.2.

Now the problem I have is that I can't passthrough PCI-devices to my domu.

If I run lspci in the domu nothing is returned.

I've tried to use the kernel from Hardy (2.6.24-21-xen) and stock kernel from Intrepid (2.6.27-7-server). Without any difference.

If I use Xen 3.2 and kernel (2.6.24-21-xen) pci passthrough work.

What could be wrong with PCI passthrough in xen 3.3?
What could I do to solve the problem?

Some additional information that may help;

Dom0 is booted with this text in grub.conf
title           Xen 3.3 / Ubuntu 8.04.1, kernel 2.6.24-21-xen
root            (hd0,0)
kernel          /xen-3.3.gz dom0_mem=256M
module /vmlinuz-2.6.24-21-xen root=/dev/mapper/vgZeus- lvZeusRoot ro console=tty0 swiotlb=128 pciback.permissive pciback.hide=(04:03.0)(04:04.0)
module          /initrd.img-2.6.24-21-xen
quiet

ls -l /sys/bus/pci/drivers/pciback/
lrwxrwxrwx 1 root root    0 2008-11-16 20:53 0000:04:03.0 ->
../../../../devices/pci0000:00/0000:00:1e.0/0000:04:03.0
lrwxrwxrwx 1 root root    0 2008-11-16 20:53 0000:04:04.0 ->
../../../../devices/pci0000:00/0000:00:1e.0/0000:04:04.0
--w------- 1 root root 4096 2008-11-16 20:53 bind
lrwxrwxrwx 1 root root    0 2008-11-16 20:53 module ->
../../../../module/pciback
--w------- 1 root root 4096 2008-11-16 20:53 new_id
--w------- 1 root root 4096 2008-11-16 20:53 new_slot
-rw------- 1 root root 4096 2008-11-16 20:53 permissive
-rw------- 1 root root 4096 2008-11-16 20:53 quirks
--w------- 1 root root 4096 2008-11-16 20:53 remove_slot
-r-------- 1 root root 4096 2008-11-16 20:53 slots
--w------- 1 root root 4096 2008-11-16 20:53 uevent
--w------- 1 root root 4096 2008-11-16 20:53 unbind

domu config (/etc/xen/test.cfg)
#kernel      = '/boot/vmlinuz-2.6.24-21-xen'
#ramdisk     = '/boot/initrd.img-2.6.24-21-xen'
kernel       = '/boot/xen/vmlinuz-2.6.27-7-server'
ramdisk     = '/boot/xen/initrd.img-2.6.27-7-server'
memory      = '256'
root        = '/dev/xvda2 ro'
disk        = [
                  'phy:/dev/vgZeus/test-swap,xvda1,w',
                  'phy:/dev/vgZeus/test-disk,xvda2,w',
              ]
name        = 'test'
dhcp        = 'dhcp'
vif         = [ 'mac=00:16:3E:FF:00:8D' ]
pci         = [ '04:04.0' ]

extra = '2 console=hvc0'

Parts from dmesg on domU that could be interesting;
[ 0.000000] Allocating PCI resources starting at 20000000 (gap: 10000000:f0000000)
[    0.038071] PCI: Fatal: No config space access function found
[    0.040252] PCI: System does not support PCI
[    0.040258] PCI: System does not support PCI
[    0.271698] XENBUS: Device with no driver: device/pci/0


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


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

<Prev in Thread] Current Thread [Next in Thread>