[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] PCI passthrough - XCP vs XenServer


  • To: Xen-api@xxxxxxxxxxxxx
  • From: Phill Edwards <philledwards@xxxxxxxxx>
  • Date: Wed, 3 Jul 2013 16:49:40 +1000
  • Delivery-date: Wed, 03 Jul 2013 06:49:58 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

> On 02/07/2013 13:19, Phill Edwards wrote:
>>>
>>> My advice is to give it a go, and report back to the list on what works (and what doesn't). To request a device passthrough,
>>> you'll need to add an "other-config" "pci" key via the CLI, naming the bus, device and function you want to passthrough. Try
>>> something like:
>>>
>>> xe vm-param-set uuid=... other-config:pci=0/0000:bus:dev.fun,1/0000:bus:dev.fun2
>>>
>>> Be careful to always pass through all functions of multi-function devices (some hardware doesn't like it when the functions
>>> are separated) and beware the code paths are different for HVM and PV. I would recommend installing a modern Linux
>>> distro as HVM (easiest done in XenServer by using the "other install media" template), and use that. For reference, I often
>>> use Ubuntu 12.04 but anything modern should be ok.
>>
Thanks very much for this info, and to others on the list who also replied - the info was great.

I've installed XCP 1.6 and now have a bare bones Ubuntu 12.04 MythTV installation running on it. The output of lspci on my XCP host shows this:

05:00.0 Multimedia video controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
05:00.2 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
05:01.0 Multimedia video controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
05:01.2 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
05:02.0 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)
05:02.1 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)

So I ran this command to try to pass through the 1st DVB-T multimedia
card which seems to have 2 functions:
# xe vm-param-set other-config:pci=0/0000:05:00.0,1/0000:05:00.2 uuid=7a1f3bcd-4b2d-4c10-5aa4-4238a48f011d

I can now see some output from lspci on my VM:
00:00.0 Multimedia video controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)

But I thought I would see _two_ lines of output as I tried to set two on the command line on the XCP host (one for 05:00.0 and another for 05:00.2) . Did I get something wrong with the command I ran on the XCP host?

Also, if I need to "undo" the xe vm-param-set command, how do I do that (so I can try some other variations of the command)?


>>> What kind of DVB-T tuners have you got? I was considering something similar myself with one of mine.

I've got K-World DVB-T tuners. I'm in Australia so not sure if they would work in USA.


_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.