ia64/xen-unstable

changeset 18789:2bd99c5faa42

xend, pciif: fix some indentation

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Nov 12 11:50:25 2008 +0000 (2008-11-12)
parents 07d0be88571f
children 8e18dd41c6c7
files tools/python/xen/xend/server/pciif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/pciif.py	Tue Nov 11 11:47:03 2008 +0000
     1.2 +++ b/tools/python/xen/xend/server/pciif.py	Wed Nov 12 11:50:25 2008 +0000
     1.3 @@ -333,12 +333,6 @@ class PciController(DevController):
     1.4              if rc<0:
     1.5                  raise VmError(('pci: failed to configure I/O memory on device '+
     1.6                              '%s - errno=%d')%(dev.name,rc))
     1.7 -            rc = xc.physdev_map_pirq(domid = fe_domid,
     1.8 -                                   index = dev.irq,
     1.9 -                                   pirq  = dev.irq)
    1.10 -            if rc < 0:
    1.11 -                raise VmError(('pci: failed to map irq on device '+
    1.12 -                            '%s - errno=%d')%(dev.name,rc))
    1.13  
    1.14          if dev.msix:
    1.15              for (start, size) in dev.msix_iomem:
    1.16 @@ -353,6 +347,12 @@ class PciController(DevController):
    1.17                  if rc<0:
    1.18                      raise VmError(('pci: failed to remove msi-x iomem'))
    1.19  
    1.20 +        rc = xc.physdev_map_pirq(domid = fe_domid,
    1.21 +                               index = dev.irq,
    1.22 +                               pirq  = dev.irq)
    1.23 +        if rc < 0:
    1.24 +            raise VmError(('pci: failed to map irq on device '+
    1.25 +                        '%s - errno=%d')%(dev.name,rc))
    1.26          if dev.irq>0:
    1.27              log.debug('pci: enabling irq %d'%dev.irq)
    1.28              rc = xc.domain_irq_permission(domid =  fe_domid, pirq = dev.irq,