xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Juergen Gross <juergen.gross@ts.fujitsu.com>
To: xen-devel@lists.xensource.com
Cc: george.dunlap@eu.citrix.com
Subject: [PATCH 4 of 4] tools: Enable superpages for HVM domains by default
Date: Fri, 13 Jul 2012 11:21:20 +0200	[thread overview]
Message-ID: <0cfc9e2b7da38c2d4f7c.1342171280@nehalem1> (raw)
In-Reply-To: <patchbomb.1342171276@nehalem1>

[-- Attachment #1: Type: text/plain, Size: 322 bytes --]

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>


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 +-



[-- Attachment #2: xen-4.1-testing.hg-4.patch --]
[-- Type: text/x-patch, Size: 2117 bytes --]

# HG changeset patch
# User Juergen Gross <juergen.gross@ts.fujitsu.com>
# Date 1342171241 -7200
# Node ID 0cfc9e2b7da38c2d4f7cd180ddb9fceae6adbc68
# Parent  0d1fbddee973517d24dcc080be93d2e10a42b98f
tools: Enable superpages for HVM domains by default

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>

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);

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  parent reply	other threads:[~2012-07-13  9:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-13  9:21 [PATCH 0 of 4] Xen 4.1 backport of cs 23420-23423 Juergen Gross
2012-07-13  9:21 ` [PATCH 1 of 4] tools: libxc: Detect superpages on domain restore Juergen Gross
2012-07-13  9:21 ` [PATCH 2 of 4] tools: Save superpages in the same batch, to make detection easier Juergen Gross
2012-07-13  9:21 ` [PATCH 3 of 4] tools: Introduce "allocate-only" page type for migration Juergen Gross
2012-07-13  9:21 ` Juergen Gross [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-05-16 10:51 [PATCH 0 of 4] RESEND Use superpages on restore/migrate George Dunlap
2011-05-16 10:51 ` [PATCH 4 of 4] tools: Enable superpages for HVM domains by default George Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0cfc9e2b7da38c2d4f7c.1342171280@nehalem1 \
    --to=juergen.gross@ts.fujitsu.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).