ia64/xen-unstable

changeset 15873:7dfc9a7a0d4e

Xend: "shadow_memory" setting in xm config is in MiB, not bytes.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Tue Sep 11 12:30:39 2007 +0100 (2007-09-11)
parents 5ccf8bbf8628
children d146097e049d
files tools/examples/xmexample.hvm tools/python/xen/xend/XendCheckpoint.py tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/examples/xmexample.hvm	Tue Sep 11 12:14:38 2007 +0100
     1.2 +++ b/tools/examples/xmexample.hvm	Tue Sep 11 12:30:39 2007 +0100
     1.3 @@ -28,6 +28,7 @@ builder='hvm'
     1.4  memory = 128
     1.5  
     1.6  # Shadow pagetable memory for the domain, in MB.
     1.7 +# If not explicictly set, xend will pick an appropriate value.  
     1.8  # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
     1.9  # shadow_memory = 8
    1.10  
     2.1 --- a/tools/python/xen/xend/XendCheckpoint.py	Tue Sep 11 12:14:38 2007 +0100
     2.2 +++ b/tools/python/xen/xend/XendCheckpoint.py	Tue Sep 11 12:30:39 2007 +0100
     2.3 @@ -200,7 +200,7 @@ def restore(xd, fd, dominfo = None, paus
     2.4          maxmem = restore_image.getRequiredAvailableMemory(
     2.5              dominfo.info['memory_static_max'] / 1024)
     2.6          shadow = restore_image.getRequiredShadowMemory(
     2.7 -            dominfo.info['shadow_memory'] / 1024,
     2.8 +            dominfo.info['shadow_memory'] * 1024,
     2.9              dominfo.info['memory_static_max'] / 1024)
    2.10  
    2.11          log.debug("restore:shadow=0x%x, _static_max=0x%x, _static_min=0x%x, ",
     3.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Tue Sep 11 12:14:38 2007 +0100
     3.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue Sep 11 12:30:39 2007 +0100
     3.3 @@ -1610,7 +1610,7 @@ class XendDomainInfo:
     3.4              maxmem = self.image.getRequiredAvailableMemory(
     3.5                  self.info['memory_static_max'] / 1024)
     3.6              shadow = self.image.getRequiredShadowMemory(
     3.7 -                self.info['shadow_memory'] / 1024,
     3.8 +                self.info['shadow_memory'] * 1024,
     3.9                  self.info['memory_static_max'] / 1024)
    3.10  
    3.11              log.debug("_initDomain:shadow_memory=0x%x, memory_static_max=0x%x, memory_static_min=0x%x.", self.info['shadow_memory'], self.info['memory_static_max'], self.info['memory_static_min'],)