xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.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: Mon, 16 May 2011 11:51:06 +0100	[thread overview]
Message-ID: <454501a505041f7460ad.1305543066@elijah> (raw)
In-Reply-To: <patchbomb.1305543062@elijah>

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>

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

  parent reply	other threads:[~2011-05-16 10:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-16 10:51 [PATCH 0 of 4] RESEND Use superpages on restore/migrate George Dunlap
2011-05-16 10:51 ` [PATCH 1 of 4] tools: Detect superpages on domain restore George Dunlap
2011-05-16 10:51 ` [PATCH 2 of 4] tools: Save superpages in the same batch, to make detection easier George Dunlap
2011-05-16 10:51 ` [PATCH 3 of 4] tools: Introduce "allocate-only" page type for migration George Dunlap
2011-05-16 10:51 ` George Dunlap [this message]
2011-05-24 17:30 ` [PATCH 0 of 4] RESEND Use superpages on restore/migrate Ian Jackson
2011-05-25 13:56   ` George Dunlap
2011-05-26 14:28 ` Ian Jackson
  -- strict thread matches above, loose matches on Subject: below --
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 4 of 4] tools: Enable superpages for HVM domains by default Juergen Gross

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=454501a505041f7460ad.1305543066@elijah \
    --to=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).