mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
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>
This commit is contained in:
1 parent
f35c8f6857
commit
be014da159
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||