mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-28 22:44:59 -04:00
21 lines
839 B
Plaintext
21 lines
839 B
Plaintext
$NetBSD: patch-cx,v 1.1 2007/12/03 21:54:31 bouyer Exp $
|
|
|
|
--- python/xen/xend/balloon.py.orig 2007-11-15 00:35:27.000000000 +0100
|
|
+++ python/xen/xend/balloon.py 2007-12-03 16:34:28.000000000 +0100
|
|
@@ -96,7 +96,6 @@
|
|
xoptions = XendOptions.instance()
|
|
dom0 = XendDomain.instance().privilegedDomain()
|
|
xc = xen.lowlevel.xc.xc()
|
|
- dom0_start_alloc_mb = get_dom0_current_alloc() / 1024
|
|
|
|
try:
|
|
dom0_min_mem = xoptions.get_dom0_min_mem() * 1024
|
|
@@ -159,6 +158,7 @@
|
|
(need_mem, dom0_min_mem, dom0_min_mem,
|
|
free_mem + scrub_mem + dom0_alloc - dom0_min_mem))
|
|
else:
|
|
+ dom0_start_alloc_mb = get_dom0_current_alloc() / 1024
|
|
dom0.setMemoryTarget(dom0_start_alloc_mb)
|
|
raise VmError(
|
|
('Not enough memory is available, and dom0 cannot'
|