diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-05-08 08:24:54 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2020-06-05 09:54:48 +0100 |
commit | 9ecc996a3d39bdbf64a488936f97a9496b74ebd8 (patch) | |
tree | a3726cca80e61a981dfdadec1e3ecfc557cc12ed /include/exec | |
parent | 4dfe59d187d9b218efca8d89c0c2fac1298d8712 (diff) | |
download | qemu-9ecc996a3d39bdbf64a488936f97a9496b74ebd8.zip qemu-9ecc996a3d39bdbf64a488936f97a9496b74ebd8.tar.gz qemu-9ecc996a3d39bdbf64a488936f97a9496b74ebd8.tar.bz2 |
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>
Diffstat (limited to 'include/exec')
-rw-r--r-- | include/exec/memory.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/exec/memory.h b/include/exec/memory.h index 1b7cfdd..3e00cdb 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -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_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 or msync for + * memory_region_writeback: Trigger cache writeback for * selected address range * * @mr: the memory region to be updated |