Virtio-net: migration fixes
commitb17a483c09cdf542efd47f5de7ce961d459232d0
authorMark McLoughlin <markmc@redhat.com>
Wed, 7 Jan 2009 10:23:40 +0000 (7 10:23 +0000)
committerAvi Kivity <avi@redhat.com>
Thu, 8 Jan 2009 14:09:30 +0000 (8 16:09 +0200)
treef2fe61aba7cffd3453d70c1363791427ec61dde2
parent1c154017c6d09f468159b6984a0213268fd3ea41
Virtio-net: migration fixes

We were failing to save whether the tx/rx buffers we exchange with the tap
code should include a virtio_net_hdr header; this caused the migrated guest
to receive garbage packets because the tap code was stripping away the header
and virtio_net was interpreting packet data as the virtio_net header

With this fix a guest using mergeable rx buffers and
GSO passes a simple "ping while migrating" test.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/virtio-net.c