diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2017-08-24 16:23:14 -0300 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2017-09-19 09:09:23 -0300 |
commit | 0f81d3353029d26c6f8731a65d8052c532b1ced6 (patch) | |
tree | 47d42b66a9d573ddf50778c7c33617256bd8596a /include | |
parent | 9d5139e543e8579aacd324193680c64fd1463d89 (diff) | |
download | qemu-0f81d3353029d26c6f8731a65d8052c532b1ced6.zip qemu-0f81d3353029d26c6f8731a65d8052c532b1ced6.tar.gz qemu-0f81d3353029d26c6f8731a65d8052c532b1ced6.tar.bz2 |
osdep: Define QEMU_MADV_REMOVE
Define QEMU_MADV_REMOVE, so we can use it with qemu_madvise().
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20170824192315.5897-3-ehabkost@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Tested-by: Zack Cornelius <zack.cornelius@kove.net>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/osdep.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 6855b94..e9fa217 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -257,6 +257,11 @@ void qemu_anon_ram_free(void *ptr, size_t size); #else #define QEMU_MADV_NOHUGEPAGE QEMU_MADV_INVALID #endif +#ifdef MADV_REMOVE +#define QEMU_MADV_REMOVE MADV_REMOVE +#else +#define QEMU_MADV_REMOVE QEMU_MADV_INVALID +#endif #elif defined(CONFIG_POSIX_MADVISE) @@ -269,6 +274,7 @@ void qemu_anon_ram_free(void *ptr, size_t size); #define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID #define QEMU_MADV_HUGEPAGE QEMU_MADV_INVALID #define QEMU_MADV_NOHUGEPAGE QEMU_MADV_INVALID +#define QEMU_MADV_REMOVE QEMU_MADV_INVALID #else /* no-op */ @@ -281,6 +287,7 @@ void qemu_anon_ram_free(void *ptr, size_t size); #define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID #define QEMU_MADV_HUGEPAGE QEMU_MADV_INVALID #define QEMU_MADV_NOHUGEPAGE QEMU_MADV_INVALID +#define QEMU_MADV_REMOVE QEMU_MADV_INVALID #endif |