# HG changeset patch
# User Paul Durrant <paul.durrant@citrix.com>
# Date 1326798293 0
# Node ID 37b60f1b74641ba9e10064d11ce7178680d1536e
# Parent 2913ccc6d70f15ffcc15c7e066c9269b15a30a09
Add missing gate for HVM domain.
This will fix localhost migrate failures found by the automatic tests.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
diff -r 2913ccc6d70f -r 37b60f1b7464 tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c Mon Jan 16 17:56:07 2012 +0000
+++ b/tools/libxl/xl_cmdimpl.c Tue Jan 17 11:04:53 2012 +0000
@@ -1580,7 +1580,8 @@ static int create_domain(struct domain_c
}
}
- d_config.b_info.u.hvm.no_incr_generationid =
dom_info->no_incr_generationid;
+ if (d_config.c_info.type == LIBXL_DOMAIN_TYPE_HVM)
+ d_config.b_info.u.hvm.no_incr_generationid =
dom_info->no_incr_generationid;
if (debug || dom_info->dryrun)
printf_info(-1, &d_config, &d_config.dm_info);