qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 0/3] hw/elf_ops: clear uninitialized segment space


From: Laurent Vivier
Subject: [PATCH v3 0/3] hw/elf_ops: clear uninitialized segment space
Date: Thu, 29 Apr 2021 16:13:23 +0200

When the mem_size of the segment is bigger than the file_size,
and if this space doesn't overlap another segment, it needs
to be cleared.

When the file is loaded in RAM, it is cleared by the loader (PATCH 2),
when the file is loaded in a ROM, the space is cleared on reset,
when the data of the file is copied from the data buffer to
the machine memory space (PATCH 3).

This series a new function address_space_set() to clear the memory.

v3: add a patch to clear the uninitialized space of the ROM
v2: PMD introduces address_space_set() function

Laurent Vivier (2):
  hw/elf_ops: clear uninitialized segment space
  hw/core/loader: clear uninitialized ROM space

Philippe Mathieu-Daudé (1):
  exec/memory: Extract address_space_set() from dma_memory_set()

 include/exec/memory.h | 16 ++++++++++++++++
 include/hw/elf_ops.h  | 13 +++++++++++++
 hw/core/loader.c      |  4 ++++
 softmmu/dma-helpers.c | 16 +---------------
 softmmu/physmem.c     | 19 +++++++++++++++++++
 5 files changed, 53 insertions(+), 15 deletions(-)

-- 
2.31.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]