tmem tools: tmem control plane domain launch mods
PATCH 4/4 tmem tools: tmem control plane domain launch mods
[4] tmem control plane domain-launch mods
tools/python/xen/xend/XendCheckpoint.py +1 -0
@@ -332,6 +332,7 @@ def restore(xd, fd, dominfo = None, paus if not paused: dominfo.unpause() + xc.tmem_control(0,TMEMC_THAW,-1,0,0,"") return dominfo except: dominfo.destroy()
tools/python/xen/xend/XendDomainInfo.py +1 -0
@@ -2428,6 +2428,7 @@ class XendDomainInfo: self.info['start_time'] = time.time() self._stateSet(DOM_STATE_RUNNING) + xc.tmem_control(0,TMEMC_THAW,-1,0,0,"") except VmError, exn: log.exception("XendDomainInfo.initDomain: exception occurred") if self.image:
tools/python/xen/xend/balloon.py +2 -0
@@ -26,6 +26,7 @@ from XendLogging import log from XendLogging import log from XendError import VmError import osdep +from xen.xend.XendConstants import * RETRY_LIMIT = 20 RETRY_LIMIT_INCR = 5
@@ -156,6 +157,7 @@ def free(need_mem, dominfo): retries = 0 sleep_time = SLEEP_TIME_GROWTH + xc.tmem_control(0,TMEMC_FREEZE,-1, 0, 0, "") while retries < rlimit: physinfo = xc.physinfo() free_mem = physinfo['free_memory']
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel