Marc-André Lureau
648abbfbaa
memfd: fix vhost-user-test on non-memfd capable host
On RHEL7, memfd is not supported, and vhost-user-test fails:
TEST: tests/vhost-user-test... (pid=10248)
/x86_64/vhost-user/migrate:
qemu-system-x86_64: -object memory-backend-memfd,id=mem,size=2M,: failed to create memfd
FAIL
There is a qemu_memfd_check() to prevent running memfd path, but it
also checks for fallback implementation. Let's specialize
qemu_memfd_check() to check memfd only, while qemu_memfd_alloc_check()
checks for the qemu_memfd_alloc() API.
Reported-by: Miroslav Rezanina <mrezanin@redhat.com>
Tested-by: Miroslav Rezanina <mrezanin@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180328121804.16203-1-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2018-04-09 12:57:06 +02:00
..
2018-03-20 16:40:37 +02:00
2017-08-02 00:13:25 +03:00
2018-03-20 16:40:37 +02:00
2017-12-18 17:07:02 +03:00
2018-04-09 12:57:06 +02:00
2018-03-02 13:45:50 -06:00
2018-02-08 21:06:26 +02:00
2017-07-14 12:04:43 +02:00
2018-03-01 18:26:17 +02:00
2018-03-01 16:25:36 +02:00
2018-01-18 21:52:37 +02:00
2017-07-14 12:04:42 +02:00
2018-02-08 21:06:40 +02:00