Although the dataplane thread does not cooperate with dirty memory logging yet it's fairly easy to temporarily disable dataplane during live migration. This way virtio-blk can live migrate when x-data-plane=on.
The dataplane thread will restart after migration is cancelled or if the guest resuming virtio-blk operation after migration completes.
84db52d dataplane: enable virtio-blk x-data-plane=on live migration
hw/block/dataplane/virtio-blk.c | 9 ---------
hw/block/virtio-blk.c | 32 ++++++++++++++++++++++++++++++++
include/hw/virtio/virtio-blk.h | 1 +
3 files changed, 33 insertions(+), 9 deletions(-)
Upstream: git.qemu.org