From: Dario Faggioli <dario.faggioli@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Ian.Jackson@citrix.com, Andrew.Cooper3@citrix.com,
Wei Liu <wei.liu2@citrix.com>,
George.Dunlap@citrix.com, xen-devel@lists.xen.org
Subject: Re: [PATCH v9 5/9] libxl/xl: push VCPU affinity pinning down to libxl
Date: Wed, 18 Jun 2014 18:32:40 +0200 [thread overview]
Message-ID: <1403109160.21681.22.camel@Solace> (raw)
In-Reply-To: <1403106254.6568.94.camel@kazak.uk.xensource.com>
[-- Attachment #1.1: Type: text/plain, Size: 2063 bytes --]
On mer, 2014-06-18 at 16:44 +0100, Ian Campbell wrote:
> On Wed, 2014-06-18 at 16:28 +0200, Dario Faggioli wrote:
> > diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h
> > index c2b143b..663abe2 100644
> > --- a/tools/libxl/libxl.h
> > +++ b/tools/libxl/libxl.h
> > @@ -338,6 +338,21 @@
> > #endif
> >
> > /*
> > + * LIBXL_HAVE_BUILDINFO_VCPU_HARD_AFFINITY_ARRAY
> > + *
> > + * If this is defined, then libxl_domain_build_info structure will
> > + * contain vcpu_hard_affinity, an array of libxl_bitmap that contains
> > + * the necessary information to set the hard affinity of each VCPU to
> > + * a set of PCPUs. Libxl will try to pin VCPUs to PCPUs according to
> > + * this list.
>
> Something needs to describe somewhere how this relates to the existing
> cpumap field. I think they are sort of unioned (i.e. cpumap is applied
> then this new thing can override it)?
>
Ok, I'll add a note about this here too.
> Is that the most desirable semantics, it seems potentially confusing to
> me. Perhaps cpumap should be ignored if this array is of non-zero size?
>
As I said in the other reply, yes, I'll see if I can do that.
> > + * The number of libxl_bitmap in the array equals to the maximum number
> > + * of VCPUs. The size of each bitmap is computed basing on the maximum
> > + * number of PCPUs.
>
> These are all things which the caller is expect to arrange by making
> appropriately sized allocations, not inherent properties of the API, I
> think.
>
> So "the number of libxl_bitmap in the array *should* be equal". "The
> size of each bitmap should ..." etc.
>
Will fix. I will also add a check that this is actually what we get from
the caller in libxl_dom.c (where the arrays are consumed).
Thanks and Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2014-06-18 16:32 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-18 14:27 [PATCH v9 0/9] Implement vcpu soft affinity for credit1 (toolstack side) Dario Faggioli
2014-06-18 14:27 ` [PATCH v9 1/9] libxc/libxl: bump library SONAMEs Dario Faggioli
2014-06-18 14:27 ` [PATCH v9 2/9] libxc: get and set soft and hard affinity Dario Faggioli
2014-06-18 14:28 ` [PATCH v9 3/9] libxl: get and set soft affinity Dario Faggioli
2014-06-18 14:28 ` [PATCH v9 4/9] xl: enable getting and setting " Dario Faggioli
2014-06-18 15:37 ` Ian Campbell
2014-06-18 14:28 ` [PATCH v9 5/9] libxl/xl: push VCPU affinity pinning down to libxl Dario Faggioli
2014-06-18 15:44 ` Ian Campbell
2014-06-18 16:32 ` Dario Faggioli [this message]
2014-06-18 16:46 ` Ian Campbell
2014-06-18 17:00 ` Dario Faggioli
2014-06-20 8:17 ` Dario Faggioli
2014-06-20 8:58 ` Wei Liu
2014-06-20 12:01 ` Dario Faggioli
2014-06-18 14:28 ` [PATCH v9 6/9] libxl/xl: deprecate the build_info->cpumap field Dario Faggioli
2014-06-18 15:09 ` Wei Liu
2014-06-18 16:40 ` Dario Faggioli
2014-06-19 11:06 ` Wei Liu
2014-06-19 14:00 ` Dario Faggioli
2014-06-19 14:18 ` Wei Liu
2014-06-18 15:53 ` Ian Campbell
2014-06-18 16:26 ` Dario Faggioli
2014-06-18 16:44 ` Ian Campbell
2014-06-18 17:11 ` Dario Faggioli
2014-06-19 9:07 ` Dario Faggioli
2014-06-18 14:28 ` [PATCH v9 7/9] xl: move the vcpu affinity parsing in a function Dario Faggioli
2014-06-18 15:55 ` Ian Campbell
2014-06-18 14:28 ` [PATCH v9 8/9] libxl/xl: enable for specifying soft-affinity in the config file Dario Faggioli
2014-06-18 16:00 ` Ian Campbell
2014-06-18 17:02 ` Dario Faggioli
2014-06-18 14:28 ` [PATCH v9 9/9] libxl: automatic NUMA placement affects soft affinity Dario Faggioli
2014-06-19 17:33 ` Dario Faggioli
2014-06-19 17:42 ` Wei Liu
2014-06-20 7:18 ` Dario Faggioli
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=1403109160.21681.22.camel@Solace \
--to=dario.faggioli@citrix.com \
--cc=Andrew.Cooper3@citrix.com \
--cc=George.Dunlap@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/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.