From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yns0O-0007lY-OP for qemu-devel@nongnu.org; Thu, 30 Apr 2015 13:12:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yns0H-0000Zb-Dj for qemu-devel@nongnu.org; Thu, 30 Apr 2015 13:12:06 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:58569) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yns0G-0000Ya-Qu for qemu-devel@nongnu.org; Thu, 30 Apr 2015 13:12:01 -0400 Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 1 May 2015 03:11:58 +1000 From: Nikunj A Dadhania Date: Thu, 30 Apr 2015 22:40:04 +0530 Message-Id: <1430413806-5057-1-git-send-email-nikunj@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v6 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 Cc: thuth@redhat.com, nikunj@linux.vnet.ibm.com, aik@ozlabs.ru, agraf@suse.de, qemu-ppc@nongnu.org, pbonzini@redhat.com, david@gibson.dropbear.id.au 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 3) Adds 512MB default memory for spapr machine Nikunj A Dadhania (2): machine: add default_ram_size to machine class spapr: override default ram size to 512MB 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