summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2015-10-09 17:17:34 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-10-22 14:34:49 +0300
commit31190ed781a81d2de65cea405e4cb3441ab929fc (patch)
treea92dd588148f39ba39fd0268b02409a27ec20574 /include
parentde1372d466fb4a7bed13f64f50bff14aaa4a5931 (diff)
downloadqemu-31190ed781a81d2de65cea405e4cb3441ab929fc.tar.gz
qemu-31190ed781a81d2de65cea405e4cb3441ab929fc.tar.bz2
qemu-31190ed781a81d2de65cea405e4cb3441ab929fc.zip
vhost: add migration block if memfd failed
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Tested-by: Thibaut Collet <thibaut.collet@6wind.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/memfd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/memfd.h b/include/qemu/memfd.h
index 950fb882a6..53858ed43c 100644
--- a/include/qemu/memfd.h
+++ b/include/qemu/memfd.h
@@ -2,6 +2,7 @@
#define QEMU_MEMFD_H
#include "config-host.h"
+#include <stdbool.h>
#ifndef F_LINUX_SPECIFIC_BASE
#define F_LINUX_SPECIFIC_BASE 1024
@@ -20,5 +21,6 @@
void *qemu_memfd_alloc(const char *name, size_t size, unsigned int seals,
int *fd);
void qemu_memfd_free(void *ptr, size_t size, int fd);
+bool qemu_memfd_check(void);
#endif /* QEMU_MEMFD_H */