mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Xend: "shadow_memory" setting in xm config is in MiB, not bytes.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
This commit is contained in:
1 parent
9caf62ac13
commit
e58cf9dbf9
3 files changed
+3
-2
No files matched your search
@@ -200,7 +200,7 @@ def restore(xd, fd, dominfo = None, paused = False):
|
||||
maxmem = restore_image.getRequiredAvailableMemory(
|
||||
dominfo.info['memory_static_max'] / 1024)
|
||||
shadow = restore_image.getRequiredShadowMemory(
|
||||
dominfo.info['shadow_memory'] / 1024,
|
||||
dominfo.info['shadow_memory'] * 1024,
|
||||
dominfo.info['memory_static_max'] / 1024)
|
||||
|
||||
log.debug("restore:shadow=0x%x, _static_max=0x%x, _static_min=0x%x, ",
|
||||
|
||||
@@ -1610,7 +1610,7 @@ class XendDomainInfo:
|
||||
maxmem = self.image.getRequiredAvailableMemory(
|
||||
self.info['memory_static_max'] / 1024)
|
||||
shadow = self.image.getRequiredShadowMemory(
|
||||
self.info['shadow_memory'] / 1024,
|
||||
self.info['shadow_memory'] * 1024,
|
||||
self.info['memory_static_max'] / 1024)
|
||||
|
||||
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'],)
|
||||
|
||||