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

[Xen-changelog] [xen-unstable] xend: pass-through: fix regression in the ordering of the output of xm pci list



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1248182812 -3600
# Node ID 261f4a1276167195af6c6024f45c3f55a137caaf
# Parent  534d3716bbbec27d8602a27334eb52a9aa89206b
xend: pass-through: fix regression in the ordering of the output of xm pci list

changeset "python: Remove tab indents" (19937:e845326ae203)
introduces a minor regression in the multi-function PCI pass-through
code by causing bogus return values from the sort function
which is used to order the output of "xm pci list".

Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
---
 tools/python/xen/xm/main.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 534d3716bbbe -r 261f4a127616 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Tue Jul 21 12:06:52 2009 +0100
+++ b/tools/python/xen/xm/main.py       Tue Jul 21 14:26:52 2009 +0100
@@ -2234,7 +2234,7 @@ def xm_pci_list(args):
             vdevfn = AUTO_PHP_SLOT
         else:
             vdevfn = x['vdevfn']
-            return (vdevfn << 32) | \
+        return (vdevfn << 32) | \
                    PCI_BDF(x['domain'], x['bus'], x['slot'], x['func'])
     devs.sort(None, f)
 

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


 


Rackspace

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