ia64/xen-unstable

changeset 14977:4789f3b2e1b9

xend: Auto-balloon a couple megabytes before creating an HVM domain as
Xen will allocate 1MB for shadow memory immediately.
Suggested by Daniel Berrange.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Apr 27 15:22:34 2007 +0100 (2007-04-27)
parents 1634486b2a5c
children 18844eff507a
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Fri Apr 27 15:12:48 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Fri Apr 27 15:22:34 2007 +0100
     1.3 @@ -1419,6 +1419,9 @@ class XendDomainInfo:
     1.4                  raise VmError("HVM guest support is unavailable: is VT/AMD-V "
     1.5                                "supported by your CPU and enabled in your "
     1.6                                "BIOS?")
     1.7 +            # Hack to pre-reserve some memory for HVM setup.
     1.8 +            # Needed because Xen allocates 1MB by default immediately.
     1.9 +            balloon.free(2*1024) # 2MB should be plenty
    1.10  
    1.11          self.domid = xc.domain_create(
    1.12              domid = 0,