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

AW: [Xen-users] Paramters for PCI passthrough in config file

To: Hans Jörg Maurer <hjm@xxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: AW: [Xen-users] Paramters for PCI passthrough in config file
From: Carsten Schiers <carsten@xxxxxxxxxx>
Date: Tue, 3 Mar 2009 12:16:39 +0100
Cc:
Delivery-date: Tue, 03 Mar 2009 03:17:32 -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
It's most likely that your PCI devices reside on the same PCI bridge. When 
including
support for FLR, a requirement check was added to have all PCI devices that 
reside on
one PCI bridge to be co-assiged to one DomU, although that's not necessary when 
the
DomU is PV.

You can check with lspci -tv whether this is the case and when you use pv 
domains, 
you might use this patch that will disable FLR and this kind of message.

BR,

Carsten.

diff -r 6ab55f716ce3 tools/python/xen/util/pci.py
--- a/tools/python/xen/util/pci.py  Thu Oct 09 17:18:11 2008 +0100
+++ b/tools/python/xen/util/pci.py  Fri Oct 10 13:16:00 2008 +0800
@@ -696,6 +696,7 @@ class PciDevice:
     def do_FLR(self):
         """ Perform FLR (Functional Level Reset) for the device.
         """
+        return
         if self.dev_type == DEV_TYPE_PCIe_ENDPOINT:
             # If PCIe device supports FLR, we use it.
             if self.pcie_flr:
diff -r 6ab55f716ce3 tools/python/xen/xend/server/pciif.py
--- a/tools/python/xen/xend/server/pciif.py Thu Oct 09 17:18:11 2008 +0100
+++ b/tools/python/xen/xend/server/pciif.py Fri Oct 10 13:18:25 2008 +0800
@@ -375,6 +375,7 @@ class PciController(DevController):
             pci_dev_list = pci_dev_list + [(domain, bus, slot, func)]

         for (domain, bus, slot, func) in pci_dev_list:
+            continue
             try:
                 dev = PciDevice(domain, bus, slot, func)
             except Exception, e:

----- Originalnachricht -----
Von: Hans Jörg Maurer <hjm@xxxxxxxxxxxxx>
Gesendet: Die, 3.3.2009 11:56
An: xen-users@xxxxxxxxxxxxxxxxxxx
Betreff: [Xen-users] Paramters for PCI passthrough in config file

Hi,
I was trying now since two weeks to pass pci cards to different domU's. 
First I used XEN 3.3, but there I got error messages like

must be co-assigned to the same guest , so I switched to other distris and 
versions.

Now I have:

mainserver:/etc/xen# xm info
host                   : server
release                : 2.6.26-1-xen-amd64
version                : #1 SMP Sat Jan 10 20:39:26 UTC 2009
machine                : x86_64
nr_cpus                : 4
nr_nodes               : 1
cores_per_socket       : 4
threads_per_core       : 1
cpu_mhz                : 2394
hw_caps                : 
bfebfbff:20100800:00000000:00000140:0000e3bd:00000000:00000001
total_memory           : 8180
free_memory            : 256
node_to_cpu            : node0:0-3
xen_major              : 3
xen_minor              : 2
xen_extra              : -1
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 
hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : unavailable
cc_compiler            : gcc version 4.3.1 (Debian 4.3.1-2)
cc_compile_by          : waldi
cc_compile_domain      : debian.org
cc_compile_date        : Sat Jun 28 09:32:18 UTC 2008
xend_config_format     : 4

and run into the problem that I can pass only one pci to a DomU. I use the 
following parameters in the /etc/xen/domU.cfg


pci         = [ '11:00.0','11:09:0' ]

I have tried different versions like
pci         = [ '11:00.0', '11:09:0' ] or
pci         = [ '0000:11:00.0', '0000:11:09:0' ] and so on.

The only solution is to pass these parameters with the command line, like:

server:/etc/xen# xm create DomU.cfg -c pci='11:00.0' pci='11:09.0'

Then I get two PCI cards inside the DomU.

Does anyone know how to pass them correctly inside the config file.

Thanks

Hans

_______________________________________________
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>