diff options
| author | Stefan Hajnoczi | 2016-08-15 14:54:15 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2016-08-23 18:20:10 +0200 |
| commit | bccdef6b1a204db0f41ffb6e24ce373e4d7890d4 (patch) | |
| tree | 1472d6b917593c467287fbc7436490381fd9ff81 /scripts/modules | |
| parent | target-arm: Fix warn about implicit conversion (diff) | |
| download | qemu-bccdef6b1a204db0f41ffb6e24ce373e4d7890d4.tar.gz qemu-bccdef6b1a204db0f41ffb6e24ce373e4d7890d4.tar.xz qemu-bccdef6b1a204db0f41ffb6e24ce373e4d7890d4.zip | |
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>
Diffstat (limited to 'scripts/modules')
0 files changed, 0 insertions, 0 deletions
