OSDN Git Service

tests: use memfd in vhost-user-test
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 1 Feb 2018 13:27:57 +0000 (14:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Feb 2018 13:09:25 +0000 (14:09 +0100)
commit7e49f5e8e508ed020c96798b3f7083e24e0e425b
tree3196a11193a9739bd1240177bebd67397fff16da
parent83265145a4f42a38f10bad0051e3a8229f19c166
tests: use memfd in vhost-user-test

This will exercise the memfd memory backend and should generally be
better for testing than memory-backend-file (thanks to anonymous files
and sealing).

If memfd is available, it is preferred.

However, in order to check that file & memfd backends both work
correctly, the read-guest-mem test is checked explicitly for each.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180201132757.23063-8-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/vhost-user-test.c