From: Daniel Kiper Subject: Re: [PATCH v3 1/3] libxl: xl mem-max et consortes must update static-max in xenstore too Date: Tue, 9 Apr 2013 13:54:59 +0200 Message-ID: <20130409115459.GA29064@debian70-amd64.local.net-space.pl> References: <1365107683-25564-1-git-send-email-daniel.kiper@oracle.com> <1365107683-25564-2-git-send-email-daniel.kiper@oracle.com> <20834.61063.415748.29907@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20834.61063.415748.29907@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: xen-devel@lists.xensource.com, ian.campbell@citrix.com, konrad.wilk@oracle.com List-Id: xen-devel@lists.xenproject.org On Mon, Apr 08, 2013 at 05:21:27PM +0100, Ian Jackson wrote: > Daniel Kiper writes ("[Xen-devel] [PATCH v3 1/3] libxl: xl mem-max et consortes must update static-max in xenstore too"): > > xl mem-max et consortes must update static-max in xenstore too. > > Without this patch there is no chance to increase memory reservation > > for given domain above memory limit defined in config file. It means > > that memory hotplug is practicaly unusable without this patch. > > Doesn't this, together with your previous patch, conflate the "static > maximum" (ie, boot-time memory size which in the absence of memory > hotplug can never be exceeded), with the "xen maximum" (ie the > enforced memory limit) ? > > I thought that the static-max xenstore key was used for the former. To some extent. However, static-max has always a bit larger value than "xen maximum". xl uses static-max to enforce limits on guests but it is just an info for guest itself. "xen maximum" is a kind of hard limit which could not be exceeded and is enforced on guest by Xen hypervisor. Daniel