WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Fix "xm restore" require 4 times amount o

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix "xm restore" require 4 times amount of memory on ia64.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 07 Sep 2007 09:12:29 -0700
Delivery-date: Fri, 07 Sep 2007 09:15:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=