net/ifc: support SW assisted VDPA live migration
authorXiao Wang <xiao.w.wang@intel.com>
Tue, 18 Dec 2018 08:02:06 +0000 (16:02 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Dec 2018 15:22:40 +0000 (16:22 +0100)
commit4bb531e152d338af0e5ad31b81fbff7fb81d594d
tree6190c174909c6ddbe8b4be161de7b47b057ab52d
parentb95cbe7f1bc6027e89d705d6ba283b76383be81d
net/ifc: support SW assisted VDPA live migration

In SW assisted live migration mode, driver will stop the device and
setup a mediated virtio ring to relay the communication between the
virtio driver and the VDPA device.

This data path intervention will allow SW to help on guest dirty page
logging for live migration.

This SW fallback is event driven relay thread, so when the network
throughput is low, this SW fallback will take little CPU resource, but
when the throughput goes up, the relay thread's CPU usage will goes up
accordingly.

User needs to take all the factors including CPU usage, guest perf
degradation, etc. into consideration when selecting the live migration
support mode.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/ifc/base/ifcvf.h
drivers/net/ifc/ifcvf_vdpa.c