@@ -63,6 +63,11 @@
#else
#define QEMU_MADV_POPULATE_WRITE QEMU_MADV_INVALID
#endif
+#ifdef MADV_SPLIT
+#define QEMU_MADV_SPLIT MADV_SPLIT
+#else
+#define QEMU_MADV_SPLIT QEMU_MADV_INVALID
+#endif
#elif defined(CONFIG_POSIX_MADVISE)
@@ -77,6 +82,7 @@
#define QEMU_MADV_NOHUGEPAGE QEMU_MADV_INVALID
#define QEMU_MADV_REMOVE QEMU_MADV_DONTNEED
#define QEMU_MADV_POPULATE_WRITE QEMU_MADV_INVALID
+#define QEMU_MADV_SPLIT QEMU_MADV_INVALID
#else /* no-op */
@@ -91,6 +97,7 @@
#define QEMU_MADV_NOHUGEPAGE QEMU_MADV_INVALID
#define QEMU_MADV_REMOVE QEMU_MADV_INVALID
#define QEMU_MADV_POPULATE_WRITE QEMU_MADV_INVALID
+#define QEMU_MADV_SPLIT QEMU_MADV_INVALID
#endif
MADV_SPLIT is a new madvise() on Linux. Define QEMU_MADV_SPLIT. Signed-off-by: Peter Xu <peterx@redhat.com> --- include/qemu/madvise.h | 7 +++++++ 1 file changed, 7 insertions(+)