mirror of https://gitee.com/openkylin/qemu.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 <victork@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
c61f09ed85
commit
85ea9da5b8
|
@ -747,6 +747,7 @@ vubr_get_features_exec(VubrDev *dev, VhostUserMsg *vmsg)
|
||||||
vmsg->payload.u64 =
|
vmsg->payload.u64 =
|
||||||
((1ULL << VIRTIO_NET_F_MRG_RXBUF) |
|
((1ULL << VIRTIO_NET_F_MRG_RXBUF) |
|
||||||
(1ULL << VHOST_F_LOG_ALL) |
|
(1ULL << VHOST_F_LOG_ALL) |
|
||||||
|
(1ULL << VIRTIO_NET_F_GUEST_ANNOUNCE) |
|
||||||
(1ULL << VHOST_USER_F_PROTOCOL_FEATURES));
|
(1ULL << VHOST_USER_F_PROTOCOL_FEATURES));
|
||||||
|
|
||||||
vmsg->size = sizeof(vmsg->payload.u64);
|
vmsg->size = sizeof(vmsg->payload.u64);
|
||||||
|
|
Loading…
Reference in New Issue