]> git.proxmox.com Git - mirror_qemu.git/commit
virtio-rng: stop virtqueue while the CPU is stopped
authorLaurent Vivier <lvivier@redhat.com>
Wed, 12 Apr 2017 13:53:12 +0000 (15:53 +0200)
committerJuan Quintela <quintela@redhat.com>
Fri, 21 Apr 2017 10:25:40 +0000 (12:25 +0200)
commita23a6d183986ef38b705e85cabdd2af6cdc95276
tree0ad20373e63146ce0ab1ef567fdd69533d0f1974
parente8199e4895d34136735dea7e628d0de1a5afb630
virtio-rng: stop virtqueue while the CPU is stopped

If we modify the virtio-rng virqueue while the
vmstate is already migrated we can have some
inconsistencies between the virtqueue state and
the memory content.

To avoid this, stop the virtqueue while the CPU
is stopped.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Amit Shah <amit@kernel.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
hw/virtio/trace-events
hw/virtio/virtio-rng.c
include/hw/virtio/virtio-rng.h