aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio/virtio.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2015-06-04 12:34:23 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-06-10 18:15:05 +0200
commitb8f059081d93f1802480059d1d49fe5c1d32f60c (patch)
tree1e066b355ef4f9a013e18aac4c2840f0fa1bee24 /hw/virtio/virtio.c
parentdfb8e184db758bff275f94f7aa634300886cfe21 (diff)
virtio: generation counter support
Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio/virtio.c')
-rw-r--r--hw/virtio/virtio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
index 8a6ebae368..cae5ecab19 100644
--- a/hw/virtio/virtio.c
+++ b/hw/virtio/virtio.c
@@ -930,6 +930,7 @@ void virtio_notify_config(VirtIODevice *vdev)
return;
vdev->isr |= 0x03;
+ vdev->generation++;
virtio_notify_vector(vdev, vdev->config_vector);
}