From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: [PATCH v1 08/10] libxl: introduce libxl_get_memory_static_max Date: Thu, 17 Jul 2014 13:02:32 +0100 Message-ID: <20140717120232.GJ4913@zion.uk.xensource.com> References: <1405002745-5034-1-git-send-email-wei.liu2@citrix.com> <1405002745-5034-9-git-send-email-wei.liu2@citrix.com> <1405594028.12538.9.camel@kazak.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: <1405594028.12538.9.camel@kazak.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 Campbell Cc: ian.jackson@eu.citrix.com, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, Jul 17, 2014 at 11:47:08AM +0100, Ian Campbell wrote: > On Thu, 2014-07-10 at 15:32 +0100, Wei Liu wrote: > > ... which returns the "static-max" knob of a domain. It will be used in > > later patch to retrieve memory static-max value of a domain. > > > > As libxl_get_memory_{target, static_max} have similar logic, a macro is > > introduced to avoid code duplication. > > It looks to me like this could instead be a common helper function, with > a simple boolean parameter. > Ian J likes macro while you likes functions. I'm fine with anything that works. :-) Helper function it is. Wei. > Ian.