[PATCH RFC 05/21] madvise: Add QEMU_MADV_SPLIT

Peter Xu posted 21 patches 3 years ago
Maintainers: David Hildenbrand <david@redhat.com>, Igor Mammedov <imammedo@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Peter Xu <peterx@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Cornelia Huck <cohuck@redhat.com>, Juan Quintela <quintela@redhat.com>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Eric Blake <eblake@redhat.com>, Markus Armbruster <armbru@redhat.com>
[PATCH RFC 05/21] madvise: Add QEMU_MADV_SPLIT
Posted by Peter Xu 3 years ago
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(+)

diff --git a/include/qemu/madvise.h b/include/qemu/madvise.h
index b6fa49553f..3dddd25065 100644
--- a/include/qemu/madvise.h
+++ b/include/qemu/madvise.h
@@ -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
 
-- 
2.37.3
Re: [PATCH RFC 05/21] madvise: Add QEMU_MADV_SPLIT
Posted by Juan Quintela 3 years ago
Peter Xu <peterx@redhat.com> wrote:
> MADV_SPLIT is a new madvise() on Linux.  Define QEMU_MADV_SPLIT.
>
> Signed-off-by: Peter Xu <peterx@redhat.com>

Reviewed-by: Juan Quintela <quintela@redhat.com>

You can maintain the reviewed-by even if you collapsed with next one as
David suggests.