Skip to contentSkip to conversation

tmem tools: tmem control plane domain launch mods

PATCH New Dan Magenheimer 1 participant 1 message Feb 6, 2009

lore
Share & tools
lore
#0 lore raw

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
diff -r c8962b24fb50 tools/python/xen/xend/XendCheckpoint.py
@@ -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
diff -r c8962b24fb50 tools/python/xen/xend/XendDomainInfo.py
@@ -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
diff -r c8962b24fb50 tools/python/xen/xend/balloon.py
@@ -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