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
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
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
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
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
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
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
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
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
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(-)
---
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
@@
---
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
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
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 +--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
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 +++-
54 matches
Mail list logo