[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [v7 PATCH 07/10] libxl: get and set soft affinity
On Tue, 2014-06-10 at 02:45 +0200, Dario Faggioli wrote: > Make space for two new cpumap-s, one in vcpu_info (for getting > soft affinity) and build_info (for setting it) and amend the > API for setting vCPU affinity. > > libxl_set_vcpuaffinity() now takes two cpumaps, one for hard > and one for soft affinity (LIBXL_API_VERSION is exploited to > retain source level backword compatibility). Either of the > two cpumap can be NULL, in which case, only the affinity > corresponding to the non-NULL cpumap will be affected. > > Getting soft affinity happens indirectly, via `xl vcpu-list' > (as it is already for hard affinity). > > This commit also introduces some logic to check whether the > affinity which will be used by Xen to schedule the vCPU(s) > does actually match with the cpumaps provided. In fact, we > want to allow every possible combination of hard and soft > affinity to be set, but we warn the user upon particularly > weird situations (e.g., hard and soft being disjoint sets > of pCPUs). > > This very change also update the error handling for calls > to libxl_set_vcpuaffinity() in xl, as that can now be any > libxl error code, not just only -1. > > Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx> > Reviewed-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx> This relies indirectly on a patch of Wei's to add 0x040500 to the list of valid versions in libxl.h, but other than that. Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |