ia64/xen-unstable

changeset 9562:508cb44338f5

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>
author kaf24@firebug.cl.cam.ac.uk
date Sat Apr 01 10:52:47 2006 +0100 (2006-04-01)
parents 767e14b727fa
children 9bee4875a848
files tools/python/xen/xend/balloon.py
line diff
     1.1 --- a/tools/python/xen/xend/balloon.py	Sat Apr 01 10:50:58 2006 +0100
     1.2 +++ b/tools/python/xen/xend/balloon.py	Sat Apr 01 10:52:47 2006 +0100
     1.3 @@ -152,7 +152,7 @@ def free(required):
     1.4                             'I cannot release any more.  I need %d MiB but '
     1.5                             'only have %d.') %
     1.6                            (need_mem, free_mem))
     1.7 -        elif new_alloc >= dom0_min_mem:
     1.8 +        elif new_alloc < dom0_min_mem:
     1.9              raise VmError(
    1.10                  ('I need %d MiB, but dom0_min_mem is %d and shrinking to '
    1.11                   '%d MiB would leave only %d MiB free.') %