mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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>
This commit is contained in:
1 parent
70ba0db350
commit
678e6d8b30
1 file changed
-2
@@ -436,8 +436,6 @@ class PciController(DevController):
|
||||
' same guest with %s'
|
||||
raise VmError(err_msg % (s, dev.name))
|
||||
|
||||
for (domain, bus, slot, func) in pci_dev_list:
|
||||
self.setupOneDevice(domain, bus, slot, func)
|
||||
wPath = '/local/domain/0/backend/pci/%u/0/aerState' % (self.getDomid())
|
||||
self.aerStateWatch = xswatch(wPath, self._handleAerStateWatch)
|
||||
log.debug('pci: register aer watch %s', wPath)
|
||||
|
||||