]> xenbits.xensource.com Git - xen.git/commit
tools/libxc+libxl+xl: Restore v2 streams
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 12 Jun 2015 16:21:41 +0000 (17:21 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 15 Jul 2015 10:22:53 +0000 (11:22 +0100)
commit3a9ace0147d48af49ffd34628f9510f248f2f588
tree2506d209f3c2c2029122f3b3810d1b579c3b520b
parentd9c879039393bb14760966bf7076a2d40d45b124
tools/libxc+libxl+xl: Restore v2 streams

This is a complicated set of changes which must be done together for
bisectability.

 * libxl-save-helper is updated to unconditionally use libxc migration
   v2.
 * libxl compatibility workarounds in libxc are disabled for restore
   operations.
 * libxl__stream_read_start() is logically spliced into the event
   location where libxl__xc_domain_restore() used to reside.
 * Ownership of the save_helper_state moves to stream_read_state.

The parameters 'hvm', 'pae', and 'superpages' were previously
superfluous, and are completely unused in migration
v2. callbacks->toolstack_restore is handled via a migration v2 record
now, rather than via a callback from libxc.

NB: this change breaks Remus.  Further untangling needs to happen
before Remus will function.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
---
v4:
 * Don't use _init() needlessly
v3:
 * Simplify from v2.
 * Alter the ownership of save_helper_state

v2:
 * Drop "legacy_width" from the IDL
 * Gain a LIBXL_HAVE_ to signify support of migration v2 streams
tools/libxc/Makefile
tools/libxl/libxl.h
tools/libxl/libxl_create.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_save_helper.c
tools/libxl/libxl_stream_read.c
tools/libxl/libxl_types.idl
tools/libxl/xl_cmdimpl.c