Skip to contentSkip to conversation

diable HVM auto-balloon on ia64

PATCH In review Alex Williamson 1 participant 2 messages May 21, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 diable HVM auto-balloon on ia64

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.

---

tools/python/xen/xend/image.py +1 -1
diff -r 4dcb93547710 tools/python/xen/xend/image.py
@@ -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
#1 lore raw

tools/python/xen/xend/image.py class ImageHandler: · line 151

Quoted 11 lines · Alex Williamson

diff -r 4dcb93547710 tools/python/xen/xend/image.py

tools/python/xen/xend/image.py +1 -1
@@ -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

Looks 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

Signature · 1 line
Alex Williamson                             HP Linux & Open Source Lab