From: Alexandr Moshkov <[email protected]> Currently, building with --disable-vhost-user fails to link when other vhost backends are enabled: vhost.c calls vhost_user_has_protocol_feature(), but its implementation is not built.
Add a stub returning false to fix the link error. Signed-off-by: Alexandr Moshkov <[email protected]> Fixes: 5eb2347867ee ("vhost-user: add skip_drain param to do_vhost_virtqueue_stop") Tested-by: Clément Chigot <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Message-ID: <[email protected]> --- hw/virtio/vhost-user-stub.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/virtio/vhost-user-stub.c b/hw/virtio/vhost-user-stub.c index 45559788dd..9d2e521788 100644 --- a/hw/virtio/vhost-user-stub.c +++ b/hw/virtio/vhost-user-stub.c @@ -4,3 +4,8 @@ void vhost_user_qmp_status(struct vhost_dev *dev, VirtioStatus *status) { } + +bool vhost_user_has_protocol_feature(struct vhost_dev *dev, uint64_t feature) +{ + return false; +} -- MST
