]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Refactor tunnelled migration methods
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 20 Apr 2011 12:12:43 +0000 (13:12 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 16 May 2011 14:18:22 +0000 (15:18 +0100)
commit13cb49f847febf825fddf174f245e831978505d8
tree118f2ee80f2e11743d148150068bf63e760acb41
parentcc53b4c4442a71e128748162dab0be158a2beaf3
Refactor tunnelled migration methods

To facilitate the introduction of the v3 migration protocol,
the doTunnelMigrate method is refactored into two pieces. One
piece is intended to mirror the flow of virDomainMigrateVersion2,
while the other is the helper for setting up sockets and processing
the data.

Previously socket setup would be done before the 'prepare' step,
so errors could be dealt with immediately, avoiding need to shut
off the destination QEMU. In the new split, socket setup is done
after the 'prepare' step. This is not a serious problem, since
the control flow already requires calling 'finish' to tear down
the destination QEMU upon several errors.

* src/qemu/qemu_migration.c:
src/qemu/qemu_migration.c