qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/1] Fix max initrd size limit when put initrd to RAM
@ 2023-03-13  2:18 Hang Xu
  2023-03-13  2:18 ` [PATCH v3 1/1] hw/riscv: Fix max " Hang Xu
  0 siblings, 1 reply; 8+ messages in thread
From: Hang Xu @ 2023-03-13  2:18 UTC (permalink / raw)
  To: qemu-riscv; +Cc: qemu-devel, palmer, dbarboza, alistair.francis, Hang Xu

Because the starting address of ram is not necessarily 0,
the remaining free space in ram is
ram_size - (start - ram_base) instead of ram_size-start.

v3:
* Declare 'max_initrd' at the start of the function
* Fix title typo

v2:
* Rebase
* Considering that the ram block may be discontinuous

Hang Xu (1):
  hw/riscv: Fix max size limit when put initrd to RAM

 hw/riscv/boot.c            | 19 +++++++++++++------
 hw/riscv/microchip_pfsoc.c |  5 ++++-
 hw/riscv/opentitan.c       |  2 +-
 hw/riscv/sifive_e.c        |  2 +-
 hw/riscv/sifive_u.c        |  5 ++++-
 hw/riscv/spike.c           |  5 ++++-
 hw/riscv/virt.c            |  5 ++++-
 include/hw/riscv/boot.h    |  2 ++
 8 files changed, 33 insertions(+), 12 deletions(-)

-- 
2.17.1



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

end of thread, other threads:[~2023-04-07  4:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-13  2:18 [PATCH v3 0/1] Fix max initrd size limit when put initrd to RAM Hang Xu
2023-03-13  2:18 ` [PATCH v3 1/1] hw/riscv: Fix max " Hang Xu
2023-03-13 12:29   ` Daniel Henrique Barboza
2023-03-13 15:49   ` Anup Patel
2023-03-13 21:32     ` Daniel Henrique Barboza
2023-04-05  5:53   ` Alistair Francis
2023-04-05  9:38     ` Daniel Henrique Barboza
2023-04-07  4:26     ` Hang Xu

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).