Stefan Hajnoczi bccdef6b1a virtio: recalculate vq->inuse after migration
The vq->inuse field is not migrated.  Many devices don't hold
VirtQueueElements across migration so it doesn't matter that vq->inuse
starts at 0 on the destination QEMU.

At least virtio-serial, virtio-blk, and virtio-balloon migrate while
holding VirtQueueElements.  For these devices we need to recalculate
vq->inuse upon load so the value is correct.

Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@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>
2016-08-23 19:20:10 +03:00
..
2016-07-21 20:44:20 +03:00
2016-07-19 20:18:02 +02:00
2016-08-05 13:05:29 +01:00
2016-06-17 16:33:48 +10:00
2016-06-14 15:59:13 +01:00
2016-08-09 11:47:23 -04:00
2016-08-08 00:00:28 +04:00
2016-05-18 15:04:27 +03:00
2016-06-07 18:02:48 +03:00
2016-06-29 14:03:48 +02:00
2016-08-10 17:14:35 +01:00
2016-07-29 00:07:09 +03:00
2016-01-29 15:07:25 +00:00
2016-08-08 12:47:02 +02:00
2016-06-24 05:13:57 +03:00
2016-07-12 12:34:41 +01:00
2016-08-08 00:00:36 +04:00
2015-12-22 18:39:19 +02:00