qemu/hw/loongarch
Xianglai Li a3d5f62254 hw/loongarch/boot: Adjust the loading position of the initrd
When only the -kernel parameter is used to load the elf kernel, the initrd
is loaded in the ram. If the initrd size is too large, the loading fails,
resulting in a VM startup failure. This patch first loads initrd near
the kernel.

When the nearby memory space of the kernel is insufficient, it tries to
load it to the starting position of high memory. If there is still not
enough, qemu will report an error and ask the user to increase the memory
space for the virtual machine to boot.

Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
Message-Id: <20250506080946.817092-1-lixianglai@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
2025-05-14 15:57:23 +08:00
..
boot.c hw/loongarch/boot: Adjust the loading position of the initrd 2025-05-14 15:57:23 +08:00
fw_cfg.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
fw_cfg.h hw/loongarch: Rename LoongArchMachineState with LoongArchVirtMachineState 2024-05-09 00:07:21 +02:00
Kconfig hw/loongarch/virt: Update the ACPI table for hotplug cpu 2025-03-05 09:39:18 +08:00
meson.build hw/loongarch/virt: Add separate file for fdt building 2025-02-12 09:52:26 +08:00
virt-acpi-build.c hw/loongarch/virt: Replace RSDT with XSDT table 2025-05-06 09:17:32 +08:00
virt-fdt-build.c hw: Centralize handling of -machine dumpdtb option 2025-02-24 15:03:42 +00:00
virt.c hw/intc/loongarch_pch: Merge three memory region into one 2025-05-14 15:56:28 +08:00