From: Dan Magenheimer Subject: RE: [PATCH]: as requested, disable_migrate support for libxl Date: Tue, 6 Jul 2010 07:50:56 -0700 (PDT) Message-ID: <3c32d4ff-212f-465c-af44-e88232598c9e@default> References: <1278427372.1723.102.camel@qabil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1278427372.1723.102.camel@qabil.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gianni Tedesco , Xen-devel , Keir Fraser Cc: Dulloor , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org (Keir, can you also put this in 4.0-testing, assuming the big libxl backport to 4.0-testing is done?) > I'll feel bad taking a free beer off you for this one Dan :) Don't feel bad, says Dan who lives in the US state with the highest volume of beer production in the US. Thanks... there are some subtle but significant performance advantages that are lost if this flag is not settable. > -----Original Message----- > From: Gianni Tedesco [mailto:gianni.tedesco@citrix.com] > Sent: Tuesday, July 06, 2010 8:43 AM > To: Xen-devel > Cc: Dan Magenheimer; Dulloor; Stefano Stabellini > Subject: [Xen-devel] [PATCH]: as requested, disable_migrate support for > libxl >=20 > I'll feel bad taking a free beer off you for this one Dan :) >=20 > libxl.h | 1 + > libxl_dom.c | 1 + > xl_cmdimpl.c | 5 +++++ > 3 files changed, 7 insertions(+) >=20 > Signed-off-by: Gianni Tedesco >=20 > diff -r a29ebc288d0e tools/libxl/libxl.h > --- a/tools/libxl/libxl.h=09Mon Jul 05 16:12:59 2010 +0100 > +++ b/tools/libxl/libxl.h=09Tue Jul 06 15:38:48 2010 +0100 > @@ -97,6 +97,7 @@ > uint32_t target_memkb; > uint32_t video_memkb; > uint32_t shadow_memkb; > + bool disable_migrate; > const char *kernel; > int hvm; > union { > diff -r a29ebc288d0e tools/libxl/libxl_dom.c > --- a/tools/libxl/libxl_dom.c=09Mon Jul 05 16:12:59 2010 +0100 > +++ b/tools/libxl/libxl_dom.c=09Tue Jul 06 15:38:48 2010 +0100 > @@ -68,6 +68,7 @@ > (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); >=20 > if (info->hvm) { > unsigned long shadow; > diff -r a29ebc288d0e tools/libxl/xl_cmdimpl.c > --- a/tools/libxl/xl_cmdimpl.c=09Mon Jul 05 16:12:59 2010 +0100 > +++ b/tools/libxl/xl_cmdimpl.c=09Tue Jul 06 15:38:48 2010 +0100 > @@ -192,6 +192,7 @@ > b_info->max_vcpus =3D 1; > b_info->max_memkb =3D 32 * 1024; > b_info->target_memkb =3D b_info->max_memkb; > + b_info->disable_migrate =3D 0; > if (c_info->hvm) { > b_info->shadow_memkb =3D 0; /* Set later */ > b_info->video_memkb =3D 8 * 1024; > @@ -360,6 +361,7 @@ > 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); >=20 > printf("\t(image\n"); > if (c_info->hvm) { > @@ -551,6 +553,9 @@ > : libxl_get_required_shadow_memory(b_info->max_memkb, > b_info->max_vcpus); >=20 > + if (!xlu_cfg_get_long (config, "disable_migrate", &l)) > + b_info->disable_migrate =3D l; > + > if (!xlu_cfg_get_long(config, "tsc_mode", &l)) > b_info->tsc_mode =3D l; >=20 >=20 >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel