From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: [PATCH] Values of cpu_weight and cpu_cap are lost after xend restart Date: Mon, 16 Aug 2010 22:15:45 +0300 Message-ID: <20100816191545.GU2804@reaktio.net> References: <3958B14F314B884890EEE2F4CCDAB6A601122BF3FD52@ABGEX73E.FSC.NET> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: "Dube, Lutz" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, Aug 16, 2010 at 05:35:24PM +0100, Stefano Stabellini wrote: > On Tue, 10 Aug 2010, Dube, Lutz wrote: > > # HG changeset patch > > # User Lutz.Dube > > # Node ID ca2c8c262dbaa6b2521cec60af7cd688dabdf850 > > # Parent=A0 8992134dcfd0b9e1e86f4111e68a8aa48bd33c3c > > Values of cpu_weight and cpu_cap are lost after xend restart > > =A0 > > For managed domains in state 'halted' I always get default values > > for cpu_cap / cpu_weight after xend restart. > > This is because the names of parameters differ between a SXP file to > > create a VM (here the parameter names are cpu_cap / cpu_weight) and > > a SXP file of a managed VM (here vcpus_params (cap 0) (weight 0)). > > But XendConfig.py reads only cpu_cap / cpu_weight and if not found, > > default values are used. > > =A0 > > The patch reads first vcpus_params (cap, weight), if not found then c= pu_cap, > > cpu_weight and if both parameters are missing it uses the default val= ues. > > =A0 > > Signed-off-by: Lutz Dube Lutz.Dube@ts.fujitsu.com > > =A0 >=20 > applied, thanks > Is this needed for xen-4.0-testing.hg aswell?=20 -- Pasi