From: Victor Kaplansky Date: Tue, 24 Nov 2015 10:55:56 +0000 (+0200) Subject: tests/vhost-user-bridge: propose GUEST_ANNOUNCE feature X-Git-Tag: v2.5.0-rc2~1^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85ea9da5b8d8c0b2ab77b493d5ce62599279bf33;p=thirdparty%2Fqemu.git tests/vhost-user-bridge: propose GUEST_ANNOUNCE feature The backend has to know whether VIRTIO_NET_F_GUEST_ANNOUNCE was negotiated, so, as a hack we propose the feature by vhost-user-bridge during the feature negotiation. Signed-off-by: Victor Kaplansky Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/tests/vhost-user-bridge.c b/tests/vhost-user-bridge.c index 7bdfc98615b..784f15f37a3 100644 --- a/tests/vhost-user-bridge.c +++ b/tests/vhost-user-bridge.c @@ -747,6 +747,7 @@ vubr_get_features_exec(VubrDev *dev, VhostUserMsg *vmsg) vmsg->payload.u64 = ((1ULL << VIRTIO_NET_F_MRG_RXBUF) | (1ULL << VHOST_F_LOG_ALL) | + (1ULL << VIRTIO_NET_F_GUEST_ANNOUNCE) | (1ULL << VHOST_USER_F_PROTOCOL_FEATURES)); vmsg->size = sizeof(vmsg->payload.u64);