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-devel] Re: [Xen-users] pci passthrough and Xenserver

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [Xen-users] pci passthrough and Xenserver
From: Ritu kaur <ritu.kaur.us@xxxxxxxxx>
Date: Thu, 11 Mar 2010 20:13:20 -0800
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 11 Mar 2010 20:14:25 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=UjHHj1A51HOMfWfMPTPzFQSy6W+bAHyF3w4q+N3XvWE=; b=Ve4IIJH6klYdips7eS478RN3ufo6VBxh6rXXWcYPRG7p5yHmAE8j7ziVtEI3+hs1h0 YUJ4B8AG0YcaZDdy0xWHa/N1WSvfoKdw+a9u5S9OZhzBz/CeBqejIS+AKTKhCY2qSZmX u7rhyjpM25YWLBFDBQ1vZ6cZ84ftmWn/9qtys=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=KQ1VO1Yf5BUBZYJ0ORKjj+r113LZp/J8BO3A1+6UG1Yv8RFxxVmkgVsVTFWHx6XLaY mScHYWRxtDfDj1VFW8TEeI+qeTx0K7oJk8csipwVirqyJbe2/sFQYzzd7OaaAKQzaeCU cb4mogJ80ZtU7d00a+WIh6Xu9+fyEW9HookUc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <29b32d341003111904sd39eba1w398b78ce5f92f4d7@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/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: <29b32d341003081159x758dce8s15f29b4fc03a72d1@xxxxxxxxxxxxxx> <15863915.27.1268087855741.JavaMail.root@zimbra5> <29b32d341003091707y4f1fee12ucf50f4228e74007a@xxxxxxxxxxxxxx> <29b32d341003091729p6d43407eu79acc3b2f90b3b6e@xxxxxxxxxxxxxx> <1268237158.11737.70432.camel@xxxxxxxxxxxxxxxxxxxxxx> <29b32d341003100948o5e5dc687ke6847f0373166f4a@xxxxxxxxxxxxxx> <29b32d341003111904sd39eba1w398b78ce5f92f4d7@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I went through below thread from xen-users

http://lists.xensource.com/archives/html/xen-users/2010-02/msg00820.html

basically, if I understand this correctly, pcifront driver need to be loaded in domU. My dmesg from domU Debian Lenny 5.0 has similar messages mentioned in that thread.

I went to wiki.debian.org and couldn't figure out what kernel I need to load or reinstall or should I build domU kernel myself. I thought xenwiki installation guide would point to correct domU kernel with all necessary modules compiled, it doesn't look like that's the case. Any inputs would be very helpful.

Thanks

On Thu, Mar 11, 2010 at 7:04 PM, Ritu kaur <ritu.kaur.us@gmail.com> wrote:
Hi Ian,

VM console issue finally worked out fine. executed below steps for pci passthrough, doesn't work

1. in dom0, ran

a. modprobe pciback
b. xe vm-param-set uuid=91c50844-9228-2650-89ad-08b42c450cb7 other-config:pci=0/0000:08:01.0

c. xe vm-param-list uuid=91c50844-9228-2650-89ad-08b42c450cb7 | grep other-config
                  other-config (MRW): last_shutdown_time: 20100312T02:46:10Z; last_shutdown_action: Restart; last_shutdown_initiator: external; last_shutdown_reason: rebooted; pci: 0/0000:08:01.0; install-repository: http://ftp.debian.org/; mac_seed: 5bfac0e7-362a-9418-03c0-ef95c703457a; linux_template: true; install-methods: cdrom,http,ftp; install-arch: i386; debian-release: lenny


2. in domU

a. compiled driver for my pci controller

b. insmod driver.ko

c. depmod -a  and manually copied driver.ko into /lib/modules/2.6.../kernel/drivers/net/driver.ko

3. from dom0, rebooted domU(via xe vm-reboot..)

4. after domU is up,

a. lspci in domU shows nothing
b. ifconfig/ifconfig -a shows no interface
c. driver doesn't seem to load during boot(lsmod doesn't list it, did modprobe again)

5. lspci in dom0 still lists the pci device.

so not sure what am I missing or where I went wrong. Any inputs?

Thanks


On Wed, Mar 10, 2010 at 9:48 AM, Ritu kaur <ritu.kaur.us@gmail.com> wrote:
Hi Ian,

Thank for the inputs, will try this out.

Thanks



On Wed, Mar 10, 2010 at 8:05 AM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
Please don't cross-post.

On Wed, 2010-03-10 at 01:29 +0000, Ritu kaur wrote:
> Hi,
>
> I had additional questions(I re-read the Assign_hardware...), and I
> don't quite follow it completely. The config given is for dom0, it
> doesn't have any information as to what domU will get access to this
> pci device? Do I need to change config in domU as well, document
> doesn't say anything about it. Furthermore, in the document I see
> references to "xm pci-list-assignable-devices" cli's, however, XCP
> comes with xe tool-stack, does it come with similar pci commands? I am
> yet to install XCP, but wanted to check.

With XenAPI you can set the VM.other-config:pci key to a comma separated
list of "<bus>/<bdf>" where bus should always be 0 and <bdf> is the
bus-device-function as seen in domain 0. For example to pass device
0000:07:10.0 through to a guest try:

xe vm-param-set uuid=<uuid> other-config:pci=0000:07:10.0

You may need to manually load the pciback module first.

Ian.

>
> Thanks
>
>
> On Tue, Mar 9, 2010 at 5:07 PM, Ritu kaur <ritu.kaur.us@gmail.com>
> wrote:
>         Hi,
>
>         I did go through  vmops.ml and I really didn't get much
>         information on what config file it is reading or what changes
>         are needed. I looked at
>         http://wiki.xensource.com/xenwiki/Assign_hardware_to_DomU_with_PCIBack_as_module from the link given by Dullor, not sure whether those changes suffice XCP for pci passthrough hence thought of checking. Any inputs?
>
>         Thanks
>
>         On Mon, Mar 8, 2010 at 2:37 PM, James Troup
>         <james@xxxxxxxxxxxxxxxxx> wrote:
>
>
>                 No PCI passthrough for XenServer AFAIK.
>                 You need XCP for that and then it is still very
>                 experimental with NO documentation except what is in
>                 the code.
>                 Line 483+
>                 http://xenbits.xen.org/xapi/xen-api.hg?file/a8decf9d3bee/ocaml/xapi/vmops.ml
>
>
>
>                 ----- Original Message -----
>                 From: "Ritu kaur" <ritu.kaur.us@gmail.com>
>                 To: xen-devel@xxxxxxxxxxxxxxxxxxx,
>                 xen-users@xxxxxxxxxxxxxxxxxxx
>                 Sent: Tuesday, 9 March, 2010 6:29:49 AM
>                 Subject: [Xen-users] pci passthrough and Xenserver
>
>                 Hi,
>
>                 We are running Citrix Xenserver 5.5(dom0) and PV
>                 guests(domU). Since VT-d support is not required for
>                 PV guests has anyone tried pci passthrough with Citrix
>                 Xenserver? If yes what config file changes are
>                 required in domU and dom0? I looked at Citrix forums
>                 and xen.org/xen-users archives, not getting useful
>                 information from it. Inputs much appreciated.
>
>                 Thanks
>
>
>
>                 _______________________________________________
>                 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