[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v12 4/5] libxl/xl: make it possible to specify soft-affinity in domain config file



On Tue, 2014-07-22 at 17:46 +0200, Dario Faggioli wrote:
> To do so, we add the vcpu_soft_affinity array to build_info, and
> treat it much like vcpu_hard_affinity. The new config option is
> called "cpus_soft".
> 
> Note that the vcpu_hard_affinity array, introduced in a previous
> patch, and the vcpu_soft_affinity array, introduced here, share
> the same LIBXL_HAVE_xxx macro, in libxl.h. That is called
> LIBXL_HAVE_BUILDINFO_VCPU_AFFINITY_ARRAYS, and was introduced
> together with vcpu_hard_affinity, but only inside a comment.
> In this change, we uncomment, and hence properly define it.
> 
> In order to avoid having to issue separate calls to
> libxl_set_vcpuaffinity() (one for hard affinity and one for soft
> affinity) in libxl__build_pre(), in case the caller uses
> b_info->cpumap (for the former) and b_info->vcpu_soft_affinity (for
> the latter), we also set (again!) a new default for b_info->cpumap.
> This allows, from this change on, to always and only deal with
> b_info->vcpu_hard_affinity all around libxl internals.
> 
> Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx>

I acked v11 and there is no "Changes from v11" so unless things did
actually changed, without re-reading the patch:
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.