qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/2] Introduce default ram size in MachineClass
@ 2015-03-05  9:06 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
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Nikunj A Dadhania @ 2015-03-05  9:06 UTC (permalink / raw)
  To: qemu-devel
  Cc: thuth, nikunj, aik, agraf, armbru, qemu-ppc, marcel.apfelbaum,
	imammedo

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) In case the user provides memory that is lesser than machine's
   default ram size, we upscale the ram_size to machine's
   default_ram_size. A warning is displayed for the change that qemu
   has done.

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.

Nikunj A Dadhania (2):
  machine: add default_ram_size to machine class
  spapr: override default ram size 1GB

 hw/core/machine.c   |  8 ++++++++
 hw/ppc/spapr.c      |  2 ++
 include/hw/boards.h |  4 ++++
 vl.c                | 29 +++++++++++++++++------------
 4 files changed, 31 insertions(+), 12 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-03-05 15:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-03-05 12:19     ` Markus Armbruster
2015-03-05 15:02       ` Nikunj A Dadhania

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).