Received: from eggs.gnu.org ([2001:4830:134:3::10]:35146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1BGS-0005O0-JC for qemu-devel@nongnu.org; Tue, 24 Nov 2015 05:56:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1BGR-0002Ux-Ph for qemu-devel@nongnu.org; Tue, 24 Nov 2015 05:56:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1BGR-0002Us-Lb for qemu-devel@nongnu.org; Tue, 24 Nov 2015 05:55:59 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 40121C001256 for ; Tue, 24 Nov 2015 10:55:59 +0000 (UTC) Date: Tue, 24 Nov 2015 12:55:56 +0200 From: Victor Kaplansky Message-ID: <1448362516-5281-2-git-send-email-victork@redhat.com> References: <1448362516-5281-1-git-send-email-victork@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1448362516-5281-1-git-send-email-victork@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] tests/vhost-user-bridge: propose GUEST_ANNOUNCE feature List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Victor Kaplansky , Marc-Andre Lureau , peterx@redhat.com, "Michael S. Tsirkin" 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 --- tests/vhost-user-bridge.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/vhost-user-bridge.c b/tests/vhost-user-bridge.c index 7bdfc98..784f15f 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); -- --Victor