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

[Xen-users] xen/next & pvm pci passthrough?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] xen/next & pvm pci passthrough?
From: Mark Hurenkamp <mark.hurenkamp@xxxxxxxxx>
Date: Mon, 1 Mar 2010 23:34:43 +0100
Delivery-date: Mon, 01 Mar 2010 14:35:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.12.2 (Linux/2.6.32mh17; KDE/4.3.2; x86_64; ; )
Hi,


Does anyone know if pvm pci passthrough is supposed to work on xen/next 
branch? I'm trying to get a device passed to the pvm, but things don't work 
the same as on xen/master (where i used pciback).

Here's what i do on xen/master dom0:
echo -n "0000:05:00.0" > /sys/bus/pci/drivers/cx23885/unbind
echo -n "0000:05:00.0" > /sys/bus/pci/drivers/pciback/new_slot
echo -n "0000:05:00.0" > /sys/bus/pci/drivers/pciback/bind

Then when i boot the pvm using also xen/master kernel, it shows up on lspci, 
and i can load the driver.

But when i run xen/next dom0, pciback doesn't seem to exist, so i use pci-stub 
to grab the device:

lspci -n
05:00.0 0400: 14f1:8852 (rev 02)

echo -n "14f1 8852" > /sys/bus/pci/drivers/pci-stub/new_id
echo -n "0000:05:00.0" > /sys/bus/pci/drivers/cx23885/unbind
echo -n "0000:05:00.0" > /sys/bus/pci/drivers/pci-stub/bind

Now i boot the same pvm using xen/next kernel, however nothing shows up on 
lspci after the pvm is up.

Is this not working yet? Or am i just doing something wrong?

My config file is the same for both, and contains the following:

bootloader = "/usr/bin/pygrub"
maxmem = 1024
memory = 1024
name = "pvm"
vif = [ 'mac=aa:20:00:00:02:17, bridge=br0' ]
disk = [
    'phy:mirror/pvm_root,hda1,w',
    'phy:mirror/pvm_swap,hda2,w',
    ]
pci = [
    '0000:05:00.0'
    ]
vcpus=2



Regards,
Mark.

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

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