]> git.droids-corp.org - dpdk.git/commit
vdpa/ifc: add block device SW live-migration
authorAndy Pei <andy.pei@intel.com>
Tue, 24 May 2022 02:48:10 +0000 (10:48 +0800)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Wed, 1 Jun 2022 09:50:10 +0000 (11:50 +0200)
commit7015b6577178edb74bfe1159a7eb9bfa34d3dc01
treeaf10653ef5fc18208767dfa7a9c08c29a587e0ec
parentff53e9770de6ad1d0e5fb8cc2688e39f264305b4
vdpa/ifc: add block device SW live-migration

Add SW live-migration support to block device.
For block device, it is critical that no packet
should be dropped. So when virtio blk device is
paused, make sure hardware last_avail_idx and
last_used_idx are the same. This indicates all
requests have received acks, and no inflight IO.

Signed-off-by: Andy Pei <andy.pei@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
drivers/vdpa/ifc/base/ifcvf.h
drivers/vdpa/ifc/ifcvf_vdpa.c