diff options
| author | Stefan Hajnoczi <stefanha@redhat.com> | 2016-08-15 13:54:15 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2016-08-23 19:20:10 +0300 |
| commit | bccdef6b1a204db0f41ffb6e24ce373e4d7890d4 (patch) | |
| tree | 1472d6b917593c467287fbc7436490381fd9ff81 /net/socket.c | |
| parent | 6bbbb0ac136102098a70b97ab0c07bc7bf53131c (diff) | |
| download | focaccia-qemu-bccdef6b1a204db0f41ffb6e24ce373e4d7890d4.tar.gz focaccia-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 'net/socket.c')
0 files changed, 0 insertions, 0 deletions