vhost: provide helpers for virtio ring relay
authorXiao Wang <xiao.w.wang@intel.com>
Tue, 18 Dec 2018 08:02:00 +0000 (16:02 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Dec 2018 15:22:40 +0000 (16:22 +0100)
commitb13ad2decc8344641658674414d0347beca4bec6
tree30b5a7647cf80edbfe27a990499013d832b73981
parent43f34e35663f6fb2b52990cb3fb40f01d7074d1e
vhost: provide helpers for virtio ring relay

This patch provides two helpers for vdpa device driver to perform a
relay between the guest virtio ring and a mediated virtio ring.

The available ring relay will synchronize the available entries, and
help to do desc validity checking.

The used ring relay will synchronize the used entries from mediated ring
to guest ring, and help to do dirty page logging for live migration.

The later patch will leverage these two helpers.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/rte_vdpa.h
lib/librte_vhost/rte_vhost_version.map
lib/librte_vhost/vdpa.c
lib/librte_vhost/vhost.h
lib/librte_vhost/virtio_net.c