[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Shadow memory should be in MiB, not KiB. It also needs rounding up to be safe.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID a47951e59cbf68e0ba2bbdf00824143f2fc0ff7c
# Parent  f66bae59469160a1d3cdbcc9dcf9efdfe188a672
Shadow memory should be in MiB, not KiB.  It also needs rounding up to be safe.

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

diff -r f66bae594691 -r a47951e59cbf tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Wed Aug 30 02:53:48 2006 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py   Wed Aug 30 09:47:24 2006 +0100
@@ -1301,7 +1301,8 @@ class XendDomainInfo:
             balloon.free(mem_kb + shadow_kb)
 
             # Set up the shadow memory
-            shadow_cur = xc.shadow_mem_control(self.domid, shadow_kb * 1024)
+            shadow_cur = xc.shadow_mem_control(self.domid,
+                                               (shadow_kb + 1023) / 1024)
             self.info['shadow_memory'] = shadow_cur
 
             # initial memory allocation

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.