From: Jim Fehlig <jfehlig@suse.com>
To: Dario Faggioli <dario.faggioli@citrix.com>
Cc: libvir-list <libvir-list@redhat.com>,
xen-devel@lists.xensource.com,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Ian Campbell <Ian.Campbell@citrix.com>
Subject: Re: [PATCH] libxl: don't break the build on Xen>=4.5 because of libxl_vcpu_setaffinity()
Date: Mon, 30 Jun 2014 15:11:02 -0600 [thread overview]
Message-ID: <53B1D266.5070904@suse.com> (raw)
In-Reply-To: <20140630171856.1453.59964.stgit@Solace>
Dario Faggioli wrote:
> 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.
>
Thanks, looks good. I was about to push, but wanted to check with other
libvirt devs first since we are in 1.2.6 freeze. Would it be fine to
push this? It fixes a libxl driver build failure against xen-unstable.
Regards,
Jim
> 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 | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/src/libxl/libxl_conf.h b/src/libxl/libxl_conf.h
> index 6aa36d2..da66b4e 100644
> --- a/src/libxl/libxl_conf.h
> +++ b/src/libxl/libxl_conf.h
> @@ -55,6 +55,17 @@
> # define LIBXL_DUMP_DIR LIBXL_LIB_DIR "/dump"
> # define LIBXL_BOOTLOADER_PATH BINDIR "/pygrub"
>
> +/* libxl interface for setting VCPU affinity changed in 4.5. In fact, a new
> + * parameter has been added, representative of 'VCPU soft affinity'. If one
> + * does not care about it (and that's libvirt case), passing NULL is the
> + * right thing to do. To mark that change, LIBXL_HAVE_VCPUINFO_SOFT_AFFINITY
> + * is defined. */
> +# ifdef LIBXL_HAVE_VCPUINFO_SOFT_AFFINITY
> +# define libxl_set_vcpuaffinity(ctx, domid, vcpuid, map) \
> + libxl_set_vcpuaffinity((ctx), (domid), (vcpuid), (map), NULL)
> +# define libxl_set_vcpuaffinity_all(ctx, domid, max_vcpus, map) \
> + libxl_set_vcpuaffinity_all((ctx), (domid), (max_vcpus), (map), NULL)
> +# endif
>
> typedef struct _libxlDriverPrivate libxlDriverPrivate;
> typedef libxlDriverPrivate *libxlDriverPrivatePtr;
>
>
>
>
next prev parent reply other threads:[~2014-06-30 21:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-30 17:19 [libvirt] [PATCH] libxl: don't break the build on Xen>=4.5 because of libxl_vcpu_setaffinity() Dario Faggioli
2014-06-30 21:11 ` Jim Fehlig [this message]
2014-06-30 21:23 ` Eric Blake
2014-06-30 21:32 ` Jim Fehlig
2014-07-01 6:52 ` Dario Faggioli
2014-07-01 8:01 ` Ian Campbell
2014-07-01 9:03 ` Dario Faggioli
2014-07-01 17:00 ` Jim Fehlig
2014-07-02 9:14 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53B1D266.5070904@suse.com \
--to=jfehlig@suse.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=dario.faggioli@citrix.com \
--cc=libvir-list@redhat.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.