]> xenbits.xensource.com Git - xen.git/commitdiff
tools/xl: Mandatory flag indicating the format of the migration stream
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 5 Jun 2015 19:26:22 +0000 (20:26 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 15 Jul 2015 10:22:53 +0000 (11:22 +0100)
Introduced at this point so the python stream conversion code has a
concrete ABI to use.  Later when libxl itself starts supporting a v2
stream, it will be added to XL_MANDATORY_FLAG_ALL.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
---
v2: Expand commit message

tools/libxl/xl_cmdimpl.c

index 8b4be72fe896bbeeed35b7f9965c455d818fefd4..77647e9c3dc8eb9495c261b12075e439231fc9b3 100644 (file)
@@ -109,6 +109,7 @@ static const char migrate_report[]=
    */
 
 #define XL_MANDATORY_FLAG_JSON (1U << 0) /* config data is in JSON format */
+#define XL_MANDATORY_FLAG_STREAMv2 (1U << 1) /* stream is v2 */
 #define XL_MANDATORY_FLAG_ALL  (XL_MANDATORY_FLAG_JSON)
 struct save_file_header {
     char magic[32]; /* savefileheader_magic */