]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio: clear signalled_used_valid when switching from dataplane
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 12 Aug 2013 09:08:09 +0000 (11:08 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 13 Aug 2013 15:04:25 +0000 (10:04 -0500)
commit8d676daf6d12fb5357da9ccd54ac7640dd7ea9f2
tree7b4f54951da6cf17016bff73d0a060231dd00729
parent6bf6fcd181efdcbbb136ce622e1b2e1cbc677b60
virtio: clear signalled_used_valid when switching from dataplane

When the dataplane thread stops, its vring.c implementation synchronizes
vring state back to virtio.c so we can continue emulating the virtio
device.

This patch ensures that virtio.c's signalled_used_valid flag is reset so
that we do not suppress guest notifications due to stale signalled_used
values.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 6793dfd1b6a99a79b9f2e3c4d6625ccd6513f240)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/virtio/dataplane/vring.c
hw/virtio/virtio.c
include/hw/virtio/virtio.h