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

[Xen-changelog] [xen-unstable] tools/libxl: support the "disable_migrate

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools/libxl: support the "disable_migrate" domain config option
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 08 Jul 2010 02:10:43 -0700
Delivery-date: Thu, 08 Jul 2010 02:14:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
# Date 1278433359 -3600
# Node ID 15bcf57fcf24333ab753a4736c222785b9a28310
# Parent  da46b25cf17d82e4504f8bf854ea42eead4a5ead
tools/libxl: support the "disable_migrate" domain config option

Signed-off-by: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
---
 tools/libxl/libxl.h      |    1 +
 tools/libxl/libxl_dom.c  |    1 +
 tools/libxl/xl_cmdimpl.c |    5 +++++
 3 files changed, 7 insertions(+)

diff -r da46b25cf17d -r 15bcf57fcf24 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h       Tue Jul 06 16:55:49 2010 +0100
+++ b/tools/libxl/libxl.h       Tue Jul 06 17:22:39 2010 +0100
@@ -97,6 +97,7 @@ typedef struct {
     uint32_t target_memkb;
     uint32_t video_memkb;
     uint32_t shadow_memkb;
+    bool disable_migrate;
     const char *kernel;
     int hvm;
     union {
diff -r da46b25cf17d -r 15bcf57fcf24 tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c   Tue Jul 06 16:55:49 2010 +0100
+++ b/tools/libxl/libxl_dom.c   Tue Jul 06 17:22:39 2010 +0100
@@ -68,6 +68,7 @@ int build_pre(struct libxl_ctx *ctx, uin
             (info->hvm) ? info->max_memkb : 
             (info->max_memkb + info->u.pv.slack_memkb));
     xc_domain_set_tsc_info(ctx->xch, domid, info->tsc_mode, 0, 0, 0);
+    xc_domain_disable_migrate(ctx->xch, info->disable_migrate);
 
     if (info->hvm) {
         unsigned long shadow;
diff -r da46b25cf17d -r 15bcf57fcf24 tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c  Tue Jul 06 16:55:49 2010 +0100
+++ b/tools/libxl/xl_cmdimpl.c  Tue Jul 06 17:22:39 2010 +0100
@@ -192,6 +192,7 @@ static void init_build_info(libxl_domain
     b_info->max_vcpus = 1;
     b_info->max_memkb = 32 * 1024;
     b_info->target_memkb = b_info->max_memkb;
+    b_info->disable_migrate = 0;
     if (c_info->hvm) {
         b_info->shadow_memkb = 0; /* Set later */
         b_info->video_memkb = 8 * 1024;
@@ -360,6 +361,7 @@ static void printf_info(int domid,
     printf("\t(tsc_mode %d)\n", b_info->tsc_mode);
     printf("\t(max_memkb %d)\n", b_info->max_memkb);
     printf("\t(target_memkb %d)\n", b_info->target_memkb);
+    printf("\t(disable_migrate %d)\n", b_info->disable_migrate);
 
     printf("\t(image\n");
     if (c_info->hvm) {
@@ -550,6 +552,9 @@ static void parse_config_data(const char
         ? l * 1024
         : libxl_get_required_shadow_memory(b_info->max_memkb,
                                            b_info->max_vcpus);
+
+    if (!xlu_cfg_get_long (config, "disable_migrate", &l))
+        b_info->disable_migrate = l;
 
     if (!xlu_cfg_get_long(config, "tsc_mode", &l))
         b_info->tsc_mode = l;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] tools/libxl: support the "disable_migrate" domain config option, Xen patchbot-unstable <=