From: Stefan Berger Subject: [PATCH] [Xend] Device configurations of suspended virtual machines are inaccesible Date: Thu, 15 May 2008 11:38:26 -0400 Message-ID: <1210865906.24168.8.camel@gsal-3.watson.ibm.com> Reply-To: stefanb@us.ibm.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-4JdTtUVh6X586+qVb8X+" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org --=-4JdTtUVh6X586+qVb8X+ Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 --=-4JdTtUVh6X586+qVb8X+ Content-Disposition: attachment; filename=return_dev_config_if_vm_suspended.diff Content-Type: text/x-patch; name=return_dev_config_if_vm_suspended.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xend/XendDomainInfo.py +++ 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 --=-4JdTtUVh6X586+qVb8X+ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-4JdTtUVh6X586+qVb8X+--