ia64/xen-unstable

changeset 10108:e7d7287ab222

[XEND] separate concept of initial memory size and overhead memory size.

When a domain (whether para- or fully-virtualized) reports how much
overhead memory it requires (via getDomainMemory in image.py), all such
memory was immediately allocated to the domain itself. This is
certainly incorrect for HVM domains, since additional
increase_reservation calls are made later in qemu. Since all ballooned
memory is already taken, qemu will fail. The fix is to treat the
requested memory size and the overhead size as separate values. The
requested memory size is immediately allocated to the new domain; the
overhead is left unallocated for whatever else might need it later.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri May 19 16:07:36 2006 +0100 (2006-05-19)
parents 32013c5118d2
children f4f2ff82e797
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Fri May 19 16:01:08 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Fri May 19 16:07:36 2006 +0100
     1.3 @@ -1264,7 +1264,7 @@ class XendDomainInfo:
     1.4              m = self.image.getDomainMemory(self.info['memory'] * 1024)
     1.5              balloon.free(m)
     1.6              xc.domain_setmaxmem(self.domid, m)
     1.7 -            xc.domain_memory_increase_reservation(self.domid, m, 0, 0)
     1.8 +            xc.domain_memory_increase_reservation(self.domid, self.info['memory'] * 1024, 0, 0)
     1.9  
    1.10              self.createChannels()
    1.11