From: Wei Liu Subject: Re: [PATCH v2 5/7] xl: enable using ranges of pCPUs when creating cpupools Date: Fri, 13 Mar 2015 15:24:36 +0000 Message-ID: <20150313152436.GD19822@zion.uk.xensource.com> References: <20150313110535.32539.77102.stgit@Solace.station> <20150313110941.32539.10734.stgit@Solace.station> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20150313110941.32539.10734.stgit@Solace.station> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Juergen Gross , Wei Liu , Ian Campbell , Stefano Stabellini , Ian Jackson , Xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, Mar 13, 2015 at 12:09:41PM +0100, Dario Faggioli wrote: > instead of just list of single pCPUs or NUMA node IDs, as > it happens right now. > > On the other hand, after this change, strings containing > pCPUs and NUMA node ranges is supported. The syntax is the > same one supported by the "cpus" and "cpus_soft" config > switch, i.e., "4-8" or "node:1,12-18,^14". > > This make things more flexible, more consistent, and also > improves error handling, as the pCPU range parsing routine > already present in xl is more reliable than just a call > to atoi(). > > While there, remove a redundant error check in the legacy syntax > handling (libxl_bitmap_test() already checks the index being > within the size of the bitmap). > > Signed-off-by: Dario Faggioli > Cc: Ian Campbell > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Wei Liu > Cc: Juergen Gross Acked-by: Wei Liu