[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PULL 01/19] ppc/pnv: Set default ram size to 1.75GB
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PULL 01/19] ppc/pnv: Set default ram size to 1.75GB |
Date: |
Thu, 29 Aug 2019 16:08:09 +1000 |
From: Joel Stanley <address@hidden>
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 <address@hidden>
Message-Id: <address@hidden>
[dwg: Fix comment style for checkpatch]
Signed-off-by: David Gibson <address@hidden>
---
hw/ppc/pnv.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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;
--
2.21.0
- [Qemu-ppc] [PULL 00/19] ppc-for-4.2 queue 20190829, David Gibson, 2019/08/29
- [Qemu-ppc] [PULL 01/19] ppc/pnv: Set default ram size to 1.75GB,
David Gibson <=
- [Qemu-ppc] [PULL 03/19] ppc/pnv: add more dummy XSCOM addresses for the P9 CAPP, David Gibson, 2019/08/29
- [Qemu-ppc] [PULL 06/19] tests/boot-serial-test: add support for all the PowerNV machines, David Gibson, 2019/08/29
- [Qemu-ppc] [PULL 05/19] ppc/pnv: Introduce PowerNV machines with fixed CPU models, David Gibson, 2019/08/29
- [Qemu-ppc] [PULL 04/19] ppc/pnv: Generate phandle for the "interrupt-parent" property, David Gibson, 2019/08/29
- [Qemu-ppc] [PULL 07/19] ppc: Fix xsmaddmdp and friends, David Gibson, 2019/08/29
- [Qemu-ppc] [PULL 11/19] target/ppc: Set float_tininess_before_rounding at cpu reset, David Gibson, 2019/08/29
- [Qemu-ppc] [PULL 10/19] pseries: Fix compat_pvr on reset, David Gibson, 2019/08/29
- [Qemu-ppc] [PULL 13/19] target/ppc: Refactor emulation of vmrgew and vmrgow instructions, David Gibson, 2019/08/29
- [Qemu-ppc] [PULL 12/19] target/ppc: Fix do_float_check_status vs inexact, David Gibson, 2019/08/29
- [Qemu-ppc] [PULL 08/19] ppc: Fix xscvdpspn for SNAN, David Gibson, 2019/08/29