]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
machine: add default_ram_size to machine class
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Thu, 7 May 2015 05:33:57 +0000 (15:33 +1000)
committerAlexander Graf <agraf@suse.de>
Wed, 3 Jun 2015 21:56:55 +0000 (23:56 +0200)
commit076b35b5a56bca57c4aa41044ed304fe9c45d6c5
tree63c490a27907a8d0f055aa5c0578ad6340a980d4
parentc5bc152bc399ae7ec8ac5227762e4320d0fd2d1c
machine: add default_ram_size to machine class

Machines types can have different requirement for default ram
size. Introduce a member in the machine class and set the current
default_ram_size to 128MB.

For QEMUMachine types override the value during the registration of
the machine and for MachineClass introduce the generic class init
setting the default_ram_size.

Add helpers [K,M,G,T,P,E]_BYTE for better readability and easy usage

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/core/machine.c
include/hw/boards.h
include/qemu-common.h
vl.c