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] Further shadow_mem_control fixes -- we ne

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Further shadow_mem_control fixes -- we need to balloon the amount of memory
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Aug 2006 12:10:11 +0000
Delivery-date: Wed, 30 Aug 2006 05:10:29 -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 Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID dc773bf496642b9d2fd58bff05d2619665275409
# Parent  a47951e59cbf68e0ba2bbdf00824143f2fc0ff7c
Further shadow_mem_control fixes -- we need to balloon the amount of memory
that we're going to request i.e. the rounded-up value.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r a47951e59cbf -r dc773bf49664 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Wed Aug 30 09:47:24 2006 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py   Wed Aug 30 11:05:00 2006 +0100
@@ -1296,13 +1296,13 @@ class XendDomainInfo:
             shadow_kb_req = self.info['shadow_memory'] * 1024
             if shadow_kb_req > shadow_kb:
                 shadow_kb = shadow_kb_req
+            shadow_mb = (shadow_kb + 1023) / 1024
 
             # Make sure there's enough RAM available for the domain
-            balloon.free(mem_kb + shadow_kb)
+            balloon.free(mem_kb + shadow_mb * 1024)
 
             # Set up the shadow memory
-            shadow_cur = xc.shadow_mem_control(self.domid,
-                                               (shadow_kb + 1023) / 1024)
+            shadow_cur = xc.shadow_mem_control(self.domid, shadow_mb)
             self.info['shadow_memory'] = shadow_cur
 
             # initial memory allocation

_______________________________________________
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] Further shadow_mem_control fixes -- we need to balloon the amount of memory, Xen patchbot-unstable <=