tests/qtest/vhost-user-test: prepare the tests for adding new dev class
commit892040dc8bf4686489a7841ce6d4460bafb0af38
authorDima Stepanov <dimastep@yandex-team.ru>
Fri, 11 Sep 2020 08:39:45 +0000 (11 11:39 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 29 Sep 2020 06:14:29 +0000 (29 02:14 -0400)
tree886a2d17356f49de72ab8ee4fd122d07fbfabe3a
parent1e5a050f57984134c1d488238db3bc7ccaa36e52
tests/qtest/vhost-user-test: prepare the tests for adding new dev class

For now only vhost-user-net device is supported by the test. Other
vhost-user devices are not tested. As a first step make source code
refactoring so new devices can reuse the same test routines. To make
this provide a new vhost_user_ops structure with the methods to
initialize device, its command line or make a proper vhost-user
responses.

Signed-off-by: Dima Stepanov <dimastep@yandex-team.ru>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Message-Id: <a48b60fb96fef230b75fff72a2d77040dcb5ef7c.1599813294.git.dimastep@yandex-team.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/qtest/vhost-user-test.c