Message ID | CA+XhMqw-Oq+nRDTbYe+TdfgSEhYHqaP4odyRRoTCQht7ioBRNA@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | : osdep set MADV_DO/DONTDUMP on FreeBSD | expand |
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index f9ec8c84e9..8debf924d9 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -370,11 +370,15 @@ void qemu_anon_ram_free(void *ptr, size_t size); #endif #ifdef MADV_DODUMP #define QEMU_MADV_DODUMP MADV_DODUMP +#elif defined(MADV_CORE) +#define QEMU_MADV_DODUMP MADV_CORE #else #define QEMU_MADV_DODUMP QEMU_MADV_INVALID #endif #ifdef MADV_DONTDUMP #define QEMU_MADV_DONTDUMP MADV_DONTDUMP +#elif defined(MADV_NOCORE) +#define QEMU_MADV_DONTDUMP MADV_NOCORE #else #define QEMU_MADV_DONTDUMP QEMU_MADV_INVALID #endif