WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 4 of 4] tools: Enable superpages for HVM domains by d

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 4 of 4] tools: Enable superpages for HVM domains by default
From: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Date: Mon, 16 May 2011 11:51:06 +0100
Cc: george.dunlap@xxxxxxxxxxxxx
Delivery-date: Mon, 16 May 2011 03:53:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1305543062@elijah>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1305543062@elijah>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>

diff -r 2ee1b330f2d3 -r 454501a50504 tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c   Mon May 16 11:50:46 2011 +0100
+++ b/tools/libxl/libxl_dom.c   Mon May 16 11:50:46 2011 +0100
@@ -316,7 +316,7 @@ int libxl__domain_restore_common(libxl__
     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 2ee1b330f2d3 -r 454501a50504 tools/xcutils/xc_restore.c
--- a/tools/xcutils/xc_restore.c        Mon May 16 11:50:46 2011 +0100
+++ b/tools/xcutils/xc_restore.c        Mon May 16 11:50:46 2011 +0100
@@ -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);

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