[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.0.5-testing] xend: Auto-balloon a couple megabytes before creating an HVM domain as
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1177683754 -3600 # Node ID 4789f3b2e1b9f4b3baa2bca1fd1f9bcfdca28c05 # Parent 1634486b2a5ca28e0463218f6e8d92a3a6c1259a 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@xxxxxxxxxxxxx> --- tools/python/xen/xend/XendDomainInfo.py | 3 +++ 1 files changed, 3 insertions(+) diff -r 1634486b2a5c -r 4789f3b2e1b9 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Fri Apr 27 15:12:48 2007 +0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Fri Apr 27 15:22:34 2007 +0100 @@ -1419,6 +1419,9 @@ class XendDomainInfo: raise VmError("HVM guest support is unavailable: is VT/AMD-V " "supported by your CPU and enabled in your " "BIOS?") + # Hack to pre-reserve some memory for HVM setup. + # Needed because Xen allocates 1MB by default immediately. + balloon.free(2*1024) # 2MB should be plenty self.domid = xc.domain_create( domid = 0, _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |