]> 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)
committerEric Blake <eblake@redhat.com>
Wed, 16 Dec 2015 04:36:00 +0000 (21:36 -0700)
commit36460fb15e36830a86724e6dba36a27e0e56cae0
tree159e28c77f9cd9d9d769e109441c8cc14aca5cee
parent17defce9159c5111e7011e575ba72803a9418086
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