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

Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
Keir Fraser committed 2009-06-16 11:36:40 +01:00
1 parent 005f6dc9a8
commit fb8a264cd0
1 file changed
+2 -2
+2 -2
View File
@@ -540,7 +540,7 @@ class PciController(DevController):
# In HVM case, I/O resources are disabled in ioemu.
self.cleanupOneDevice(domain, bus, slot, func)
# Remove xenstore nodes.
list = ['dev', 'vdev', 'state', 'uuid']
list = ['dev', 'vdev', 'state', 'uuid', 'vslot']
if self.readBackend(devid, 'opts-%i' % i) is not None:
list.append('opts')
for key in list:
@@ -550,7 +550,7 @@ class PciController(DevController):
if new_num_devs == i + 1:
continue
list = ['dev', 'vdev', 'state', 'uuid', 'opts']
list = ['dev', 'vdev', 'state', 'uuid', 'opts', 'vslot']
for key in list:
tmp = self.readBackend(devid, '%s-%i' % (key, i))
if tmp is None:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.