diff options
author | Joel Stanley <joel@jms.id.au> | 2019-08-21 12:39:45 +0930 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-08-29 09:44:58 +1000 |
commit | f1d18b0a7e29837cfc691688475a8fd5e53cf612 (patch) | |
tree | 00ba98af25df6f0162719eb6408813fafcc07f2f /hw | |
parent | 23919ddfd56135cad3cb468a8f54d5a595f024f4 (diff) |
ppc/pnv: Set default ram size to 1.75GB
This makes the powernv machine easier for end users as the default
initrd address (1.5GB) is now within RAM.
This uses less than 2GB of RAM to ensure 32 bit Qemu still works.
Signed-off-by: Joel Stanley <joel@jms.id.au>
Message-Id: <20190821030945.473-1-joel@jms.id.au>
[dwg: Fix comment style for checkpatch]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ppc/pnv.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c index d95086fbbd..6ead82aaa7 100644 --- a/hw/ppc/pnv.c +++ b/hw/ppc/pnv.c @@ -1361,7 +1361,11 @@ static void pnv_machine_class_init(ObjectClass *oc, void *data) * storage */ mc->no_parallel = 1; mc->default_boot_order = NULL; - mc->default_ram_size = 1 * GiB; + /* + * RAM defaults to less than 2048 for 32-bit hosts, and large + * enough to fit the maximum initrd size at it's load address + */ + mc->default_ram_size = INITRD_LOAD_ADDR + INITRD_MAX_SIZE; xic->icp_get = pnv_icp_get; xic->ics_get = pnv_ics_get; xic->ics_resend = pnv_ics_resend; |