]> 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)
committerJim Fehlig <jfehlig@suse.com>
Mon, 30 Jun 2014 20:49:22 +0000 (14:49 -0600)
commitbfc72e99920215c9b004a5380ca61fe6ff81ea6b
tree4e0e9898d665680aee8d99c9b6690fc4d9a7030a
parent5fc1d4ec7eef784af4446000bdd9fd11c95a9c29
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>
src/libxl/libxl_conf.h