]> git.proxmox.com Git - qemu.git/commit
vhost: clear signalled_used_valid on vhost stop
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 12 Aug 2013 09:21:36 +0000 (12:21 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 13 Aug 2013 15:04:40 +0000 (10:04 -0500)
commit58ef8c530ca5d265f575ef88e93c0214d5740b0a
treeee10702dd60c1b6e18561645692ee01770f1967a
parent8d676daf6d12fb5357da9ccd54ac7640dd7ea9f2
vhost: clear signalled_used_valid on vhost stop

When vhost device stops, its implementation synchronizes kernel state
back to virtio.c so we can continue emulating the device
in userspace.

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

Cc: qemu-stable@nongnu.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 3561ba14188b3c1e54246ed6db97896bbc082d2f)

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