mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: net: offer VIRTIO_NET_F_GUEST_ANNOUNCE to guests
The virtio-net guest announce feature bit was accidentally dropped during upstreaming, so the device never advertised it to guests. Restore the feature offer for virtio-net. On-behalf-of: SAP sebastian.eydam@sap.com Signed-off-by: Sebastian Eydam <sebastian.eydam@cyberus-technology.de>
This commit is contained in:
committed by
Rob Bradford
parent
629151481b
commit
4ac2340c1f
@@ -599,6 +599,7 @@ impl Net {
|
||||
|
||||
avail_features |= 1 << VIRTIO_NET_F_CTRL_VQ;
|
||||
avail_features |= 1 << VIRTIO_NET_F_STATUS;
|
||||
avail_features |= 1 << VIRTIO_NET_F_GUEST_ANNOUNCE;
|
||||
let queue_num = num_queues + 1;
|
||||
|
||||
let mut config = VirtioNetConfig::default();
|
||||
|
||||
Reference in New Issue
Block a user