]> Git Repo - qemu.git/commit
virtio: fix 1.0 virtqueue migration
authorJason Wang <[email protected]>
Wed, 5 Aug 2015 09:50:07 +0000 (17:50 +0800)
committerMichael S. Tsirkin <[email protected]>
Wed, 5 Aug 2015 13:56:34 +0000 (16:56 +0300)
commit74aae7b22b8a67cf31937b2f4bdefe2881e799e9
treeda5290e56a2434aca7abdd3b30f21536dba2a6dd
parent2be4f242b50a84bf360df02480b173bfed161107
virtio: fix 1.0 virtqueue migration

1.0 does not requires physically-contiguous pages layout for a
virtqueue. So we could not infer avail and used from desc. This means
we need to migrate vring.avail and vring.used when host support virtio
1.0. This fixes malfunction of virtio 1.0 device after migration.

Cc: Michael S. Tsirkin <[email protected]>
Cc: Cornelia Huck <[email protected]>
Cc: Dr. David Alan Gilbert <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/virtio/virtio.c
include/hw/virtio/virtio.h
This page took 0.025347 seconds and 4 git commands to generate.