From: Laurent Vivier <laurent@vivier.eu>
To: qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Laurent Vivier" <laurent@vivier.eu>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>,
"Stefano Garzarella" <sgarzare@redhat.com>
Subject: [PATCH v3 0/3] hw/elf_ops: clear uninitialized segment space
Date: Thu, 29 Apr 2021 16:13:23 +0200 [thread overview]
Message-ID: <20210429141326.69245-1-laurent@vivier.eu> (raw)
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
next reply other threads:[~2021-04-29 14:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-29 14:13 Laurent Vivier [this message]
2021-04-29 14:13 ` [PATCH v3 1/3] exec/memory: Extract address_space_set() from dma_memory_set() Laurent Vivier
2021-04-29 14:13 ` [PATCH v3 2/3] hw/elf_ops: clear uninitialized segment space Laurent Vivier
2021-04-29 14:13 ` [PATCH v3 3/3] hw/core/loader: clear uninitialized ROM space Laurent Vivier
2021-04-29 14:52 ` Philippe Mathieu-Daudé
2021-04-30 7:03 ` Stefano Garzarella
2021-05-18 11:32 ` [PATCH v3 0/3] hw/elf_ops: clear uninitialized segment space Laurent Vivier
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=20210429141326.69245-1-laurent@vivier.eu \
--to=laurent@vivier.eu \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=sgarzare@redhat.com \
/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).