OSDN Git Service

virtio-net: mark VIRTIO_NET_F_GSO as legacy
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 4 Nov 2016 10:27:52 +0000 (12:27 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 15 Nov 2016 15:20:37 +0000 (17:20 +0200)
commit2a083ffd2e37ef08769749a5c7cfc6ca65c9f8ea
treebf82cbf29bc40cbe3faee32ba135591769d19f50
parent9b706dbbbb81f5cb7c67e491d38cd6077205e056
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@nongnu.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/net/virtio-net.c