mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
memory: Extract memory_region_msync() from memory_region_writeback()
Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 20200508062456.23344-3-philmd@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
committed by
Stefan Hajnoczi
parent
4dfe59d187
commit
9ecc996a3d
@@ -1473,8 +1473,19 @@ void *memory_region_get_ram_ptr(MemoryRegion *mr);
|
||||
*/
|
||||
void memory_region_ram_resize(MemoryRegion *mr, ram_addr_t newsize,
|
||||
Error **errp);
|
||||
|
||||
/**
|
||||
* memory_region_writeback: Trigger cache writeback or msync for
|
||||
* memory_region_msync: Synchronize selected address range of
|
||||
* a memory mapped region
|
||||
*
|
||||
* @mr: the memory region to be msync
|
||||
* @addr: the initial address of the range to be sync
|
||||
* @size: the size of the range to be sync
|
||||
*/
|
||||
void memory_region_msync(MemoryRegion *mr, hwaddr addr, hwaddr size);
|
||||
|
||||
/**
|
||||
* memory_region_writeback: Trigger cache writeback for
|
||||
* selected address range
|
||||
*
|
||||
* @mr: the memory region to be updated
|
||||
|
||||
Reference in New Issue
Block a user