qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH v7 0/4] reload images from host rootfs on reset to save footprint
@ 2012-11-29  5:26 Olivia Yin
  2012-11-29  5:26 ` [Qemu-devel] [RFC PATCH v7 1/4] use image_file_reset to reload initrd Olivia Yin
  0 siblings, 1 reply; 10+ messages in thread
From: Olivia Yin @ 2012-11-29  5:26 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 uimage/initrd/vmlinux
from hard disk on reset, which could make loader framework more dynamic and 
reduce the memory consumption of QEMU process.

Olivia Yin (4):
  use image_file_reset to reload initrd
  use uimage_reset to reload uimage
  use elf_reset to reload elf image
  free rom->data when rom_reset

 elf.h        |   10 ++++++
 hw/elf_ops.h |   44 +++++++++++++++++++++++---
 hw/loader.c  |   99 ++++++++++++++++++++++++++++++++++++++++++++++++----------
 hw/loader.h  |    9 +++++
 4 files changed, 140 insertions(+), 22 deletions(-)

v7: clean structure ImageFile

v6:
patch 3/4: load symbol only when startup

v5: 
patch 2/4: remove global variables is_linux and kernel_loaded.
patch 3/4: register reset handlers in loader.c for elf images.
           extract the duplicated source code into function elf_phy_loader().
patch 4/4: fix the issue of memory increasing (about 1.4MB) once reload elf image.

v4: fix elf reload and register reset handler in hw/elf_ops.h

v3: reload elf

v2: Rename target_phys_addr_t to hwaddr

v1: support uimage/initrd reload

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

end of thread, other threads:[~2012-12-17 15:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-29  5:26 [Qemu-devel] [RFC PATCH v7 0/4] reload images from host rootfs on reset to save footprint Olivia Yin
2012-11-29  5:26 ` [Qemu-devel] [RFC PATCH v7 1/4] use image_file_reset to reload initrd Olivia Yin
2012-11-29  5:26   ` [Qemu-devel] [RFC PATCH v7 2/4] use uimage_reset to reload uimage Olivia Yin
2012-11-29  5:26     ` [Qemu-devel] [RFC PATCH v7 3/4] use elf_reset to reload elf image Olivia Yin
2012-11-29  5:26       ` [Qemu-devel] [RFC PATCH v7 4/4] free rom->data when rom_reset Olivia Yin
2012-12-02 11:37       ` [Qemu-devel] [Qemu-ppc] [RFC PATCH v7 3/4] use elf_reset to reload elf image Alexander Graf
2012-12-02 11:32     ` [Qemu-devel] [Qemu-ppc] [RFC PATCH v7 2/4] use uimage_reset to reload uimage Alexander Graf
2012-12-02 11:20   ` [Qemu-devel] [Qemu-ppc] [RFC PATCH v7 1/4] use image_file_reset to reload initrd Alexander Graf
2012-12-06  4:11     ` Yin Olivia-R63875
2012-12-17 15:04       ` Alexander Graf

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