aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2013-04-23 10:57:34 -0400
committerWill Deacon <will.deacon@arm.com>2015-06-01 16:39:54 +0100
commit76f073fcf862a709e9827b2d91a815bd407aa92a (patch)
tree35868fae5a374f30fdb2c761f6b705501ba720fe
parent79052597edaae6167129f9b7cee0ac6d7ecfb95c (diff)
downloadkvmtool-76f073fcf862a709e9827b2d91a815bd407aa92a.tar.gz
kvm tools: remove arbitrary minimum RAM limitation
We don't really need 64 MB of RAM to boot, it's a nice default if we don't have anything else - but it's not actually required for anything: sh-4.2# free -h total used free shared buffers cached Mem: 20M 15M 4.2M 0B 0B 4.2M -/+ buffers/cache: 11M 8.3M Swap: 0B 0B 0B Acked-by: Will Deacon <will.deacon@arm.com> Acked-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r--builtin-run.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin-run.c b/builtin-run.c
index c6f58628..4d7fbf9d 100644
--- a/builtin-run.c
+++ b/builtin-run.c
@@ -563,9 +563,6 @@ static struct kvm *kvm_cmd_run_init(int argc, const char **argv)
if (!kvm->cfg.ram_size)
kvm->cfg.ram_size = get_ram_size(kvm->cfg.nrcpus);
- if (kvm->cfg.ram_size < MIN_RAM_SIZE_MB)
- die("Not enough memory specified: %lluMB (min %lluMB)", kvm->cfg.ram_size, MIN_RAM_SIZE_MB);
-
if (kvm->cfg.ram_size > host_ram_size())
pr_warning("Guest memory size %lluMB exceeds host physical RAM size %lluMB", kvm->cfg.ram_size, host_ram_size());