[libvirt] [PATCH RFC 0/2] libxl: migration v3 and p2p support

Joao Martins joao.m.martins at oracle.com
Tue Sep 8 08:26:10 UTC 2015

Hey Jim,

These series introduce support for peer2peer and plain v3 migration without
extensible parameters. This patch series is organized as follows:

The first patch introduces the P2P where the source host must take care of 
connection handling with destination libvirtd and is responsible for performing
the migration. I introduced an additional method for the P2P Perform phase
since the default Perform of libxl is then reused. The sequence is the same as
v3 so it is possible to migrate to non-P2P host. libxlDoMigrateP2P actually
does the migration using a virConnectPtr to the destination and thus 

The second patch is mostly mechanical, and functional wise is very much the
same as the Params variant. The added value of introducing plain v3 is having
access to older APIs such virDomainMigrateToURI2 and virDomainMigrate (in P2P
mode) which are currently in use by Openstack/virt-manager.

My testing was performed in xen stable-4.5 and 4.4.3 (with the added patches in
the Xen CI loop) plus Openstack Kilo. In addition I backported the patches and
tested also on libvirt 1.2.14 (whic is also ran by the Xen CI Openstack loop).

Any comments or suggestions are welcome,


Joao Martins (2):
  libxl: add p2p migration
  libxl: add v3 migration w/o params

 src/libxl/libxl_driver.c    | 226 +++++++++++++++++++++++++++++++++++++++++++-
 src/libxl/libxl_migration.c | 220 ++++++++++++++++++++++++++++++++++++++++++
 src/libxl/libxl_migration.h |  11 +++
 3 files changed, 454 insertions(+), 3 deletions(-)


More information about the libvir-list mailing list