[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] When dom0 fails to balloon enough memory to allow a new domain to start,



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 508cb44338f57f6b457a2c17d51cf9a920d64d53
# Parent  767e14b727fa729e67874ba1105b14d7e2524e22
When dom0 fails to balloon enough memory to allow a new domain to start,
an exception is thrown.  The test that decides which exception to throw
is backwards, resulting in strange error messages.  The attached patch
fixes the problem.

Signed-off-by:  Charles Coffing <ccoffing@xxxxxxxxxx>

diff -r 767e14b727fa -r 508cb44338f5 tools/python/xen/xend/balloon.py
--- a/tools/python/xen/xend/balloon.py  Sat Apr  1 09:50:58 2006
+++ b/tools/python/xen/xend/balloon.py  Sat Apr  1 09:52:47 2006
@@ -152,7 +152,7 @@
                            'I cannot release any more.  I need %d MiB but '
                            'only have %d.') %
                           (need_mem, free_mem))
-        elif new_alloc >= dom0_min_mem:
+        elif new_alloc < dom0_min_mem:
             raise VmError(
                 ('I need %d MiB, but dom0_min_mem is %d and shrinking to '
                  '%d MiB would leave only %d MiB free.') %

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.