qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Olivia Yin <hong-hua.yin@freescale.com>
To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org
Cc: Olivia Yin <hong-hua.yin@freescale.com>
Subject: [Qemu-devel] [RFC PATCH v5 0/4] reload images from host rootfs once reset to save footprint
Date: Wed, 21 Nov 2012 15:38:01 +0800	[thread overview]
Message-ID: <1353483485-17019-1-git-send-email-hong-hua.yin@freescale.com> (raw)

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 (4):
  use image_file_reset to reload initrd image
  use uimage_reset to reload uimage
  use elf_reset to reload elf image
  free the memory malloced by load_at()

 elf.h        |   10 +++++
 hw/elf_ops.h |   42 +++++++++++++++++++--
 hw/loader.c  |  114 +++++++++++++++++++++++++++++++++++++++++++++++++---------
 hw/loader.h  |   13 +++++++
 4 files changed, 158 insertions(+), 21 deletions(-)

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.

             reply	other threads:[~2012-11-21  7:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-21  7:38 Olivia Yin [this message]
2012-11-21  7:38 ` [Qemu-devel] [RFC PATCH v5 1/4] use image_file_reset to reload initrd image Olivia Yin
2012-11-21  7:38 ` [Qemu-devel] [RFC PATCH v5 2/4] use uimage_reset to reload uimage Olivia Yin
2012-11-21  7:38 ` [Qemu-devel] [RFC PATCH v5 3/4] use elf_reset to reload elf image Olivia Yin
2012-11-21  7:38 ` [Qemu-devel] [RFC PATCH v5 4/4] free the memory malloced by load_at() Olivia Yin
2012-11-21 18:39   ` Stuart Yoder
2012-11-21 18:41     ` Alexander Graf
2012-11-26  1:53       ` Yin Olivia-R63875
2012-11-26 13:03         ` Alexander Graf
2012-11-27  2:11           ` Yin Olivia-R63875

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1353483485-17019-1-git-send-email-hong-hua.yin@freescale.com \
    --to=hong-hua.yin@freescale.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).