The HVM auto-ballooning is causing problems for paravirtualized guests on HVM enabled ia64 systems. This allows them to boot again. Maybe we can take advantage of this when we have better ballooning support on xen/ia64. Signed-off-by: Alex Williamson <alex.williamson@hp.com> --- diff -r 4dcb93547710 tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Sun May 21 09:55:15 2006 +0100 +++ b/tools/python/xen/xend/image.py Sun May 21 14:25:19 2006 -0600 @@ -146,7 +146,7 @@ class ImageHandler: """@return The memory required, in KiB, by the domain to store the given amount, also in KiB. This is normally just mem, but if HVM is supported, keep a little extra free.""" - if ''hvm'' in xc.xeninfo()[''xen_caps'']: + if ''hvm'' in xc.xeninfo()[''xen_caps''] and os.uname()[4] != ''ia64'': mem_kb += 4*1024; return mem_kb _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Alex Williamson
2006-May-21 22:29 UTC
[Xen-devel] Re: [Xen-ia64-devel] [PATCH] diable HVM auto-balloon on ia64
On Sun, 2006-05-21 at 15:07 -0600, Alex Williamson wrote:> diff -r 4dcb93547710 tools/python/xen/xend/image.py > --- a/tools/python/xen/xend/image.py Sun May 21 09:55:15 2006 +0100 > +++ b/tools/python/xen/xend/image.py Sun May 21 14:25:19 2006 -0600 > @@ -146,7 +146,7 @@ class ImageHandler: > """@return The memory required, in KiB, by the domain to store the > given amount, also in KiB. This is normally just mem, but if HVM is > supported, keep a little extra free.""" > - if ''hvm'' in xc.xeninfo()[''xen_caps'']: > + if ''hvm'' in xc.xeninfo()[''xen_caps''] and os.uname()[4] != ''ia64'': > mem_kb += 4*1024; > return mem_kbLooks like this is just a partial solution, VTi guests are still broken with only this change. Instead, we probably need to look at cset 10040. I suspect we don''t yet have the ballooning support and need to do the allocation up front. Thanks, Alex -- Alex Williamson HP Linux & Open Source Lab _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel