mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xend: Indicate a resume operation
Indicate that the domain is created as part of a resume operation rather than a 'create'. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
1 parent
dde6ba19a1
commit
2578655c64
2 files changed
+5
No files matched your search
@@ -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):
|
||||
|
||||
@@ -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']
|
||||
|
||||
|
||||