aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_create.c
diff options
context:
space:
mode:
authorPaul Durrant <paul.durrant@citrix.com>2012-08-22 22:26:27 +0100
committerPaul Durrant <paul.durrant@citrix.com>2012-08-22 22:26:27 +0100
commit8cda3b02882b6c2b398dffdd8533f2135e9cb088 (patch)
treebc175ce4562466ede39a71f503fa288de235355f /tools/libxl/libxl_create.c
parent64b135198b8e61fbc2c5bc58439a0dcfe64c9af8 (diff)
downloadxen-8cda3b02882b6c2b398dffdd8533f2135e9cb088.tar.gz
xen-8cda3b02882b6c2b398dffdd8533f2135e9cb088.tar.bz2
xen-8cda3b02882b6c2b398dffdd8533f2135e9cb088.zip
hvm: Remove VM genearation ID device and incr_generationid from build_info.
Microsoft have now published their VM generation ID specification at https://www.microsoft.com/en-us/download/details.aspx?id=30707. It differs from the original specification upon which I based my implementation in several key areas. Particularly, it is no longer an incrementing 64-bit counter and so this patch is to remove the incr_generationid field from the build_info and also disable the ACPI device before 4.2 is released. I will follow up with further patches to implement the VM generation ID to the new specification. Signed-off-by: Paul Durrant <paul.durrant@citrix.com> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'tools/libxl/libxl_create.c')
-rw-r--r--tools/libxl/libxl_create.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c
index 5f0d26fe33..57a497d11e 100644
--- a/tools/libxl/libxl_create.c
+++ b/tools/libxl/libxl_create.c
@@ -248,7 +248,6 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc,
libxl_defbool_setdefault(&b_info->u.hvm.hpet, true);
libxl_defbool_setdefault(&b_info->u.hvm.vpt_align, true);
libxl_defbool_setdefault(&b_info->u.hvm.nested_hvm, false);
- libxl_defbool_setdefault(&b_info->u.hvm.incr_generationid, false);
libxl_defbool_setdefault(&b_info->u.hvm.usb, false);
libxl_defbool_setdefault(&b_info->u.hvm.xen_platform_pci, true);
@@ -758,27 +757,24 @@ static void domcreate_bootloader_done(libxl__egc *egc,
/* read signature */
int hvm, pae, superpages;
- int no_incr_generationid;
switch (info->type) {
case LIBXL_DOMAIN_TYPE_HVM:
hvm = 1;
superpages = 1;
pae = libxl_defbool_val(info->u.hvm.pae);
- no_incr_generationid = !libxl_defbool_val(info->u.hvm.incr_generationid);
callbacks->toolstack_restore = libxl__toolstack_restore;
break;
case LIBXL_DOMAIN_TYPE_PV:
hvm = 0;
superpages = 0;
pae = 1;
- no_incr_generationid = 0;
break;
default:
rc = ERROR_INVAL;
goto out;
}
libxl__xc_domain_restore(egc, dcs,
- hvm, pae, superpages, no_incr_generationid);
+ hvm, pae, superpages, 1);
return;
out: