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

Re: [Xen-devel] [PATCH] Values of cpu_weight and cpu_cap are lost after

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Values of cpu_weight and cpu_cap are lost after xend restart
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Mon, 16 Aug 2010 22:15:45 +0300
Cc: "Dube, Lutz" <lutz.dube@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 16 Aug 2010 12:16:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.1008161735160.2545@kaball-desktop>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <3958B14F314B884890EEE2F4CCDAB6A601122BF3FD52@xxxxxxxxxxxxxxxx> <alpine.DEB.2.00.1008161735160.2545@kaball-desktop>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
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  8992134dcfd0b9e1e86f4111e68a8aa48bd33c3c
> > Values of cpu_weight and cpu_cap are lost after xend restart
> >  
> > 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.
> >  
> > The patch reads first vcpus_params (cap, weight), if not found then cpu_cap,
> > cpu_weight and if both parameters are missing it uses the default values.
> >  
> > Signed-off-by: Lutz Dube Lutz.Dube@xxxxxxxxxxxxxx
> >  
> 
> applied, thanks
>

Is this needed for xen-4.0-testing.hg aswell? 

-- Pasi


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