Skip to contentSkip to conversation

Xend wait for device to disconnect during final stage of migration

PATCH New Yung Giang 1 participant 1 message May 21, 2007

lore
Share & tools
lore

Yung Giang

author
#0 lore raw

PATCH 1/1 Xend wait for device to disconnect during final stage of migration

Hi-
This patch fixes the issue with waiting for devices to
disconnect during the end stage of migration in Xend. The problem was cause by a deletion of the VM domain ID which is used by testDevicecompleComplete ->deviceIDs->backendRoot() to get the virtual backend device path. The virtual backend device path is used to check if a device is still existed in xenstore. Please take a look, let me know if you have any question or problem.

Thanks,
-Yung Giang

This patch fixes the issue with waiting for devices to disconnect during the end stage of migration in Xend. The problem was cause by a deletion of the VM domain ID which is used by testDevicecompleComplete ->deviceIDs->backendRoot() to get the virtual backend device path. The virtual backend device path is used to check if a device is still existed in xenstore

tools/python/xen/xend/XendDomainInfo.py +0 -1
diff -r 111fc904128a tools/python/xen/xend/XendDomainInfo.py
@@ -1684,7 +1684,6 @@ class XendDomainInfo:
         try:
             if self.domid is not None:
                 xc.domain_destroy(self.domid)
-                self.domid = None
                 for state in DOM_STATES_OLD:
                     self.info[state] = 0
                 self._stateSet(DOM_STATE_HALTED)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel