--- xen-unstable/tools/python/xen/xend/XendDomainInfo.py.orig 2005-10-09 21:22:58.000000000 +0200 +++ xen-unstable/tools/python/xen/xend/XendDomainInfo.py 2005-10-10 12:33:45.938319517 +0200 @@ -796,7 +796,10 @@ class XendDomainInfo: t = target << 10 self.info['memory_KiB'] = t self.storeDom("memory/target", t) - + # BAD HACK -- this should be done somewhere else !!! + if self.domid == 0: + balloon = open("/proc/xen/balloon", "w") + balloon.write("%iM" % target) def update(self, info = None): """Update with info from xc.domain_getinfo().