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-02-10 10:43:18 +03:00
2018-03-12 11:07:37 +00:00
2018-03-26 14:37:15 +02:00
2018-03-12 08:59:03 +01:00
2018-03-13 18:06:05 +00:00
2018-03-19 14:58:36 -05:00
2018-03-12 17:10:36 +01:00
2018-03-12 16:12:47 +01:00
2018-04-09 12:57:06 +02:00
2018-02-19 13:03:24 +02:00
2018-02-19 13:03:24 +02:00
2018-03-19 14:58:36 -05:00
2018-03-27 13:05:28 +01:00
2018-03-27 13:05:28 +01:00
2018-03-19 14:58:36 -05:00
2018-03-13 18:06:06 +00:00
2018-03-12 16:12:50 +01:00
2018-03-12 16:12:47 +01:00
2018-04-05 14:37:38 +02:00
2018-03-05 09:03:17 +00:00
2018-03-01 15:21:46 +08:00