Re: [PATCH v5 1/3] system/memory: Use memmove() for directly accessible regions
Philippe Mathieu-Daudé <[email protected]> Tue, 28 Jul 2026 18:07:17 +0200
| Newsgroups | org.nongnu.qemu-arm,org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
On 28/7/26 05:17, Gavin Shan wrote:
> Similar to what's done in commit 4a73aee88140 ("softmmu: Use memmove in
> flatview_write_continue"), there are more sites where the overlapping
> source and destination buffer are allowed for the directly accessible
> regions. Use memmove() in those sites, listed as below.
>
> hw/remote/vfio-user-obj.c::vfu_object_mr_rw
> include/system/memory.h::address_space_read
> system/physmem.c::flatview_read_continue_step
>
> Signed-off-by: Gavin Shan <[email protected]>
> Reviewed-by: Peter Maydell <[email protected]>
> Reviewed-by: Peter Xu <[email protected]>
> ---
> hw/remote/vfio-user-obj.c | 4 ++--
> include/system/memory.h | 2 +-
> system/physmem.c | 2 +-
> 3 files changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>