ia64/xen-unstable

changeset 17666:f12724194ec6

xend: Device configurations of suspended virtual machines are inaccessible

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.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu May 15 16:40:51 2008 +0100 (2008-05-15)
parents e3b13e1ecf6c
children 13e10678e714
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu May 15 15:10:05 2008 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Thu May 15 16:40:51 2008 +0100
     1.3 @@ -3013,7 +3013,8 @@ class XendDomainInfo:
     1.4          # shortcut if the domain isn't started because
     1.5          # the devcontrollers will have no better information
     1.6          # than XendConfig.
     1.7 -        if self._stateGet() in (XEN_API_VM_POWER_STATE_HALTED,):
     1.8 +        if self._stateGet() in (XEN_API_VM_POWER_STATE_HALTED,
     1.9 +                                XEN_API_VM_POWER_STATE_SUSPENDED):
    1.10              if dev_config:
    1.11                  return copy.deepcopy(dev_config)
    1.12              return None