diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-08-12 11:08:09 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2013-08-12 12:19:04 +0300 |
commit | 6793dfd1b6a99a79b9f2e3c4d6625ccd6513f240 (patch) | |
tree | 9bb84f2c48451af01e72111e68279a3112c87262 /include | |
parent | 4965b7f056177ddfb816319e9ff5e766898d0bc5 (diff) | |
download | qemu-6793dfd1b6a99a79b9f2e3c4d6625ccd6513f240.tar.gz qemu-6793dfd1b6a99a79b9f2e3c4d6625ccd6513f240.tar.bz2 qemu-6793dfd1b6a99a79b9f2e3c4d6625ccd6513f240.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/virtio/virtio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index d7e9e0fc8a..a90522d6d6 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -237,6 +237,7 @@ hwaddr virtio_queue_get_used_size(VirtIODevice *vdev, int n); hwaddr virtio_queue_get_ring_size(VirtIODevice *vdev, int n); uint16_t virtio_queue_get_last_avail_idx(VirtIODevice *vdev, int n); void virtio_queue_set_last_avail_idx(VirtIODevice *vdev, int n, uint16_t idx); +void virtio_queue_invalidate_signalled_used(VirtIODevice *vdev, int n); VirtQueue *virtio_get_queue(VirtIODevice *vdev, int n); uint16_t virtio_get_queue_index(VirtQueue *vq); int virtio_queue_get_id(VirtQueue *vq); |