[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] tools: Enable superpages for HVM domains by default



# HG changeset patch
# User George Dunlap <george.dunlap@xxxxxxxxxxxxx>
# Date 1306420054 -3600
# Node ID 85cb287300eb2caf5c53303f6bb1279104946b36
# Parent  62678c86fc6ec6e3f8356e985a4095128cccfed3
tools: Enable superpages for HVM domains by default

Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
---


diff -r 62678c86fc6e -r 85cb287300eb tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c   Thu May 26 15:27:33 2011 +0100
+++ b/tools/libxl/libxl_dom.c   Thu May 26 15:27:34 2011 +0100
@@ -340,7 +340,7 @@
     rc = xc_domain_restore(ctx->xch, fd, domid,
                              state->store_port, &state->store_mfn,
                              state->console_port, &state->console_mfn,
-                             info->hvm, info->u.hvm.pae, 0);
+                             info->hvm, info->u.hvm.pae, !!info->hvm);
     if ( rc ) {
         LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "restoring domain");
         return ERROR_FAIL;
diff -r 62678c86fc6e -r 85cb287300eb tools/xcutils/xc_restore.c
--- a/tools/xcutils/xc_restore.c        Thu May 26 15:27:33 2011 +0100
+++ b/tools/xcutils/xc_restore.c        Thu May 26 15:27:34 2011 +0100
@@ -43,7 +43,7 @@
     if ( argc == 9 )
            superpages = atoi(argv[8]);
     else
-           superpages = 0;
+           superpages = !!hvm;
 
     ret = xc_domain_restore(xch, io_fd, domid, store_evtchn, &store_mfn,
                             console_evtchn, &console_mfn, hvm, pae, 
superpages);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.