From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Chen, Tiejun" Subject: Re: [v5][PATCH 10/16] tools: introduce some new parameters to set rdm policy Date: Wed, 08 Jul 2015 17:06:02 +0800 Message-ID: <559CE7FA.50107@intel.com> References: <1436249837-14747-1-git-send-email-tiejun.chen@intel.com> <1436249837-14747-11-git-send-email-tiejun.chen@intel.com> <20150707102150.GQ1134@zion.uk.xensource.com> <559C74B3.7090909@intel.com> <1436344342.25646.275.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1436344342.25646.275.camel@citrix.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 , Ian Jackson Cc: Stefano Stabellini , Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >> I'll update this next revision. And also rephrase this doc to address >> your comments below. > > FTR I think I indicated yesterday that I was satisfied with your > explanation for why type=none exists as an option even at the xl level, > namely that it allows us to change the default in the future. > Campbell, Jackson had some different comments at this point, #1. Rename "type" to "strategy " and "none" to "ignore" --- a/tools/libxl/libxl_types.idl +++ b/tools/libxl/libxl_types.idl @@ -76,6 +76,17 @@ libxl_domain_type = Enumeration("domain_type", [ (2, "PV"), ], init_val = "LIBXL_DOMAIN_TYPE_INVALID") +libxl_rdm_reserve_strategy = Enumeration("rdm_reserve_strategy", [ + (0, "ignore"), + (1, "host"), + ]) + ... libxl_channel_connection = Enumeration("channel_connection", [ (0, "UNKNOWN"), (1, "PTY"), @@ -369,6 +380,11 @@ libxl_vnode_info = Struct("vnode_info", [ ("vcpus", libxl_bitmap), # vcpus in this node ]) +libxl_rdm_reserve = Struct("rdm_reserve", [ + ("strategy", libxl_rdm_reserve_strategy), + ("reserve", libxl_rdm_reserve_flag), + ]) + #2. Don't expose "ignore" to user and just keep "host" as the default He told me he would discuss this with you, but sounds he didn't do this, or I'm missing something here? Thanks Tiejun