]> xenbits.xensource.com Git - xenclient/kernel.git/commit
linux/balloon: don't allow ballooning down a domain below a reasonable limit
authorKeir Fraser <keir.fraser@citrix.com>
Sat, 5 Apr 2008 21:36:49 +0000 (22:36 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Sat, 5 Apr 2008 21:36:49 +0000 (22:36 +0100)
commit32b23a3400be17fbd42e4df86d8017bc1f2768fd
treea27f7da4904f16501173eae82d45f22573499f4b
parent4936b82e7f4d23c77da9c8bea3457815b1fc2db1
linux/balloon: don't allow ballooning down a domain below a reasonable limit

Reasonable is hard to judge; we don't want to disallow small domains.
But the system needs a reasonable amount of memory to perform its
duties, set up tables, etc. If on the other hand, the admin is able
to set up and boot up correctly a very small domain, there's no point
in forcing it to be larger. We end up with some kind of logarithmic
function, approximated.

Signed-off-by: Kurt Garloff <garloff@suse.de>
Signed-off-by: Jan Beulich <jbeulich@novell.com>
drivers/xen/balloon/balloon.c