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] xen/next & pvm pci passthrough?

To: Mark Hurenkamp <mark.hurenkamp@xxxxxxxxx>
Subject: Re: [Xen-users] xen/next & pvm pci passthrough?
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Tue, 2 Mar 2010 09:17:30 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 01 Mar 2010 23:18:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201003012334.43200.mark.hurenkamp@xxxxxxxxx>
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: <201003012334.43200.mark.hurenkamp@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Mon, Mar 01, 2010 at 11:34:43PM +0100, Mark Hurenkamp wrote:
> 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).
> 

iirc xen/next is still missing some pci passthrough stuff.
Btw the module is called xen-pciback nowadays.

-- Pasi

> 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

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

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