qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Support 64-bit address of initrd
@ 2024-11-07  6:31 Jim Shu
  2024-11-07  6:31 ` [PATCH v2 1/3] hw/riscv: Support to load DTB after 3GB memory on 64-bit system Jim Shu
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jim Shu @ 2024-11-07  6:31 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv
  Cc: Palmer Dabbelt, Alistair Francis, Bin Meng, Weiwei Li,
	Daniel Henrique Barboza, Liu Zhiwei, Jim Shu

Support to load DTB after 3GB on RV64 system, so that larger initrd
doesn't be overlapped to DTB. DTB loading now will check if overlapping
to kernel/initrd and report this error.

Verify the patch via running 4GB initramfs on the virt machine.

Changes for v2:

  - Add DTB overlapping checking and struct RISCVBootInfo
  - Remove the commit to change #address-cell of 'initrd-[start|end]'

Jim Shu (3):
  hw/riscv: Support to load DTB after 3GB memory on 64-bit system.
  hw/riscv: Add a new struct RISCVBootInfo
  hw/riscv: Add the checking if DTB overlaps to kernel or initrd

 hw/riscv/boot.c                    | 94 +++++++++++++++++++++---------
 hw/riscv/microchip_pfsoc.c         | 13 +++--
 hw/riscv/opentitan.c               |  4 +-
 hw/riscv/sifive_e.c                |  4 +-
 hw/riscv/sifive_u.c                | 14 ++---
 hw/riscv/spike.c                   | 14 ++---
 hw/riscv/virt.c                    | 13 +++--
 include/hw/riscv/boot.h            | 28 ++++++---
 include/hw/riscv/microchip_pfsoc.h |  2 +
 include/hw/riscv/opentitan.h       |  2 +
 include/hw/riscv/sifive_e.h        |  2 +
 include/hw/riscv/sifive_u.h        |  2 +
 include/hw/riscv/spike.h           |  2 +
 include/hw/riscv/virt.h            |  2 +
 14 files changed, 130 insertions(+), 66 deletions(-)

-- 
2.17.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-11-08  4:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-07  6:31 [PATCH v2 0/3] Support 64-bit address of initrd Jim Shu
2024-11-07  6:31 ` [PATCH v2 1/3] hw/riscv: Support to load DTB after 3GB memory on 64-bit system Jim Shu
2024-11-08  1:16   ` Alistair Francis
2024-11-07  6:31 ` [PATCH v2 2/3] hw/riscv: Add a new struct RISCVBootInfo Jim Shu
2024-11-07 21:33   ` Daniel Henrique Barboza
2024-11-08  4:03     ` Jim Shu
2024-11-07  6:31 ` [PATCH v2 3/3] hw/riscv: Add the checking if DTB overlaps to kernel or initrd Jim Shu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).