[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] tools/libxl: implement support for nomigrate option in VM profiles
# HG changeset patch # User Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> # Date 1278608082 -3600 # Node ID 82f8371effffc7f3f405fc524cf27c3f07d27249 # Parent 5338c61a8d757291222166b4dff988862e70fdee tools/libxl: implement support for nomigrate option in VM profiles Signed-off-by: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx> Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> --- tools/libxl/libxl.h | 1 + tools/libxl/libxl_dom.c | 2 ++ tools/libxl/xl_cmdimpl.c | 5 +++++ 3 files changed, 8 insertions(+) diff -r 5338c61a8d75 -r 82f8371effff tools/libxl/libxl.h --- a/tools/libxl/libxl.h Thu Jul 08 17:53:19 2010 +0100 +++ b/tools/libxl/libxl.h Thu Jul 08 17:54:42 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 5338c61a8d75 -r 82f8371effff tools/libxl/libxl_dom.c --- a/tools/libxl/libxl_dom.c Thu Jul 08 17:53:19 2010 +0100 +++ b/tools/libxl/libxl_dom.c Thu Jul 08 17:54:42 2010 +0100 @@ -68,6 +68,8 @@ 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); + if ( info->disable_migrate ) + xc_domain_disable_migrate(ctx->xch, domid); if (info->hvm) { unsigned long shadow; diff -r 5338c61a8d75 -r 82f8371effff tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Thu Jul 08 17:53:19 2010 +0100 +++ b/tools/libxl/xl_cmdimpl.c Thu Jul 08 17:54:42 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(nomigrate %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, "nomigrate", &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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |