* [PATCH]: osdep set MADV_DO/DONTDUMP on FreeBSD
@ 2020-12-30 10:56 David CARLIER
0 siblings, 0 replies; only message in thread
From: David CARLIER @ 2020-12-30 10:56 UTC (permalink / raw)
To: qemu-devel, QEMU Trivial
From a79128e87b0eb1ef4ef0f046ea943a212e62eb6e Mon Sep 17 00:00:00 2001
From: David Carlier <devnexen@gmail.com>
Date: Wed, 30 Dec 2020 10:54:45 +0000
Subject: [PATCH] osdep: define MADV_DO/DONTDUMP on FreeBSD.
Signed-off-by: David Carlier <devnexen@gmail.com>
---
include/qemu/osdep.h | 4 ++++
1 file changed, 4 insertions(+)
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
--
2.30.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-30 10:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-30 10:56 [PATCH]: osdep set MADV_DO/DONTDUMP on FreeBSD David CARLIER
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).