qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH v4 0/3] reload kernel/initrd/elf images when reset
@ 2012-11-14 13:28 Olivia Yin
  2012-11-14 13:28 ` [Qemu-devel] [RFC PATCH v4 1/3] use image_file_reset to reload initrd image Olivia Yin
  2012-11-15  5:12 ` [Qemu-devel] [RFC PATCH v4 0/3] reload kernel/initrd/elf images when reset Yin Olivia-R63875
  0 siblings, 2 replies; 11+ messages in thread
From: Olivia Yin @ 2012-11-14 13:28 UTC (permalink / raw)
  To: qemu-devel, qemu-ppc; +Cc: Olivia Yin

The current model of loader copy "rom blobs" and kept in memory until 
a reset occurs and waste host memory.

This serial of patches uses private reset handlers to load from hard 
disk on reset, which could make loader framework more dynamic and 
reduce the memory consumption of QEMU process.

Olivia Yin (3):
  use image_file_reset to reload initrd image
  use uimage_reset to reload uimage
  use elf_reset to reload elf image

 elf.h        |   10 ++++++
 hw/elf_ops.h |  101 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/loader.c  |  103 +++++++++++++++++++++++++++++++++++++++++++++++----------
 hw/loader.h  |    7 ++++
 4 files changed, 203 insertions(+), 18 deletions(-)
---

v4:
 uImage/vmlinux/ramdisk had been verified on PowerPC platforms.
Issue: 
 It seemed that the patch 3/3 could not free the memory for phdr, and the memory map of QEMU will increase 1392K every time.
 If free phdr, system_reset will cause segmentation fault.

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

end of thread, other threads:[~2012-11-19 11:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-14 13:28 [Qemu-devel] [RFC PATCH v4 0/3] reload kernel/initrd/elf images when reset Olivia Yin
2012-11-14 13:28 ` [Qemu-devel] [RFC PATCH v4 1/3] use image_file_reset to reload initrd image Olivia Yin
2012-11-14 13:28   ` [Qemu-devel] [RFC PATCH v4 2/3] use uimage_reset to reload uimage Olivia Yin
2012-11-14 13:28     ` [Qemu-devel] [RFC PATCH v4 3/3] use elf_reset to reload elf image Olivia Yin
2012-11-17 16:09       ` [Qemu-devel] [Qemu-ppc] " Blue Swirl
2012-11-15 20:46     ` [Qemu-devel] [RFC PATCH v4 2/3] use uimage_reset to reload uimage Stuart Yoder
2012-11-16  6:11       ` Yin Olivia-R63875
2012-11-19 11:26         ` [Qemu-devel] [Qemu-ppc] " Alexander Graf
2012-11-15 19:52   ` [Qemu-devel] [RFC PATCH v4 1/3] use image_file_reset to reload initrd image Stuart Yoder
2012-11-16  5:50     ` Yin Olivia-R63875
2012-11-15  5:12 ` [Qemu-devel] [RFC PATCH v4 0/3] reload kernel/initrd/elf images when reset Yin Olivia-R63875

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