From: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Thomas Huth <thuth@linux.vnet.ibm.com>,
Alexey Kardashevskiy <aik@ozlabs.ru>,
Markus Armbruster <armbru@redhat.com>,
Alexander Graf <agraf@suse.de>,
QEMU Developers <qemu-devel@nongnu.org>,
"qemu-ppc@nongnu.org" <qemu-ppc@nongnu.org>,
marcel.apfelbaum@gmail.com, Igor Mammedov <imammedo@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3 0/2] Introduce default ram size in MachineClass
Date: Thu, 05 Mar 2015 20:37:57 +0530 [thread overview]
Message-ID: <87mw3rwkhe.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAFEAcA9QzjgaoWfVwrs9a79KG-pVgroJmb8MzXU5FkZUTGKTvQ@mail.gmail.com>
Peter Maydell <peter.maydell@linaro.org> writes:
> On 5 March 2015 at 19:24, Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> wrote:
>> Rejection is also change of behaviour. Because till now, a VM would
>> start with any memory size, even if it's less that 128MB
>> (default_ram_size). With rejection, all those VMs would fail booting
>> displaying the warning. Is this OK?
>
> No. Not all of the machines we emulate are modern machines with
> gigabytes of memory -- some are very small boards which might
> really only have 64K of RAM. If the user asks for 64K you should
> do what they ask.
>
> If what you want is to reject user specified memory sizes which
> are too small, this is a "minimum RAM size", which is different
> from "default RAM size". It would also be nice to have a
> "maximum RAM size", so we can avoid weird failures if the user
> asks for 1GB on a board which only has 256MB of space for RAM
> in its address map.
Yes, [min,max]_ram_size is more appropriate. At present, I have sent a
v4 without changing the default behaviour when user has provided an
option.
> Somebody may be along shortly to complain that this doesn't account
> for machines where you can only add RAM one DRAM stick at a time
> and so 64MB, 128MB and 256MB might all be valid but 100MB not.
Yes, and these would help memory hotplug as well.
> At least, that's what happened a few years ago when I tried to
> suggest something like these per-board properties...
>
> -- PMM
Regards
Nikunj
next prev parent reply other threads:[~2015-03-05 15:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-05 9:06 [Qemu-devel] [PATCH v3 0/2] Introduce default ram size in MachineClass Nikunj A Dadhania
2015-03-05 9:06 ` [Qemu-devel] [PATCH v3 1/2] machine: add default_ram_size to machine class Nikunj A Dadhania
2015-03-05 10:17 ` Igor Mammedov
2015-03-05 10:31 ` Nikunj A Dadhania
2015-03-05 10:41 ` Thomas Huth
2015-03-05 10:54 ` Nikunj A Dadhania
2015-03-05 9:06 ` [Qemu-devel] [PATCH v3 2/2] spapr: override default ram size 1GB Nikunj A Dadhania
2015-03-05 10:19 ` Igor Mammedov
2015-03-05 10:04 ` [Qemu-devel] [PATCH v3 0/2] Introduce default ram size in MachineClass Markus Armbruster
2015-03-05 10:24 ` Nikunj A Dadhania
2015-03-05 12:05 ` Peter Maydell
2015-03-05 15:07 ` Nikunj A Dadhania [this message]
2015-03-05 12:19 ` Markus Armbruster
2015-03-05 15:02 ` Nikunj A Dadhania
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mw3rwkhe.fsf@linux.vnet.ibm.com \
--to=nikunj@linux.vnet.ibm.com \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=armbru@redhat.com \
--cc=imammedo@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.