mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
xend, pciif: fix some indentation
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
This commit is contained in:
1 parent
98cb2ef797
commit
ac1e2634bc
1 file changed
+6
-6
@@ -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,
|
||||
|
||||