[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Fix domain restore after memory auto-balloon changes.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1189099605 -3600
# Node ID 32f331858d751f29b5970dd208c91e9dedea1182
# Parent  9813c9c79055cf1d779bd2723b492a1e2f2bcc71
Fix domain restore after memory auto-balloon changes.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendCheckpoint.py |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff -r 9813c9c79055 -r 32f331858d75 tools/python/xen/xend/XendCheckpoint.py
--- a/tools/python/xen/xend/XendCheckpoint.py   Thu Sep 06 18:10:04 2007 +0100
+++ b/tools/python/xen/xend/XendCheckpoint.py   Thu Sep 06 18:26:45 2007 +0100
@@ -194,15 +194,14 @@ def restore(xd, fd, dominfo = None, paus
         pae  = 0
 
     try:
-        restore_image = image.create(dominfo, dominfo.info['image'],
-                                     dominfo.info['device'])
+        restore_image = image.create(dominfo, dominfo.info)
         memory = restore_image.getRequiredAvailableMemory(
-            dominfo.info['memory'] * 1024)
+            dominfo.info['memory_dynamic_max'] / 1024)
         maxmem = restore_image.getRequiredAvailableMemory(
-            dominfo.info['maxmem'] * 1024)
+            dominfo.info['memory_static_max'] / 1024)
         shadow = restore_image.getRequiredShadowMemory(
-            dominfo.info['shadow_memory'] * 1024,
-            dominfo.info['maxmem'] * 1024)
+            dominfo.info['shadow_memory'] / 1024,
+            dominfo.info['memory_static_max'] / 1024)
 
         log.debug("restore:shadow=0x%x, _static_max=0x%x, _static_min=0x%x, ",
                   dominfo.info['shadow_memory'],

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.