From: Stefan Berger Subject: [PATCH] [Xend] Indicate a resume operation Date: Wed, 19 Dec 2007 09:11:43 -0500 Message-ID: <1198073508.13931.2.camel@gsal-3.watson.ibm.com> Reply-To: stefanb@us.ibm.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-/sMq7dza3BRQIsjipb0C" 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --=-/sMq7dza3BRQIsjipb0C Content-Type: text/plain Content-Transfer-Encoding: 7bit Indicate that the domain is created as part of a resume operation rather than a 'create'. Signed-off-by: Stefan Berger --=-/sMq7dza3BRQIsjipb0C Content-Disposition: attachment; filename=xend_indicate_resume.diff Content-Type: text/x-patch; name=xend_indicate_resume.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/python/xen/xend/XendDomain.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xend/XendDomain.py +++ root/xen-unstable.hg/tools/python/xen/xend/XendDomain.py @@ -913,6 +913,8 @@ class XendDomain: if dominfo._stateGet() != XEN_API_VM_POWER_STATE_SUSPENDED: raise XendError("Cannot resume domain that is not suspended.") + dominfo.setResume(True) + dom_uuid = dominfo.get_uuid() chkpath = self._managed_check_point_path(dom_uuid) if not os.path.exists(chkpath): 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 @@ -1178,6 +1178,9 @@ class XendDomainInfo: def getResume(self): return str(self._resume) + def setResume(self, isresume): + self._resume = isresume + def getCap(self): return self.info['vcpus_params']['cap'] --=-/sMq7dza3BRQIsjipb0C 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 --=-/sMq7dza3BRQIsjipb0C--