diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-08-17 10:00:22 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-08-17 10:00:22 +0100 |
commit | 133feccc8529cab25144181c2be086d4813072c3 (patch) | |
tree | 374e450cc475afd10d835fb0ffaaadbbd072588e /tools | |
parent | 0af35cef10c0f7810f1b262d67486748d508eb52 (diff) | |
download | xen-133feccc8529cab25144181c2be086d4813072c3.tar.gz xen-133feccc8529cab25144181c2be086d4813072c3.tar.bz2 xen-133feccc8529cab25144181c2be086d4813072c3.zip |
Fix "xm restore" require 4 times amount of memory on ia64.
Signed-off-by: Masayuki Igawa <igawa@mxs.nes.nec.co.jp>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/xend/XendCheckpoint.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendCheckpoint.py b/tools/python/xen/xend/XendCheckpoint.py index f88d8a8788..6e6bb1afdd 100644 --- a/tools/python/xen/xend/XendCheckpoint.py +++ b/tools/python/xen/xend/XendCheckpoint.py @@ -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', {}) |