aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-04-01 10:52:47 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-04-01 10:52:47 +0100
commitd057bf8506f83d7648754b4fc6844a78710f2b98 (patch)
tree55b3f1252c31d3f2405876460eaf0b54a0025c84
parent840ac8df5ad05ef8472daa6692676d363edbc2a2 (diff)
downloadxen-d057bf8506f83d7648754b4fc6844a78710f2b98.tar.gz
xen-d057bf8506f83d7648754b4fc6844a78710f2b98.tar.bz2
xen-d057bf8506f83d7648754b4fc6844a78710f2b98.zip
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@novell.com>
-rw-r--r--tools/python/xen/xend/balloon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/balloon.py b/tools/python/xen/xend/balloon.py
index 56c0e75e56..63f1f7eb42 100644
--- a/tools/python/xen/xend/balloon.py
+++ b/tools/python/xen/xend/balloon.py
@@ -152,7 +152,7 @@ def free(required):
'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.') %