net: Add virtio queue interface to update used index from vring state
commit312d3b35349a153e5a069e53170fd929e6b73a2b
authorYuri Benditovich <yuri.benditovich@daynix.com>
Tue, 13 Dec 2016 08:12:05 +0000 (13 10:12 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Jan 2017 05:02:53 +0000 (10 07:02 +0200)
treeb31e4bcfe0ed47ff6dab6a98c03d74bbb5cfac8a
parentf2fd57db363e465653efa55102104039b5516759
net: Add virtio queue interface to update used index from vring state

Bring virtio queue to correct internal  state for host-to-guest
operations when vhost is temporary stopped.

Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio.c
include/hw/virtio/virtio.h