ia64/xen-unstable

changeset 19193:1a786ec606e4

xend: PCIQuirk`__devIsUnconstrained refers to an undeclared variable if
/etc/xen/xend-pci-permissive.sxp doesn't exist.

Signed-off-by: David Edmondson <dme@sun.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Feb 11 10:45:34 2009 +0000 (2009-02-11)
parents 1a2c446d7987
children ce391986ce35
files tools/python/xen/xend/server/pciquirk.py
line diff
     1.1 --- a/tools/python/xen/xend/server/pciquirk.py	Wed Feb 11 10:45:19 2009 +0000
     1.2 +++ b/tools/python/xen/xend/server/pciquirk.py	Wed Feb 11 10:45:34 2009 +0000
     1.3 @@ -123,7 +123,8 @@ class PCIQuirk:
     1.4              log.info("Config file does not exist: %s" % PERMISSIVE_CONFIG_FILE)
     1.5              self.pci_perm_dev_config = ['xend-pci-perm-devs']
     1.6  
     1.7 -        devices = child_at(child(pci_perm_dev_config, 'unconstrained_dev_ids'),0)
     1.8 +        devices = child_at(child(self.pci_perm_dev_config,
     1.9 +                                 'unconstrained_dev_ids'),0)
    1.10          if self.__matchPCIdev( devices ):
    1.11              log.debug("Permissive mode enabled for PCI device [%s]" %
    1.12                        self.devid)