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

[Xen-changelog] [xen-unstable] xend, pciif: fix some indentation

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend, pciif: fix some indentation
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 Nov 2008 08:10:21 -0800
Delivery-date: Wed, 19 Nov 2008 08:11:22 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1226490625 0
# Node ID 2bd99c5faa420612544a9d94e298332e0e72a86a
# Parent  07d0be88571fa4dfbf3449069c78c08acc09b2da
xend, pciif: fix some indentation

Signed-off-by: Dexuan Cui <dexuan.cui@xxxxxxxxx>
---
 tools/python/xen/xend/server/pciif.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff -r 07d0be88571f -r 2bd99c5faa42 tools/python/xen/xend/server/pciif.py
--- a/tools/python/xen/xend/server/pciif.py     Tue Nov 11 11:47:03 2008 +0000
+++ b/tools/python/xen/xend/server/pciif.py     Wed Nov 12 11:50:25 2008 +0000
@@ -333,12 +333,6 @@ class PciController(DevController):
             if rc<0:
                 raise VmError(('pci: failed to configure I/O memory on device 
'+
                             '%s - errno=%d')%(dev.name,rc))
-            rc = xc.physdev_map_pirq(domid = fe_domid,
-                                   index = dev.irq,
-                                   pirq  = dev.irq)
-            if rc < 0:
-                raise VmError(('pci: failed to map irq on device '+
-                            '%s - errno=%d')%(dev.name,rc))
 
         if dev.msix:
             for (start, size) in dev.msix_iomem:
@@ -353,6 +347,12 @@ class PciController(DevController):
                 if rc<0:
                     raise VmError(('pci: failed to remove msi-x iomem'))
 
+        rc = xc.physdev_map_pirq(domid = fe_domid,
+                               index = dev.irq,
+                               pirq  = dev.irq)
+        if rc < 0:
+            raise VmError(('pci: failed to map irq on device '+
+                        '%s - errno=%d')%(dev.name,rc))
         if dev.irq>0:
             log.debug('pci: enabling irq %d'%dev.irq)
             rc = xc.domain_irq_permission(domid =  fe_domid, pirq = dev.irq,

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend, pciif: fix some indentation, Xen patchbot-unstable <=