debuggers.hg

changeset 20004:261f4a127616

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@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jul 21 14:26:52 2009 +0100 (2009-07-21)
parents 534d3716bbbe
children 761caae284d0
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Tue Jul 21 12:06:52 2009 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Tue Jul 21 14:26:52 2009 +0100
     1.3 @@ -2234,7 +2234,7 @@ def xm_pci_list(args):
     1.4              vdevfn = AUTO_PHP_SLOT
     1.5          else:
     1.6              vdevfn = x['vdevfn']
     1.7 -            return (vdevfn << 32) | \
     1.8 +        return (vdevfn << 32) | \
     1.9                     PCI_BDF(x['domain'], x['bus'], x['slot'], x['func'])
    1.10      devs.sort(None, f)
    1.11