direct-io.hg

changeset 11288:a47951e59cbf

Shadow memory should be in MiB, not KiB. It also needs rounding up to be safe.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Aug 30 09:47:24 2006 +0100 (2006-08-30)
parents f66bae594691
children dc773bf49664
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Wed Aug 30 02:53:48 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Aug 30 09:47:24 2006 +0100
     1.3 @@ -1301,7 +1301,8 @@ class XendDomainInfo:
     1.4              balloon.free(mem_kb + shadow_kb)
     1.5  
     1.6              # Set up the shadow memory
     1.7 -            shadow_cur = xc.shadow_mem_control(self.domid, shadow_kb * 1024)
     1.8 +            shadow_cur = xc.shadow_mem_control(self.domid,
     1.9 +                                               (shadow_kb + 1023) / 1024)
    1.10              self.info['shadow_memory'] = shadow_cur
    1.11  
    1.12              # initial memory allocation