From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juergen Gross Subject: [PATCH 4 of 4] tools: Enable superpages for HVM domains by default Date: Fri, 13 Jul 2012 11:21:20 +0200 Message-ID: <0cfc9e2b7da38c2d4f7c.1342171280@nehalem1> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7080416343223678679==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com Cc: george.dunlap@eu.citrix.com List-Id: xen-devel@lists.xenproject.org --===============7080416343223678679== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Signed-off-by: George Dunlap Signed-off-by: Juergen Gross 3 files changed, 4 insertions(+), 2 deletions(-) tools/libxl/libxl_dom.c | 2 +- tools/python/xen/xend/XendCheckpoint.py | 2 ++ tools/xcutils/xc_restore.c | 2 +- --===============7080416343223678679== Content-Type: text/x-patch; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen-4.1-testing.hg-4.patch # HG changeset patch # User Juergen Gross # Date 1342171241 -7200 # Node ID 0cfc9e2b7da38c2d4f7cd180ddb9fceae6adbc68 # Parent 0d1fbddee973517d24dcc080be93d2e10a42b98f tools: Enable superpages for HVM domains by default Signed-off-by: George Dunlap Signed-off-by: Juergen Gross diff -r 0d1fbddee973 -r 0cfc9e2b7da3 tools/libxl/libxl_dom.c --- a/tools/libxl/libxl_dom.c Fri Jul 13 11:20:40 2012 +0200 +++ b/tools/libxl/libxl_dom.c Fri Jul 13 11:20:41 2012 +0200 @@ -308,7 +308,7 @@ int libxl__domain_restore_common(libxl_c 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 0d1fbddee973 -r 0cfc9e2b7da3 tools/python/xen/xend/XendCheckpoint.py --- a/tools/python/xen/xend/XendCheckpoint.py Fri Jul 13 11:20:40 2012 +0200 +++ b/tools/python/xen/xend/XendCheckpoint.py Fri Jul 13 11:20:41 2012 +0200 @@ -298,6 +298,8 @@ def restore(xd, fd, dominfo = None, paus dominfo.info['shadow_memory'] = shadow_cur superpages = restore_image.superpages + if is_hvm: + superpages = 1 cmd = map(str, [xen.util.auxbin.pathTo(XC_RESTORE), fd, dominfo.getDomid(), diff -r 0d1fbddee973 -r 0cfc9e2b7da3 tools/xcutils/xc_restore.c --- a/tools/xcutils/xc_restore.c Fri Jul 13 11:20:40 2012 +0200 +++ b/tools/xcutils/xc_restore.c Fri Jul 13 11:20:41 2012 +0200 @@ -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); --===============7080416343223678679== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============7080416343223678679==--