virtio-net: add tap_has_ufo flag to saved state
commit0ce0e8f498a7cbbdda7de5ad5399988a393b0aa3
authorMark McLoughlin <markmc@redhat.com>
Thu, 22 Oct 2009 16:43:50 +0000 (22 17:43 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 27 Oct 2009 17:29:05 +0000 (27 12:29 -0500)
tree35a1e888d1e6b95cb023e51d55ef35b780856ac2
parent6c9f58ba3b79202655e6156eb1dab3a2d2e0b51e
virtio-net: add tap_has_ufo flag to saved state

If we tell the guest we support UFO and then migrate to host which
doesn't support it, we will find ourselves in grave difficulties.

Prevent this scenario by adding a flag to virtio-net's savevm format
which indicates whether the device requires host UFO support.

[v2:
  - add has_ufo uint8_t field for ease of vmstate conversion
  - use qemu_error()
]

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-net.c