* [PATCH] kvm tools: remove arbitrary minimum RAM limitation
@ 2013-04-23 14:57 Sasha Levin
2013-04-23 15:04 ` Will Deacon
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Sasha Levin @ 2013-04-23 14:57 UTC (permalink / raw)
To: penberg; +Cc: will.deacon, marc.zyngier, kvm, asias, Sasha Levin
We don't really need 64MB 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
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
---
tools/kvm/builtin-run.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c
index c6f5862..4d7fbf9d 100644
--- a/tools/kvm/builtin-run.c
+++ b/tools/kvm/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());
--
1.8.2.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] kvm tools: remove arbitrary minimum RAM limitation
2013-04-23 14:57 [PATCH] kvm tools: remove arbitrary minimum RAM limitation Sasha Levin
@ 2013-04-23 15:04 ` Will Deacon
2013-04-24 7:32 ` Pekka Enberg
2013-04-24 8:25 ` Michael Ellerman
2 siblings, 0 replies; 6+ messages in thread
From: Will Deacon @ 2013-04-23 15:04 UTC (permalink / raw)
To: Sasha Levin
Cc: penberg@kernel.org, Marc Zyngier, kvm@vger.kernel.org,
asias@redhat.com
On Tue, Apr 23, 2013 at 03:57:34PM +0100, Sasha Levin wrote:
> We don't really need 64MB 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
>
> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
The smaller the better!
Acked-by: Will Deacon <will.deacon@arm.com>
Will
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] kvm tools: remove arbitrary minimum RAM limitation
2013-04-23 14:57 [PATCH] kvm tools: remove arbitrary minimum RAM limitation Sasha Levin
2013-04-23 15:04 ` Will Deacon
@ 2013-04-24 7:32 ` Pekka Enberg
2013-04-24 8:25 ` Michael Ellerman
2 siblings, 0 replies; 6+ messages in thread
From: Pekka Enberg @ 2013-04-24 7:32 UTC (permalink / raw)
To: Sasha Levin; +Cc: will.deacon, marc.zyngier, kvm, asias
On 04/23/2013 05:57 PM, Sasha Levin wrote:
> We don't really need 64MB 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
>
> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Applied, thanks!
Pekka
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] kvm tools: remove arbitrary minimum RAM limitation
2013-04-23 14:57 [PATCH] kvm tools: remove arbitrary minimum RAM limitation Sasha Levin
2013-04-23 15:04 ` Will Deacon
2013-04-24 7:32 ` Pekka Enberg
@ 2013-04-24 8:25 ` Michael Ellerman
2013-04-24 9:18 ` Asias He
2013-04-24 17:50 ` Sasha Levin
2 siblings, 2 replies; 6+ messages in thread
From: Michael Ellerman @ 2013-04-24 8:25 UTC (permalink / raw)
To: Sasha Levin; +Cc: penberg, will.deacon, marc.zyngier, kvm, asias
On Tue, 2013-04-23 at 10:57 -0400, Sasha Levin wrote:
> We don't really need 64MB of RAM to boot, it's a nice default if we don't
> have anything else - but it's not actually required for anything:
Nice, I am carrying something similar locally so I can boot in 4K :)
cheers
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] kvm tools: remove arbitrary minimum RAM limitation
2013-04-24 8:25 ` Michael Ellerman
@ 2013-04-24 9:18 ` Asias He
2013-04-24 17:50 ` Sasha Levin
1 sibling, 0 replies; 6+ messages in thread
From: Asias He @ 2013-04-24 9:18 UTC (permalink / raw)
To: Michael Ellerman; +Cc: Sasha Levin, penberg, will.deacon, marc.zyngier, kvm
On Wed, Apr 24, 2013 at 06:25:30PM +1000, Michael Ellerman wrote:
> On Tue, 2013-04-23 at 10:57 -0400, Sasha Levin wrote:
> > We don't really need 64MB of RAM to boot, it's a nice default if we don't
> > have anything else - but it's not actually required for anything:
>
> Nice, I am carrying something similar locally so I can boot in 4K :)
Show me your $free ;-)
> cheers
>
--
Asias
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] kvm tools: remove arbitrary minimum RAM limitation
2013-04-24 8:25 ` Michael Ellerman
2013-04-24 9:18 ` Asias He
@ 2013-04-24 17:50 ` Sasha Levin
1 sibling, 0 replies; 6+ messages in thread
From: Sasha Levin @ 2013-04-24 17:50 UTC (permalink / raw)
To: Michael Ellerman; +Cc: penberg, will.deacon, marc.zyngier, kvm, asias
On 04/24/2013 04:25 AM, Michael Ellerman wrote:
> On Tue, 2013-04-23 at 10:57 -0400, Sasha Levin wrote:
>> We don't really need 64MB of RAM to boot, it's a nice default if we don't
>> have anything else - but it's not actually required for anything:
>
> Nice, I am carrying something similar locally so I can boot in 4K :)
Feel free to send stuff you carry locally over! :)
Thanks,
Sasha
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-04-24 17:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-23 14:57 [PATCH] kvm tools: remove arbitrary minimum RAM limitation Sasha Levin
2013-04-23 15:04 ` Will Deacon
2013-04-24 7:32 ` Pekka Enberg
2013-04-24 8:25 ` Michael Ellerman
2013-04-24 9:18 ` Asias He
2013-04-24 17:50 ` Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox