[PATCH 0/2] hw/loongarch: Harden boot param
Bibo Mao <[email protected]>
| Newsgroups | gmane.comp.emulators.qemu |
|---|---|
| Message-ID | <[email protected]> |
When booting the Linux kernel without UEFI BIOS, QEMU needs to set the boot param for kernel. This patch adds memory boundary checking when adding boot param. Also this patch set adds bootargs and initrd in the FDT table. Bibo Mao (2): hw/loongarch/boot: Check memory boundary in init_boot_rom() hw/loongarch/virt: Add bootargs and initrd to device-tree hw/loongarch/boot.c | 68 ++++++++++++++++++++++++++++------- hw/loongarch/virt-fdt-build.c | 27 ++++++++++++++ 2 files changed, 82 insertions(+), 13 deletions(-) base-commit: b428fe036233cbd15d37e3c027ab6ca4d3661a80 -- 2.54.0