From: Wei Liu Subject: Re: [v4][PATCH 11/19] tools: introduce some new parameters to set rdm policy Date: Fri, 26 Jun 2015 13:06:46 +0100 Message-ID: <20150626120646.GA1609@zion.uk.xensource.com> References: <1435053450-25131-1-git-send-email-tiejun.chen@intel.com> <1435053450-25131-12-git-send-email-tiejun.chen@intel.com> <1435234395.32500.73.camel@citrix.com> <558D0F98.7020107@intel.com> <1435309027.32500.142.camel@citrix.com> <558D1D13.2010208@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <558D1D13.2010208@intel.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: "Chen, Tiejun" Cc: Wei Liu , Stefano Stabellini , Ian Jackson , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, Jun 26, 2015 at 05:36:19PM +0800, Chen, Tiejun wrote: > >>TODO: in the future this parameter may be further extended to allow > >>specifying arbitrary regions, e.g. even those belonging to another > >>platform as a preparation for live migration with passthrough devices. > > > >I don't think this needs to be explained in this document at all. > >Whenever someone does that work they can update the docs to describe the > >new functionality. > > Okay. > > > > >> > >>... > >> > >>> > >>>>+ > >>>>+"none" means we have nothing to do all reserved regions and ignore all policies, > > [snip] > > >>Just let me rephrase this, > >> > >>"none" means we don't check any reserved regions and then all rdm > >>policies would be ignored, so guest just work as before. > > > >When or why would I write: > > rdm = "none" > >in my configuration file instead of just not saying anything? > > As you know we just have two options, "none" vs. "host". So we need a > explicit flag as a default libxl value to work out our mechanism. > > +libxl_rdm_reserve_type = Enumeration("rdm_reserve_type", [ > + (0, "none"), > + (1, "host"), > + ]) > + > > We just think this name can make sense, right? > What Ian was getting at was specifying type=none is the same as not specifying at all. So on *xl* level we can just expose "host" as the only valid type. Ian, correct me if I misunderstand. Wei.