From: Michael S. Tsirkin <[email protected]> Fix up loadvm versioning logic: vnet header should be checked for any version >= 7, not just for version 7.
Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Avi Kivity <[email protected]> diff --git a/hw/virtio-net.c b/hw/virtio-net.c index 215f9d0..6b82232 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -770,7 +770,7 @@ static int virtio_net_load(QEMUFile *f, void *opaque, int version_id) if (version_id >= 6) qemu_get_buffer(f, (uint8_t *)n->vlans, MAX_VLAN >> 3); - if (version_id == 7 && qemu_get_be32(f)) { + if (version_id >= 7 && qemu_get_be32(f)) { #ifdef TAP_VNET_HDR tap_using_vnet_hdr(n->vc->vlan->first_client, 1); #else -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
