virtio: migrate vdev->broken flag
commit791b1daf724ea835a32e90b2b15df1e20dae6f57
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 21 Sep 2016 15:52:20 +0000 (21 16:52 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 23 Sep 2016 16:03:55 +0000 (23 19:03 +0300)
tree265a2cdd9390d1c0045c13637a5100dc547c6e3e
parentf5ed36635d8fa73feb66fe12b3b9c2ed90a1adbe
virtio: migrate vdev->broken flag

Send a subsection if the vdev->broken flag is set.  This allows live
migration of broken virtio devices.

The subsection is only sent if vdev->broken has been set.  In most cases
the flag will be clear and no subsection will be sent.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/virtio/virtio.c