]> git.ipfire.org Git - thirdparty/qemu.git/commit
hostmem-memfd: add checks before adding hostmem-memfd & properties
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 6 Sep 2018 16:14:15 +0000 (20:14 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2018 16:47:55 +0000 (18:47 +0200)
commit3829640049cf516d229620e5919b0ab66fd6ac86
treeef5eb722c0fe8fd4ece5bf28bf0065374f98cdde
parent7184de64a1cf23a72191484b9a6995c3bfc9fb0b
hostmem-memfd: add checks before adding hostmem-memfd & properties

Run some memfd-related checks before registering hostmem-memfd &
various properties. This will help libvirt to figure out what the host
is supposed to be capable of.

qemu_memfd_check() is changed to a less optimized version, since it is
used with various flags, it no longer caches the result.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180906161415.8543-1-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
backends/hostmem-memfd.c
include/qemu/memfd.h
tests/vhost-user-test.c
util/memfd.c