[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 04/22] configure: probe for memfd
From: |
marcandre . lureau |
Subject: |
[Qemu-devel] [PATCH v4 04/22] configure: probe for memfd |
Date: |
Sat, 19 Sep 2015 12:11:55 +0200 |
From: Marc-André Lureau <address@hidden>
Check if memfd_create() is part of system libc.
Signed-off-by: Marc-André Lureau <address@hidden>
---
configure | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/configure b/configure
index 52f5b79..a7cdfa4 100755
--- a/configure
+++ b/configure
@@ -3455,6 +3455,22 @@ if compile_prog "" "" ; then
eventfd=yes
fi
+# check if memfd is supported
+memfd=no
+cat > $TMPC << EOF
+#include <sys/memfd.h>
+
+int main(void)
+{
+ return memfd_create("foo", MFD_ALLOW_SEALING);
+}
+EOF
+if compile_prog "" "" ; then
+ memfd=yes
+fi
+
+
+
# check for fallocate
fallocate=no
cat > $TMPC << EOF
@@ -4840,6 +4856,9 @@ fi
if test "$eventfd" = "yes" ; then
echo "CONFIG_EVENTFD=y" >> $config_host_mak
fi
+if test "$memfd" = "yes" ; then
+ echo "CONFIG_MEMFD=y" >> $config_host_mak
+fi
if test "$fallocate" = "yes" ; then
echo "CONFIG_FALLOCATE=y" >> $config_host_mak
fi
--
2.4.3
- [Qemu-devel] [PATCH v4 00/22] vhost-user: add migration support, marcandre . lureau, 2015/09/19
- [Qemu-devel] [PATCH v4 01/22] vhost-user: refactor ioctl translation, marcandre . lureau, 2015/09/19
- [Qemu-devel] [PATCH v4 02/22] vhost-user: add protocol feature negotiation, marcandre . lureau, 2015/09/19
- [Qemu-devel] [PATCH v4 03/22] vhost-user: unit test for new messages, marcandre . lureau, 2015/09/19
- [Qemu-devel] [PATCH v4 04/22] configure: probe for memfd,
marcandre . lureau <=
- [Qemu-devel] [PATCH v4 05/22] util: add linux-only memfd fallback, marcandre . lureau, 2015/09/19
- [Qemu-devel] [PATCH v4 06/22] util: add memfd helpers, marcandre . lureau, 2015/09/19
- [Qemu-devel] [PATCH v4 07/22] vhost: alloc shareable log, marcandre . lureau, 2015/09/19
- Re: [Qemu-devel] [PATCH v4 07/22] vhost: alloc shareable log, Michael S. Tsirkin, 2015/09/21
- Re: [Qemu-devel] [PATCH v4 07/22] vhost: alloc shareable log, Marc-André Lureau, 2015/09/21
- Re: [Qemu-devel] [PATCH v4 07/22] vhost: alloc shareable log, Michael S. Tsirkin, 2015/09/21
- Re: [Qemu-devel] [PATCH v4 07/22] vhost: alloc shareable log, Marc-André Lureau, 2015/09/21
- Re: [Qemu-devel] [PATCH v4 07/22] vhost: alloc shareable log, Michael S. Tsirkin, 2015/09/22
- Re: [Qemu-devel] [PATCH v4 07/22] vhost: alloc shareable log, Marc-André Lureau, 2015/09/22
- Re: [Qemu-devel] [PATCH v4 07/22] vhost: alloc shareable log, Michael S. Tsirkin, 2015/09/22