mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
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:
1 parent
005f6dc9a8
commit
fb8a264cd0
1 file changed
+2
-2
@@ -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:
|
||||
|
||||