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:
Ewan Mellor committed 2006-08-30 09:47:24 +01:00
1 parent 01fa1a0693
commit b973ec93fc
1 file changed
+2 -1
+2 -1
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.