]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: add tunnelled migration support
authorBob Liu <bob.liu@oracle.com>
Wed, 15 Feb 2017 11:17:38 +0000 (11:17 +0000)
committerJim Fehlig <jfehlig@suse.com>
Wed, 15 Feb 2017 21:47:14 +0000 (14:47 -0700)
commit6a95edf9ab667d90b9935fc64403f0b74285af9b
tree8c38815101d77700d7861690fe069a45014a893c
parentd2100f2b4ae55d1cd0414a0e9975c5c3fe7b02c3
libxl: add tunnelled migration support

Tunnelled migration doesn't require any extra network connections
beside the libvirt daemon.  It's capable of strong encryption and the
default option of openstack-nova.

This patch adds the tunnelled migration(Tunnel3params) support to
libxl.  On the source side, the data flow is:

 * libxlDoMigrateSend() -> pipe libxlTunnel3MigrationFunc() polls pipe
 * out and then write to dest stream.

While on the destination side:
 * Stream -> pipe -> 'recvfd of libxlDomainStartRestore'

The usage is the same as p2p migration, execpt adding one extra
'--tunnelled' to the libvirt p2p migration command.

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
src/libxl/libxl_driver.c
src/libxl/libxl_migration.c
src/libxl/libxl_migration.h