Skip to contentSkip to conversation

Device configurations of suspended virtual machines are inaccesible

PATCH New Stefan Berger 1 participant 1 message May 15, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Device configurations of suspended virtual machines are inaccesible

The device configurations of suspended virtual machines are inaccessible even though for example the UUIDs of the VIFs and VBDs are known and returned when VM.get_VIFs()/get_VBDs() is called, though when trying to access their records for example, then handle is reported as being invalid. This patch fixes this.

xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py +2 -1
Index: root/xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py
===================================================================
@@ -3013,7 +3013,8 @@ class XendDomainInfo:
         # shortcut if the domain isn't started because
         # the devcontrollers will have no better information
         # than XendConfig.
-        if self._stateGet() in (XEN_API_VM_POWER_STATE_HALTED,):
+        if self._stateGet() in (XEN_API_VM_POWER_STATE_HALTED,
+                                XEN_API_VM_POWER_STATE_SUSPENDED):
             if dev_config:
                 return copy.deepcopy(dev_config)
             return None

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