]> xenbits.xensource.com Git - xen.git/commitdiff
Fix "xm restore" require 4 times amount of memory on ia64.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 17 Aug 2007 09:00:22 +0000 (10:00 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 17 Aug 2007 09:00:22 +0000 (10:00 +0100)
Signed-off-by: Masayuki Igawa <igawa@mxs.nes.nec.co.jp>
tools/python/xen/xend/XendCheckpoint.py

index f88d8a8788cc84e55a9545b7c4ab637d74b0c401..6e6bb1afdd395d635ed4c3eaf4d06495087b0f74 100644 (file)
@@ -181,7 +181,8 @@ def restore(xd, fd, dominfo = None, paused = False):
     assert store_port
     assert console_port
 
-    nr_pfns = (dominfo.getMemoryTarget() + 3) / 4 
+    page_size_kib = xc.pages_to_kib(1)
+    nr_pfns = (dominfo.getMemoryTarget() + page_size_kib - 1) / page_size_kib 
 
     # if hvm, pass mem size to calculate the store_mfn
     image_cfg = dominfo.info.get('image', {})