]> git.droids-corp.org - dpdk.git/commit
vhost: fix virtio block vDPA live migration IO drop
authorAndy Pei <andy.pei@intel.com>
Wed, 22 Jun 2022 07:47:08 +0000 (15:47 +0800)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 1 Jul 2022 13:49:49 +0000 (15:49 +0200)
commitb90574b10e81d13f3760bf196dd9cfc237707425
tree539e13a1d39b56f0b750dd76bd134ce3a32fd1e9
parent741eda9d57e63c97ac90f04b0d50c53182a22f5c
vhost: fix virtio block vDPA live migration IO drop

In the virtio blk vDPA live migration use case, before the live
migration process, QEMU will set call fd to vDPA back-end. QEMU
and vDPA back-end stand by until live migration starts.
During live migration process, QEMU sets kick fd and a new call
fd. However, after the kick fd is set to the vDPA back-end, the
vDPA back-end configures device and data path starts. The new
call fd will cause some kind of "re-configuration", this kind
of "re-configuration" cause IO drop.
After this patch, vDPA back-end configures device after kick fd
and call fd are well set and make sure no IO drops.
This patch only impact virtio blk vDPA device and does not impact
net device.

Fixes: 7015b6577178 ("vdpa/ifc: add block device SW live-migration")
Signed-off-by: Andy Pei <andy.pei@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/vhost/vhost_user.c