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-13 23:09:50 +02:00
2018-03-12 16:12:49 +01:00
2018-03-23 18:26:46 +00:00
2018-03-26 14:37:13 +02:00
2018-03-26 14:37:13 +02:00
2018-03-23 18:26:45 +00:00
2018-03-19 14:10:36 -03:00
2018-03-13 11:17:29 -06:00
2018-03-12 16:12:48 +01:00
2018-03-21 15:13:25 +01:00
2018-03-27 00:38:00 -04:00
2018-03-12 16:12:48 +01:00
2018-03-23 18:26:45 +00:00
2018-03-02 13:45:50 -06:00
2018-03-20 15:48:34 +00:00
2018-03-20 03:34:52 +02:00
2018-03-12 16:12:49 +01:00
2018-03-18 18:27:23 +11:00
2018-03-26 15:17:25 +01:00
2018-03-19 14:09:44 -03:00
2018-03-20 15:48:34 +00:00
2018-03-09 17:09:43 +00:00
2018-03-20 15:48:34 +00:00
2018-03-23 18:38:55 +03:00
2018-03-07 08:30:28 +13:00
2018-04-03 10:03:38 +02:00
2018-03-26 14:37:15 +02:00
2018-03-23 18:26:45 +00:00
2018-03-12 16:12:48 +01:00
2018-03-12 16:12:48 +01:00
2018-03-02 13:45:50 -06:00
2018-03-29 17:41:02 -04:00
2018-03-12 16:12:46 +01:00
2018-03-12 16:12:48 +01:00
2018-03-12 11:43:49 +01:00
2018-03-13 11:17:31 -06:00
2018-04-09 12:57:06 +02:00
2018-03-02 13:45:50 -06:00