vhost: add APIs for live migration
authorZhihong Wang <zhihong.wang@intel.com>
Mon, 2 Apr 2018 11:46:56 +0000 (19:46 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Apr 2018 22:40:21 +0000 (00:40 +0200)
commitbd2e0c3fe5ac43cdb3e902e2d22d46506e23b35d
treebc1430cf859fd9875ef7401b6d87a3090a01a847
parent07718b4f87aa7b89ce6a950364b958fbb586ff25
vhost: add APIs for live migration

This patch adds APIs to enable live migration for non-builtin data paths.

At src side, last_avail/used_idx from the device need to be set into the
virtio_net structure, and the log_base and log_size from the virtio_net
structure need to be set into the device.

At dst side, last_avail/used_idx need to be read from the virtio_net
structure and set into the device.

Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/rte_vhost.h
lib/librte_vhost/rte_vhost_version.map
lib/librte_vhost/vhost.c