Received: from eggs.gnu.org ([2001:4830:134:3::10]:53042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YY6CX-0005br-TX for qemu-devel@nongnu.org; Wed, 18 Mar 2015 01:07:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YY6CU-0002vb-OY for qemu-devel@nongnu.org; Wed, 18 Mar 2015 01:07:29 -0400 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:36880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YY6CU-0002um-3E for qemu-devel@nongnu.org; Wed, 18 Mar 2015 01:07:26 -0400 Received: from /spool/local by e28smtp05.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Mar 2015 10:37:21 +0530 From: Nikunj A Dadhania In-Reply-To: <1425570490-16626-1-git-send-email-nikunj@linux.vnet.ibm.com> References: <1425570490-16626-1-git-send-email-nikunj@linux.vnet.ibm.com> Date: Wed, 18 Mar 2015 10:37:16 +0530 Message-ID: <87a8za7v23.fsf@abhimanyu.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v5 0/2] Introduce default ram size in MachineClass List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, agraf@suse.de, Paolo Bonzini , Peter Maydell Cc: thuth@linux.vnet.ibm.com, aik@ozlabs.ru, armbru@redhat.com, qemu-ppc@nongnu.org, marcel.apfelbaum@gmail.com, imammedo@redhat.com Nikunj A Dadhania writes: > Current DEFAULT_RAM_SIZE(128MB) enforced by QEMU would not work for > all machines. Introduce a default_ram_size as part of MachineClass. > > The below patches has following behaviour: > > 1) If the user does not provide "-m" option, machine's default ram > size will be picked. > > 2) The default behaviour of "-m" is not changed > > On the side note, there are other cleanup of removing ram_size, slots > and maxmem from vl.c. All these are being parsed by generic code. This > can be moved to machine specific property. I will take a stab at it > next. Ping, Agraf, will this go via your ppc tree? > Nikunj A Dadhania (2): > machine: add default_ram_size to machine class > spapr: override default ram size to 1GB > > hw/core/machine.c | 9 +++++++++ > hw/ppc/spapr.c | 1 + > include/hw/boards.h | 1 + > include/qemu-common.h | 6 ++++++ > vl.c | 30 ++++++++++++++++-------------- > 5 files changed, 33 insertions(+), 14 deletions(-) > > -- > 1.8.3.1