From: David Hildenbrand <david@redhat.com>
To: Laurent Vivier <laurent@vivier.eu>, qemu-devel@nongnu.org
Cc: "Richard Henderson" <richard.henderson@linaro.org>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Peter Xu" <peterx@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>,
"Stefano Garzarella" <sgarzare@redhat.com>
Subject: Re: [PATCH 1/3] exec/memory: Extract address_space_set() from dma_memory_set()
Date: Mon, 17 Jan 2022 09:23:29 +0100 [thread overview]
Message-ID: <b6c13230-4768-e61a-f7ff-7432242b1ce1@redhat.com> (raw)
In-Reply-To: <20220115203725.3834712-2-laurent@vivier.eu>
On 15.01.22 21:37, Laurent Vivier wrote:
> From: Philippe Mathieu-Daudé <philmd@redhat.com>
>
> dma_memory_set() does a DMA barrier, set the address space with
> a constant value. The constant value filling code is not specific
> to DMA and can be used for AddressSpace. Extract it as a new
> helper: address_space_set().
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> Reviewed-by: Laurent Vivier <laurent@vivier.eu>
> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> [lv: rebase]
> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
> ---
> include/exec/memory.h | 16 ++++++++++++++++
> softmmu/dma-helpers.c | 15 +--------------
> softmmu/physmem.c | 19 +++++++++++++++++++
> 3 files changed, 36 insertions(+), 14 deletions(-)
>
> diff --git a/include/exec/memory.h b/include/exec/memory.h
> index 20f1b27377ea..c00c50943107 100644
> --- a/include/exec/memory.h
> +++ b/include/exec/memory.h
> @@ -2906,6 +2906,22 @@ address_space_write_cached(MemoryRegionCache *cache, hwaddr addr,
> }
> }
>
> +/**
> + * address_space_set: Fill address space with a constant byte.
nit: Fill selected part of an address space with a constant byte.
:)
Reviewed-by: David Hildenbrand <david@redhat.com>
--
Thanks,
David / dhildenb
next prev parent reply other threads:[~2022-01-17 8:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-15 20:37 [PATCH 0/3] m68k: virt: fix reboot Laurent Vivier
2022-01-15 20:37 ` [PATCH 1/3] exec/memory: Extract address_space_set() from dma_memory_set() Laurent Vivier
2022-01-17 8:23 ` David Hildenbrand [this message]
2022-01-17 8:57 ` Peter Xu
2022-01-15 20:37 ` [PATCH 2/3] hw/elf_ops: clear uninitialized segment space Laurent Vivier
2022-01-15 20:37 ` [PATCH 3/3] m68k: virt: correctly set the initial PC Laurent Vivier
2022-01-20 8:11 ` [PATCH 0/3] m68k: virt: fix reboot 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=b6c13230-4768-e61a-f7ff-7432242b1ce1@redhat.com \
--to=david@redhat.com \
--cc=f4bug@amsat.org \
--cc=laurent@vivier.eu \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--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).