# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1239177742 -3600
# Node ID cb453e5a2f81167d051a15e1beb5e7c6c16042ab
# Parent d9de5cc2b0bcd2e910f939afb6fcf3193a5cc5f4
xend: fix c/s 19510
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
tools/python/xen/xend/server/pciif.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff -r d9de5cc2b0bc -r cb453e5a2f81 tools/python/xen/xend/server/pciif.py
--- a/tools/python/xen/xend/server/pciif.py Tue Apr 07 14:37:35 2009 +0100
+++ b/tools/python/xen/xend/server/pciif.py Wed Apr 08 09:02:22 2009 +0100
@@ -71,6 +71,10 @@ class PciController(DevController):
pcidevid = 0
vslots = ""
for pci_config in config.get('devs', []):
+ vslot = pci_config.get('vslot')
+ if vslot is not None:
+ vslots = vslots + vslot + ";"
+
domain = parse_hex(pci_config.get('domain', 0))
bus = parse_hex(pci_config.get('bus', 0))
slot = parse_hex(pci_config.get('slot', 0))
@@ -82,10 +86,6 @@ class PciController(DevController):
opts = map(lambda (x, y): x+'='+y, opts)
opts = reduce(lambda x, y: x+','+y, opts)
back['opts-%i' % pcidevid] = opts
-
- vslot = pci_config.get('vslot')
- if vslot is not None:
- vslots = vslots + vslot + ";"
back['dev-%i' % pcidevid] = "%04x:%02x:%02x.%01x" % \
(domain, bus, slot, func)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|