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 v4 0/3] reload kernel/initrd/elf images when reset
Date: Wed, 14 Nov 2012 21:28:49 +0800 [thread overview]
Message-ID: <1352899732-1197-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 (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.
next reply other threads:[~2012-11-14 14:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-14 13:28 Olivia Yin [this message]
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
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=1352899732-1197-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).