]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: don't break the build on Xen>=4.5 because of libxl_vcpu_setaffinity()
authorDario Faggioli <dario.faggioli@citrix.com>
Mon, 30 Jun 2014 17:19:01 +0000 (19:19 +0200)
committerCole Robinson <crobinso@redhat.com>
Mon, 27 Apr 2015 23:27:38 +0000 (19:27 -0400)
commit57bd153f287b57072149d5b51cd85d87fb0dbf3e
tree9c2825bf90206383be54eeba4276c488107fe1c7
parent62c042f44b092fefc886ddbe6b3a4381402019ca
libxl: don't break the build on Xen>=4.5 because of libxl_vcpu_setaffinity()

libxl interface for vcpu pinning is changing in Xen 4.5. Basically,
libxl_set_vcpuaffinity() now wants one more parameter. That is
representative of 'VCPU soft affinity', which libvirt does not use.

To mark such change, the macro LIBXL_HAVE_VCPUINFO_SOFT_AFFINITY is
defined. Use it as a gate and, if present, re-#define the calls from
the old to the new interface, to avoid breaking the build.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Jim Fehlig <jfehlig@suse.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
(cherry picked from commit bfc72e99920215c9b004a5380ca61fe6ff81ea6b)
src/libxl/libxl_conf.h