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