[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [qemu-xen master] virtio-net: mark VIRTIO_NET_F_GSO as legacy



commit 2a083ffd2e37ef08769749a5c7cfc6ca65c9f8ea
Author:     Michael S. Tsirkin <mst@xxxxxxxxxx>
AuthorDate: Fri Nov 4 12:27:52 2016 +0200
Commit:     Michael S. Tsirkin <mst@xxxxxxxxxx>
CommitDate: Tue Nov 15 17:20:37 2016 +0200

    virtio-net: mark VIRTIO_NET_F_GSO as legacy
    
    virtio 1.0 spec says this is a legacy feature bit,
    hide it from guests in modern mode.
    
    Note: for cross-version migration compatibility,
    we keep the bit set in host_features.
    The result will be that a guest migrating cross-version
    will see host features change under it.
    As guests only seem to read it once, this should
    not be an issue. Meanwhile, will work to fix guests to
    ignore this bit in virtio1 mode, too.
    
    Cc: qemu-stable@xxxxxxxxxx
    Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
    Reviewed-by: Cornelia Huck <cornelia.huck@xxxxxxxxxx>
---
 hw/net/virtio-net.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
index 20aa63e..b68c69d 100644
--- a/hw/net/virtio-net.c
+++ b/hw/net/virtio-net.c
@@ -1942,6 +1942,7 @@ static void virtio_net_class_init(ObjectClass *klass, 
void *data)
     vdc->guest_notifier_pending = virtio_net_guest_notifier_pending;
     vdc->load = virtio_net_load_device;
     vdc->save = virtio_net_save_device;
+    vdc->legacy_features |= (0x1 << VIRTIO_NET_F_GSO);
 }
 
 static const TypeInfo virtio_net_info = {
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.