From: Wei Liu Subject: Re: [PATCH v8 10/13] libxl/xl: deprecate the build_info->cpumap field Date: Fri, 13 Jun 2014 14:49:20 +0100 Message-ID: <20140613134920.GD5227@zion.uk.xensource.com> References: <20140613124847.4106.70161.stgit@Solace> <20140613131028.4106.96285.stgit@Solace> <20140613133448.GC5227@zion.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: <20140613133448.GC5227@zion.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: Dario Faggioli Cc: keir@xen.org, Ian.Campbell@citrix.com, Andrew.Cooper3@citrix.com, George.Dunlap@citrix.com, xen-devel@lists.xen.org, JBeulich@suse.com, Ian.Jackson@citrix.com, Wei Liu List-Id: xen-devel@lists.xenproject.org On Fri, Jun 13, 2014 at 02:34:48PM +0100, Wei Liu wrote: [...] > > } > > libxl_domain_set_nodeaffinity(ctx, domid, &info->nodemap); > > - libxl_set_vcpuaffinity_all(ctx, domid, info->max_vcpus, > > - &info->cpumap, NULL); > > > > So you actually remove cpumap handling logic in libxl as well? IMHO this > is not right. > > Consider older application can set this map and now with the new library > CPU is not pinned anymore. I think you can effectively transform cpumap > to vcpu_hard_affinity list in libxl level to avoid functional regression > if cpumap is set and vcpu_hard_affinity is not set by application. If > both cpumap and vcpu_hard_affinity are set, vcpu_hard_affinity takes > precedence. > Acutally you don't need to transform it at all -- just don't remove the call to libxl_set_vcpuaffinity_all. :-) Wei. > Wei.