aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Dunlap <george.dunlap@eu.citrix.com>2011-05-26 15:27:34 +0100
committerGeorge Dunlap <george.dunlap@eu.citrix.com>2011-05-26 15:27:34 +0100
commitbe014da159af4d167ddc73326a489be5eff6466f (patch)
tree2609a645262b684d71fa97e54a615ac6ba33d702
parentf35c8f6857b19f2278b73b55bb64d4fc8fb56c75 (diff)
downloadxen-be014da159af4d167ddc73326a489be5eff6466f.tar.gz
xen-be014da159af4d167ddc73326a489be5eff6466f.tar.bz2
xen-be014da159af4d167ddc73326a489be5eff6466f.zip
tools: Enable superpages for HVM domains by default
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
-rw-r--r--tools/libxl/libxl_dom.c2
-rw-r--r--tools/xcutils/xc_restore.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c
index 87d424b620..e07c4ba878 100644
--- a/tools/libxl/libxl_dom.c
+++ b/tools/libxl/libxl_dom.c
@@ -340,7 +340,7 @@ int libxl__domain_restore_common(libxl__gc *gc, uint32_t domid,
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 --git a/tools/xcutils/xc_restore.c b/tools/xcutils/xc_restore.c
index ea069ac8f5..985cbecb11 100644
--- a/tools/xcutils/xc_restore.c
+++ b/tools/xcutils/xc_restore.c
@@ -43,7 +43,7 @@ main(int argc, char **argv)
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);