[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Further shadow_mem_control fixes -- we need to balloon the amount of memory
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |