[Qemu-devel] [PATCH v10 2/4] use uimage_reset to reload uImage

2013-01-23 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 64 +++ 1 files changed, 51 insertions(+), 13 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 4fa9965..288a1ba 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -458,15 +458,15 @@ static

[Qemu-devel] [PATCH v10 3/4] use elf_reset to reload elf image

2013-01-23 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/elf_ops.h | 45 - hw/loader.c | 11 +++ hw/loader.h |9 + 3 files changed, 60 insertions(+), 5 deletions(-) diff --git a/hw/elf_ops.h b/hw/elf_ops.h index 531a425..25ee02a 100644 --- a/hw

[Qemu-devel] [PATCH v10 1/4] use image_file_reset to reload initrd

2013-01-23 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 25 + hw/loader.h |6 ++ 2 files changed, 31 insertions(+), 0 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index ba01ca6..4fa9965 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -86,6 +86,24 @@ int load_image

[Qemu-devel] [PATCH v10 0/4] reload images from host rootfs on reset to save footprint

2013-01-23 Thread Olivia Yin
ework more dynamic and reduce the memory consumption of QEMU process. Provides new API do_info_images() to display the information about the reloadable images (uImage/initrd/vmlinux). Olivia Yin (4): use image_file_reset to reload initrd use uimage_reset to reload uImage use elf_reset to

[Qemu-devel] [PATCH v9 1/4] use image_file_reset to reload initrd

2013-01-18 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 25 + hw/loader.h |6 ++ 2 files changed, 31 insertions(+), 0 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index ba01ca6..4fa9965 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -86,6 +86,24 @@ int load_image

[Qemu-devel] [PATCH v9 0/4] reload images from host rootfs on reset to save footprint

2013-01-18 Thread Olivia Yin
ework 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 use info images to check images which could br reloaded on reset hw/elf_ops.h

[Qemu-devel] [PATCH v9 3/4] use elf_reset to reload elf image

2013-01-18 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/elf_ops.h | 45 - hw/loader.c | 11 +++ hw/loader.h |9 + 3 files changed, 60 insertions(+), 5 deletions(-) diff --git a/hw/elf_ops.h b/hw/elf_ops.h index 531a425..25ee02a 100644 --- a/hw

[Qemu-devel] [PATCH v9 4/4] use info images to check images which could be reloaded on reset

2013-01-18 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c| 43 +-- hw/loader.h| 20 hw/ppc/e500.c |2 +- hw/ppc440_bamboo.c |2 +- monitor.c |7 +++ 5 files changed, 62 insertions(+), 12 deletions

[Qemu-devel] [PATCH v9 2/4] use uimage_reset to reload uImage

2013-01-18 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 57 + hw/loader.h |6 ++ 2 files changed, 51 insertions(+), 12 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 4fa9965..89ce853 100644 --- a/hw/loader.c +++ b/hw/loader.c

[Qemu-devel] [RFC PATCH v8 4/4] remove rom_reset()

2012-12-05 Thread Olivia Yin
The previous patches reload uimage/initrd/vmlinux reset. Other firmware images stay in the memory and don't need reload on reset. So rom_reset() could be removed. Signed-off-by: Olivia Yin --- hw/loader.c | 24 +++- 1 files changed, 3 insertions(+), 21 deletions(-)

[Qemu-devel] [RFC PATCH v8 3/4] use elf_reset to reload elf image

2012-12-05 Thread Olivia Yin
--- hw/elf_ops.h | 45 - hw/loader.c | 11 +++ hw/loader.h |9 + 3 files changed, 60 insertions(+), 5 deletions(-) diff --git a/hw/elf_ops.h b/hw/elf_ops.h index 531a425..eddaa5a 100644 --- a/hw/elf_ops.h +++ b/hw/elf_ops.h @@

[Qemu-devel] [RFC PATCH v8 2/4] use uimage_reset to reload uimage

2012-12-05 Thread Olivia Yin
--- hw/loader.c | 57 + hw/loader.h |8 2 files changed, 53 insertions(+), 12 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index f62aa7c..9a65ed3 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -457,15 +457,15 @@ static s

[Qemu-devel] [RFC PATCH v8 1/4] use image_file_reset to reload initrd

2012-12-05 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 24 hw/loader.h |6 ++ 2 files changed, 30 insertions(+), 0 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index ba01ca6..f62aa7c 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -86,6 +86,24 @@ int load_image

[Qemu-devel] [RFC PATCH v8 0/4] reload images from host rootfs on reset to save footprint

2012-12-05 Thread Olivia Yin
onsumption 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 remove rom_reset() hw/elf_ops.h | 45 -- hw/loader.c | 116 +--

[Qemu-devel] [RFC PATCH v7 3/4] use elf_reset to reload elf image

2012-11-28 Thread Olivia Yin
Signed-off-by: Olivia Yin --- elf.h| 10 ++ hw/elf_ops.h | 44 +++- hw/loader.c | 11 +++ 3 files changed, 60 insertions(+), 5 deletions(-) diff --git a/elf.h b/elf.h index a21ea53..335f1af 100644 --- a/elf.h +++ b/elf.h

[Qemu-devel] [RFC PATCH v7 4/4] free rom->data when rom_reset

2012-11-28 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 10e5726..c6f73bb 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -737,11 +737,8 @@ static void rom_reset(void *unused) continue

[Qemu-devel] [RFC PATCH v7 1/4] use image_file_reset to reload initrd

2012-11-28 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 24 hw/loader.h |6 ++ 2 files changed, 30 insertions(+), 0 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index ba01ca6..f62aa7c 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -86,6 +86,24 @@ int load_image

[Qemu-devel] [RFC PATCH v7 2/4] use uimage_reset to reload uimage

2012-11-28 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 57 + hw/loader.h |3 +++ 2 files changed, 48 insertions(+), 12 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index f62aa7c..151ef20 100644 --- a/hw/loader.c +++ b/hw/loader.c

[Qemu-devel] [RFC PATCH v7 0/4] reload images from host rootfs on reset to save footprint

2012-11-28 Thread Olivia Yin
onsumption 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/loa

[Qemu-devel] [RFC PATCH v6 3/4] use elf_reset to reload elf image

2012-11-26 Thread Olivia Yin
Signed-off-by: Olivia Yin --- elf.h| 10 ++ hw/elf_ops.h | 44 +++- hw/loader.c | 11 +++ 3 files changed, 60 insertions(+), 5 deletions(-) diff --git a/elf.h b/elf.h index a21ea53..335f1af 100644 --- a/elf.h +++ b/elf.h

[Qemu-devel] [RFC PATCH v6 4/4] free rom->data when rom_reset

2012-11-26 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index d075ed3..2dde6ba 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -752,11 +752,8 @@ static void rom_reset(void *unused) continue

[Qemu-devel] [RFC PATCH v6 2/4] use uimage_reset to reload uimage

2012-11-26 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 57 + hw/loader.h |6 ++ 2 files changed, 51 insertions(+), 12 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index e45f56a..0d93c3b 100644 --- a/hw/loader.c +++ b/hw/loader.c

[Qemu-devel] [RFC PATCH v6 1/4] use image_file_reset to reload initrd

2012-11-26 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 39 +++ hw/loader.h |6 ++ 2 files changed, 45 insertions(+), 0 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index ba01ca6..e45f56a 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -86,6 +86,39 @@ int

[Qemu-devel] [RFC PATCH v6 0/4] reload images from host rootfs on reset to save footprint

2012-11-26 Thread Olivia Yin
onsumption 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/loa

[Qemu-devel] [RFC PATCH v5 0/4] reload images from host rootfs once reset to save footprint

2012-11-21 Thread Olivia Yin
MU 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

[Qemu-devel] [RFC PATCH v5 3/4] use elf_reset to reload elf image

2012-11-21 Thread Olivia Yin
Signed-off-by: Olivia Yin --- elf.h| 10 ++ hw/elf_ops.h | 40 hw/loader.c | 11 +++ 3 files changed, 57 insertions(+), 4 deletions(-) diff --git a/elf.h b/elf.h index a21ea53..335f1af 100644 --- a/elf.h +++ b/elf.h

[Qemu-devel] [RFC PATCH v5 4/4] free the memory malloced by load_at()

2012-11-21 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/elf_ops.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/elf_ops.h b/hw/elf_ops.h index b346861..9c76a75 100644 --- a/hw/elf_ops.h +++ b/hw/elf_ops.h @@ -178,6 +178,8 @@ static int glue(load_symbols, SZ)(struct elfhdr *ehdr, int fd

[Qemu-devel] [RFC PATCH v5 1/4] use image_file_reset to reload initrd image

2012-11-21 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 39 +++ hw/loader.h |7 +++ 2 files changed, 46 insertions(+), 0 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index ba01ca6..a8a0a09 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -86,6 +86,39 @@ int

[Qemu-devel] [RFC PATCH v5 2/4] use uimage_reset to reload uimage

2012-11-21 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 64 +++--- hw/loader.h |8 ++- 2 files changed, 54 insertions(+), 18 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index a8a0a09..e1e2a20 100644 --- a/hw/loader.c +++ b/hw/loader.c

[Qemu-devel] [PATCH] free the memory malloced by load_at()

2012-11-15 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/elf_ops.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/elf_ops.h b/hw/elf_ops.h index db4630e..4495932 100644 --- a/hw/elf_ops.h +++ b/hw/elf_ops.h @@ -178,6 +178,8 @@ static int glue(load_symbols, SZ)(struct elfhdr *ehdr, int fd

[Qemu-devel] [RFC PATCH v4 2/3] use uimage_reset to reload uimage

2012-11-14 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 64 ++ 1 files changed, 46 insertions(+), 18 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index a8a0a09..1a909d0 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -55,6 +55,8 @@ #include

[Qemu-devel] [RFC PATCH v4 0/3] reload kernel/initrd/elf images when reset

2012-11-14 Thread Olivia Yin
MU 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

[Qemu-devel] [RFC PATCH v4 3/3] use elf_reset to reload elf image

2012-11-14 Thread Olivia Yin
Signed-off-by: Olivia Yin --- elf.h| 10 ++ hw/elf_ops.h | 101 ++ 2 files changed, 111 insertions(+), 0 deletions(-) diff --git a/elf.h b/elf.h index a21ea53..335f1af 100644 --- a/elf.h +++ b/elf.h @@ -1078,6 +1078,16

[Qemu-devel] [RFC PATCH v4 1/3] use image_file_reset to reload initrd image

2012-11-14 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 39 +++ hw/loader.h |7 +++ 2 files changed, 46 insertions(+), 0 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index ba01ca6..a8a0a09 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -86,6 +86,39 @@ int

[Qemu-devel] [RFC PATCH v3 2/3] use reset handlers to reload kernel and initrd

2012-11-01 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 57 +++-- 1 files changed, 43 insertions(+), 14 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index a4c095e..0581c71 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -55,6 +55,7 @@ #include

[Qemu-devel] [RFC PATCH v3 1/3] define image_file_reset

2012-11-01 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 40 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index ba01ca6..a4c095e 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -56,6 +56,13 @@ static int roms_loaded

[Qemu-devel] [RFC PATCH v3 3/3] update rom_reset

2012-11-01 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 0581c71..17908cf 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -738,11 +738,8 @@ static void rom_reset(void *unused) continue

[Qemu-devel] [RFC PATCH v3 0/3] use reset handlers to reload images

2012-11-01 Thread 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 proces

[Qemu-devel] [RFC PATCH v2 1/5] define image_file_reset and image_blob_reset

2012-10-28 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 39 +++ hw/loader.h | 18 ++ 2 files changed, 57 insertions(+), 0 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index ba01ca6..cadf58f 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -86,6

[Qemu-devel] [RFC PATCH v2 0/5] optimization to loader

2012-10-28 Thread Olivia Yin
Signed-off-by: Olivia Yin This series of 5 patches optimize the footprint of QEMU by registering reset private handlers to reload images when virtual machine reset. This is the first part of the patches which remove rom related functions in loader.c The second part will optimize memory

[Qemu-devel] [RFC PATCH v2 2/5] use reset handlers to reload kernel and initrd

2012-10-28 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 64 ++ 1 files changed, 42 insertions(+), 22 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index cadf58f..9e2c3c8 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -151,7 +151,12 @@ int

[Qemu-devel] [RFC PATCH v2 5/5] remove rom related functions in loader

2012-10-28 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 166 --- hw/loader.h | 14 - vl.c|5 -- 3 files changed, 0 insertions(+), 185 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 2e7072b..5ef50e0 100644 --- a/hw

[Qemu-devel] [RFC PATCH v2 4/5] replaece rom_add_blob* with image_blob_reset

2012-10-28 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/arm_boot.c | 20 hw/elf_ops.h |9 - hw/exynos4210.c| 10 -- hw/highbank.c |9 - hw/lm32_hwsetup.h |9 - hw/loader.c| 23 +++ hw/mips_fulong2e.c

[Qemu-devel] [RFC PATCH v2 3/5] replace rom_add_file* with image_file_reset

2012-10-28 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/cirrus_vga.c |6 +- hw/pc.c |6 +- hw/pc_sysfw.c | 14 +++--- hw/pci.c| 10 -- hw/sga.c|6 +- hw/vga-isa.c|6 +- 6 files changed, 35 insertions(+), 13 deletions(-) diff --git a/hw

[Qemu-devel] private handlers to reload images when virtual machine reset.

2012-10-28 Thread Olivia Yin
This is the first part of the patches which remove rom related functions in loader.c The second part will optimize memory regions which use rom_ptr. These patches are against the master branch of git://git.qemu.org/qemu.git. The v2 patches had been updated to replace tar_target_phys_addr_t with

[Qemu-devel] [PATCH 5/5] remove rom related functions in loader

2012-10-26 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 166 --- hw/loader.h | 14 - vl.c|5 -- 3 files changed, 0 insertions(+), 185 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 5cf776a..5549568 100644 --- a/hw

[Qemu-devel] [PATCH 0/5] register reset handlers to reload image

2012-10-26 Thread Olivia Yin
rom_ptr. Signed-off-by: Olivia Yin 0001-define-image_file_reset-and-image_blob_reset.patch 0002-use-reset-handlers-to-reload-kernel-and-initrd.patch 0003-replace-rom_add_file-with-image_file_reset.patch 0004-replaece-rom_add_blob-with-image_blob_reset.patch 0005-remove-rom-related-functions-in

[Qemu-devel] [PATCH 1/5] define image_file_reset and image_blob_reset

2012-10-26 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 39 +++ hw/loader.h | 18 ++ 2 files changed, 57 insertions(+), 0 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 33acc2f..726c0e7 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -86,6

[Qemu-devel] [PATCH 2/5] use reset handlers to reload kernel and initrd

2012-10-26 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/loader.c | 64 ++ 1 files changed, 42 insertions(+), 22 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 726c0e7..4a20ed2 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -151,7 +151,12 @@ int

[Qemu-devel] [PATCH 4/5] replaece rom_add_blob* with image_blob_reset

2012-10-26 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/arm_boot.c | 20 hw/elf_ops.h |9 - hw/exynos4210.c| 10 -- hw/highbank.c |9 - hw/lm32_hwsetup.h |9 - hw/loader.c| 23 +++ hw/mips_fulong2e.c

[Qemu-devel] [PATCH 3/5] replace rom_add_file* with image_file_reset

2012-10-26 Thread Olivia Yin
Signed-off-by: Olivia Yin --- hw/cirrus_vga.c |6 +- hw/pc.c |6 +- hw/pc_sysfw.c | 14 +++--- hw/pci.c| 10 -- hw/sga.c|6 +- hw/vga-isa.c|6 +- 6 files changed, 35 insertions(+), 13 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH v2] register reset handler to write image into memory

2012-08-17 Thread Olivia Yin
Instead of add rom blobs, this patch just write them directly to memory. This patch registers reset handler uimage_reset() and image_file_reset() which load images into RAM during initial bootup and VM reset. v2: use g_file_get_content() to load load image file. Signed-off-by: Olivia Yin

[Qemu-devel] [PATCH 2/2] register reset handlers to write images into memory

2012-08-14 Thread Olivia Yin
Instead of add rom blobs, this patch just write them directly to memory. This patch registers reset handler uimage_reset() and image_file_reset() which load images into RAM during initial bootup and VM reset. Signed-off-by: Olivia Yin --- This patch is based on branch 'ppc-next'

[Qemu-devel] [PATCH 1/2] extract file_load() function from rom_add_file() for reusing

2012-08-14 Thread Olivia Yin
Sanity check in rom_add_file() could be reused by other image loaders. Signed-off-by: Olivia Yin --- This patch is based on branch 'ppc-next' of Alex's upstream QEMU repo: http://repo.or.cz/r/qemu/agraf.git hw/loader.c | 61 +++-