OSDN Git Service

vhost-user-test: small changes to init_hugepagefs
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Feb 2019 17:35:55 +0000 (18:35 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 21 Feb 2019 17:28:01 +0000 (12:28 -0500)
commit9ee1bb86f641bf6029a9c326d9d49ab6c5a7b380
tree5f76e7fa5883137ba48ceca6647f4b6834ad1d0a
parent7d0ca3e747ce3b595fcae554b04fccbffd0c04f0
vhost-user-test: small changes to init_hugepagefs

After the conversion to qgraph, the equivalent of "main" will be in
a constructor and will run even if the tests are not being requested.
Therefore, it should not assert that init_hugepagefs succeeds and will
be called when creating the TestServer.  This patch changes the prototype
of init_hugepagefs, this way the next patch looks nicer.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1543851204-41186-14-git-send-email-pbonzini@redhat.com>
Message-Id: <1550165756-21617-9-git-send-email-pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/vhost-user-test.c