ia64/xen-unstable

changeset 19757:c7fabc081498

xend: pass-through: cleanupDevice: move and remove recently added vslot entry

Signed-off-by: Simon Horman <horms@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 16 11:36:40 2009 +0100 (2009-06-16)
parents dce4d6840db1
children 0573bbe19499
files tools/python/xen/xend/server/pciif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/pciif.py	Tue Jun 16 11:36:03 2009 +0100
     1.2 +++ b/tools/python/xen/xend/server/pciif.py	Tue Jun 16 11:36:40 2009 +0100
     1.3 @@ -540,7 +540,7 @@ class PciController(DevController):
     1.4                  # In HVM case, I/O resources are disabled in ioemu.
     1.5                  self.cleanupOneDevice(domain, bus, slot, func)
     1.6                  # Remove xenstore nodes.
     1.7 -                list = ['dev', 'vdev', 'state', 'uuid']
     1.8 +                list = ['dev', 'vdev', 'state', 'uuid', 'vslot']
     1.9                  if self.readBackend(devid, 'opts-%i' % i) is not None:
    1.10                      list.append('opts')
    1.11                  for key in list:
    1.12 @@ -550,7 +550,7 @@ class PciController(DevController):
    1.13                  if new_num_devs == i + 1:
    1.14                      continue
    1.15  
    1.16 -                list = ['dev', 'vdev', 'state', 'uuid', 'opts']
    1.17 +                list = ['dev', 'vdev', 'state', 'uuid', 'opts', 'vslot']
    1.18                  for key in list:
    1.19                      tmp = self.readBackend(devid, '%s-%i' % (key, i))
    1.20                      if tmp is None: