vhost-user-blk-server: depend on CONFIG_VHOST_USER
commiteb6a388624ec40d9be5c965ad05531ef1b5f4eb3
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 10 Nov 2020 17:11:20 +0000 (10 17:11 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 12 Nov 2020 14:19:40 +0000 (12 09:19 -0500)
tree6e653867871219dec06c1ddb564b6a5cc9478ceb
parente5e856c1eb4b85fe96472cf7aed48e336fe5ce74
vhost-user-blk-server: depend on CONFIG_VHOST_USER

I interpreted CONFIG_VHOST_USER as controlling only QEMU's vhost-user
device frontends. However, virtiofsd and contrib/ vhost-user device
backends are also controlled by CONFIG_VHOST_USER. Make the
vhost-user-blk server depend on CONFIG_VHOST_USER for consistency.

Now the following error is printed when the vhost-user-blk server is
enabled without CONFIG_VHOST_USER:

  $ ./configure --disable-vhost-user --enable-vhost-user-blk ...
  ../meson.build:761:8: ERROR: Problem encountered: vhost_user_blk_server requires vhost-user support

Suggested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Suggested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20201110171121.1265142-3-stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
meson.build