|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Fix "xm restore" require 4 times amount o
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1187341222 -3600
# Node ID 458e8b37aec81b76d1aba137f82613cd9e584fa3
# Parent 2ece8ff05ce713a83a3d0f729eaec414f0a8d91c
Fix "xm restore" require 4 times amount of memory on ia64.
Signed-off-by: Masayuki Igawa <igawa@xxxxxxxxxxxxxxxxx>
---
tools/python/xen/xend/XendCheckpoint.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -r 2ece8ff05ce7 -r 458e8b37aec8 tools/python/xen/xend/XendCheckpoint.py
--- a/tools/python/xen/xend/XendCheckpoint.py Fri Aug 17 09:59:28 2007 +0100
+++ b/tools/python/xen/xend/XendCheckpoint.py Fri Aug 17 10:00:22 2007 +0100
@@ -181,7 +181,8 @@ def restore(xd, fd, dominfo = None, paus
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', {})
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Fix "xm restore" require 4 times amount of memory on ia64.,
Xen patchbot-unstable <=
|
|
|
|
|