diff options
author | Beata Michalska | 2019-11-21 01:08:41 +0100 |
---|---|---|
committer | Peter Maydell | 2019-12-16 11:46:35 +0100 |
commit | 61c490e25e081af39ff40556f6c1229b8b011585 (patch) | |
tree | a05523934595b80768e7060a982fbc89041bfa08 /include/qemu | |
parent | tcg: cputlb: Add probe_read (diff) | |
download | qemu-61c490e25e081af39ff40556f6c1229b8b011585.tar.gz qemu-61c490e25e081af39ff40556f6c1229b8b011585.tar.xz qemu-61c490e25e081af39ff40556f6c1229b8b011585.zip |
Memory: Enable writeback for given memory region
Add an option to trigger memory writeback to sync given memory region
with the corresponding backing store, case one is available.
This extends the support for persistent memory, allowing syncing on-demand.
Signed-off-by: Beata Michalska <beata.michalska@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20191121000843.24844-3-beata.michalska@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/qemu')
-rw-r--r-- | include/qemu/cutils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/cutils.h b/include/qemu/cutils.h index b54c847e0f..eb59852dfd 100644 --- a/include/qemu/cutils.h +++ b/include/qemu/cutils.h @@ -130,6 +130,7 @@ const char *qemu_strchrnul(const char *s, int c); #endif time_t mktimegm(struct tm *tm); int qemu_fdatasync(int fd); +int qemu_msync(void *addr, size_t length, int fd); int fcntl_setfl(int fd, int flag); int qemu_parse_fd(const char *param); int qemu_strtoi(const char *nptr, const char **endptr, int base, |