From 61c490e25e081af39ff40556f6c1229b8b011585 Mon Sep 17 00:00:00 2001 From: Beata Michalska Date: Thu, 21 Nov 2019 00:08:41 +0000 Subject: 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 Reviewed-by: Richard Henderson Message-id: 20191121000843.24844-3-beata.michalska@linaro.org Signed-off-by: Peter Maydell --- include/qemu/cutils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/qemu') diff --git a/include/qemu/cutils.h b/include/qemu/cutils.h index b54c847..eb59852 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, -- cgit v1.1