From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu Zhiguo Subject: [PATCH 0/2] xl: Add subcommand mem-max and fix mem-set Date: Wed, 12 May 2010 14:26:27 +0800 Message-ID: <4BEA4A13.3000801@cn.fujitsu.com> References: <4BE3DFBE.2010901@cn.fujitsu.com> <19428.20752.717993.453216@mariner.uk.xensource.com> <4BE67620.7010803@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4BE67620.7010803@cn.fujitsu.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: Ian Jackson , Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org Yu Zhiguo wrote: > > I'm trying to add subcommand 'mem-max', I think xc_domain_setmaxmem should > be used in it but not here. > > I'll move this code to 'mem-max', and in 'mem-set', a check should be added > because setting memory larger than max memory is invalid. > > 1. Add 'mem-max' > Add libxl_domain_setmaxmem, it calls xc_domain_setmaxmem. > /local/domain/$domid/memory/static-max should be updated when set max memory, > it is missing now. > > 2. fix 'mem-set' > Delete xc_domain_setmaxmem. > Get max memory from /local/domain/$domid/memory/static-max, and then do value check. > It seems that we cannot get max memory use libxc routines. > I fixed it, please check. [PATCH 1/2] xl: Add command 'xl mem-max' [PATCH 2/2] xl: Add check for command 'xl mem-set' Regards Yu Zhiguo