mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
This commit is contained in:
1 parent
840ac8df5a
commit
d057bf8506
1 file changed
+1
-1
@@ -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.') %
|
||||
|
||||