]> xenbits.xensource.com Git - libvirt.git/commit
libxl: fix logic in P2P migration
authorJim Fehlig <jfehlig@suse.com>
Tue, 28 Aug 2018 23:13:54 +0000 (17:13 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 11 Sep 2018 15:17:44 +0000 (09:17 -0600)
commite39c66d3ce3e65170a1db1324eb1fb8e57d82ecb
tree8440f5a331dc5453ddf11fc7738aff28a0d5597e
parent60b4fd90213135be0e471756d3d95c68eb3e8f59
libxl: fix logic in P2P migration

libxlDoMigrateSrcP2P() performs all phases of the migration
protocol for peer-to-peer migration. Unfortunately the logic
was a bit flawed since it is possible to skip the confirm
phase after a successfull begin and prepare phase. Fix the
logic to always call the confirm phase after a successful begin
and perform. Skip the confirm phase if begin or perform fail.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/libxl/libxl_migration.c