ia64/xen-unstable

changeset 19754:a5f584c1e2f6

xend: pass-through: Only call setupOneDevice() once per device

As observed by Dexuan Cui, when PCI devices are passed through at
domain-creation-time setupOneDevice() will be called twice.

Once via setupDevice() and once via econfigureDevice() which
is called in pci_device_configure().

This patch removes the first of these.

Cc: Dexuan Cui <dexuan.cui@intel.com>
Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 16 11:33:23 2009 +0100 (2009-06-16)
parents cc07094a02e4
children 08de8ec655c2
files tools/python/xen/xend/server/pciif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/pciif.py	Tue Jun 16 11:31:20 2009 +0100
     1.2 +++ b/tools/python/xen/xend/server/pciif.py	Tue Jun 16 11:33:23 2009 +0100
     1.3 @@ -436,8 +436,6 @@ class PciController(DevController):
     1.4                                      ' same guest with %s'
     1.5                                  raise VmError(err_msg % (s, dev.name))
     1.6  
     1.7 -        for (domain, bus, slot, func) in pci_dev_list:
     1.8 -            self.setupOneDevice(domain, bus, slot, func)
     1.9          wPath = '/local/domain/0/backend/pci/%u/0/aerState' % (self.getDomid())
    1.10          self.aerStateWatch = xswatch(wPath, self._handleAerStateWatch)
    1.11          log.debug('pci: register aer watch %s', wPath)