ia64/xen-unstable

changeset 15772:458e8b37aec8

Fix "xm restore" require 4 times amount of memory on ia64.
Signed-off-by: Masayuki Igawa <igawa@mxs.nes.nec.co.jp>
author kfraser@localhost.localdomain
date Fri Aug 17 10:00:22 2007 +0100 (2007-08-17)
parents 2ece8ff05ce7
children ac7a8c9d6202
files tools/python/xen/xend/XendCheckpoint.py
line diff
     1.1 --- a/tools/python/xen/xend/XendCheckpoint.py	Fri Aug 17 09:59:28 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendCheckpoint.py	Fri Aug 17 10:00:22 2007 +0100
     1.3 @@ -181,7 +181,8 @@ def restore(xd, fd, dominfo = None, paus
     1.4      assert store_port
     1.5      assert console_port
     1.6  
     1.7 -    nr_pfns = (dominfo.getMemoryTarget() + 3) / 4 
     1.8 +    page_size_kib = xc.pages_to_kib(1)
     1.9 +    nr_pfns = (dominfo.getMemoryTarget() + page_size_kib - 1) / page_size_kib 
    1.10  
    1.11      # if hvm, pass mem size to calculate the store_mfn
    1.12      image_cfg = dominfo.info.get('image', {})