qemu: fix hang in p2p + xbzrle compression + parallel migration
qemu: fix hang in p2p + xbzrle compression + parallel migration

When we do parallel migration, The multifd-channels migration parameter
needs to be set on the destination side as well before incoming migration
URI, unless we accept the default number of connections(2).

Usually, This can be correctly handled by libvirtd. But in this case if
we use p2p + xbzrle compression without parameter '--comp-xbzrle-cache',
qemuMigrationParamsDump returns too early, The corresponding migration
parameter will not be set on the destination side, It results QEMU hangs.

Reproducer:
virsh migrate --live --p2p --comp-methods xbzrle \
--parallel --parallel-connections 3 GUEST qemu+ssh://dsthost/system

or

virsh migrate --live --p2p --compressed \
--parallel --parallel-connections 3 GUEST qemu+ssh://dsthost/system

Signed-off-by: Lin Ma <b672e1c95326414c5ec2f68d68657d26580eb0bc@suse.com>
Message-Id: <20200416044451.21134-1-b672e1c95326414c5ec2f68d68657d26580eb0bc@suse.com>
Reviewed-by: Jiri Denemark <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>

fabianfreyer/libvirt,nertpinx/libvirt,libvirt/libvirt,libvirt/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,olafhering/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,zippy2/libvirt,olafhering/libvirt,nertpinx/libvirt,libvirt/libvirt,olafhering/libvirt,olafhering/libvirt,jfehlig/libvirt,zippy2/libvirt,zippy2/libvirt,nertpinx/libvirt,zippy2/libvirt,jardasgit/libvirt,jfehlig/libvirt,libvirt/libvirt,crobinso/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,crobinso/libvirt,crobinso/libvirt,jardasgit/libvirt,crobinso/libvirt,jardasgit/libvirt,jfehlig/libvirt