mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Shadow memory should be in MiB, not KiB. It also needs rounding up to be safe.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
01fa1a0693
commit
b973ec93fc
1 file changed
+2
-1
@@ -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
|
||||
|
||||