qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: David CARLIER <devnexen@gmail.com>
To: qemu-devel <qemu-devel@nongnu.org>,
	QEMU Trivial <qemu-trivial@nongnu.org>
Subject: [PATCH]: osdep set MADV_DO/DONTDUMP on FreeBSD
Date: Wed, 30 Dec 2020 10:56:46 +0000	[thread overview]
Message-ID: <CA+XhMqw-Oq+nRDTbYe+TdfgSEhYHqaP4odyRRoTCQht7ioBRNA@mail.gmail.com> (raw)

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


                 reply	other threads:[~2020-12-30 10:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+XhMqw-Oq+nRDTbYe+TdfgSEhYHqaP4odyRRoTCQht7ioBRNA@mail.gmail.com \
    --to=devnexen@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).