All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: ian.jackson@eu.citrix.com, Wei Liu <wei.liu2@citrix.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH v6 03/18] xl / libxl: push VCPU affinity pinning down to libxl
Date: Tue, 10 Jun 2014 15:09:51 +0200	[thread overview]
Message-ID: <1402405791.16827.29.camel@Solace> (raw)
In-Reply-To: <1402405301.1250.107.camel@kazak.uk.xensource.com>


[-- Attachment #1.1: Type: text/plain, Size: 2690 bytes --]

On mar, 2014-06-10 at 14:01 +0100, Ian Campbell wrote:
> On Tue, 2014-06-10 at 09:09 +0100, Wei Liu wrote:
> > On Tue, Jun 10, 2014 at 08:59:06AM +0200, Dario Faggioli wrote:
> > > On Mon, 2014-06-09 at 13:43 +0100, Wei Liu wrote:
> > > > This patch introduces an array of libxl_bitmap called "vcpu_affinity" in
> > > > libxl IDL to preserve VCPU to PCPU mapping. This is necessary for libxl
> > > > to preserve all information to construct a domain.
> > > > 
> > > > Also define LIBXL_HAVE_AFFINITY_LIST in libxl.h to mark the change in
> > > > API.
> > > > 
> > > > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> > > > Cc: Dario Faggioli <dario.faggioli@citrix.com>
> > > >
> > > So, as far as this patch is concerned:
> > > 
> > > Acked-by: Dario Faggioli <dario.faggioli@citrix.com>
> > > 
> > > This clashes (not that badly, but it does) with my soft affinity series,
> > > that I just resent yesterday night. It's not a big deal, we just need
> > > two arrays of libxl_bitmap-s instead of just one: one for hard affinity,
> > > and one for soft affinity. Probably that also means that
> > > b_info->vcpu_affinity should have to be renamed to something like
> > > b_info->vcpu_hard_affinity (or b_info->vcpu_hard_aff, or
> > > b_info->hard_affinity, if we want to try keep it a bit shorter).
> > > 
> > 
> > I would go for vcpu_hard_affinity. When it comes to interface I prefer
> > it to be as explicit as possible.
> 
> Renaming fields in the API is problematic, so we should make this be
> correct when we first check it in, whichever order that is in.
> 
Good point.

Well, I may be wrong, but it looks to me that the more logical order
would be for Wei's series to go in first, and me to rebase mine on top
of that. If we do it the other way around, Wei's would have to call the
field vcpu_hard_affinity, without the distinction between hard and soft
affinity being present and explained anywhere in the tree.

Not a big deal, probably, if my series follows quickly enough, but
cetainly confusing for future archaeologists, I guess. :-)

This assuming both the series to be pretty, and almost equally, close to
green light.

In an case, it would still be useful for me to have the current version
(v7) of the soft affinity series reviewed, so that I'll know whether
such rebasing is the only thing I should change in v8. :-)

Let me know what you prefer.

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

  reply	other threads:[~2014-06-10 13:09 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09 12:43 [PATCH v6 00/18] libxl: JSON infrastructure, fixes and prerequisite patches for new API Wei Liu
2014-06-09 12:43 ` [PATCH v6 01/18] libxl: make cpupool_qualifier_to_cpupoolid a library function Wei Liu
2014-06-09 12:43 ` [PATCH v6 02/18] xl / libxl: push parsing of SSID and CPU pool ID down to libxl Wei Liu
2014-06-10 12:57   ` Ian Campbell
2014-06-10 14:16     ` Wei Liu
2014-06-09 12:43 ` [PATCH v6 03/18] xl / libxl: push VCPU affinity pinning " Wei Liu
2014-06-09 12:53   ` Wei Liu
2014-06-10  6:59   ` Dario Faggioli
2014-06-10  8:09     ` Wei Liu
2014-06-10 13:01       ` Ian Campbell
2014-06-10 13:09         ` Dario Faggioli [this message]
2014-06-10 13:46           ` Wei Liu
2014-06-10 14:01   ` Ian Campbell
2014-06-10 14:06     ` Wei Liu
2014-06-10 15:59       ` Dario Faggioli
2014-06-09 12:43 ` [PATCH v6 04/18] libxl: libxl_uuid_copy now takes a ctx argument Wei Liu
2014-06-10 13:05   ` Ian Campbell
2014-06-10 13:55     ` Wei Liu
2014-06-09 12:43 ` [PATCH v6 05/18] xl: remove parsing of "vncviewer" option in xl domain config file Wei Liu
2014-06-09 12:43 ` [PATCH v6 06/18] libxl: fix JSON generator for uint64_t Wei Liu
2014-06-09 12:43 ` [PATCH v6 07/18] libxl IDL: rename json_fn to json_gen_fn Wei Liu
2014-06-09 12:43 ` [PATCH v6 08/18] libxl_json: introduce libxl__object_from_json Wei Liu
2014-06-09 12:43 ` [PATCH v6 09/18] libxl_json: introduce parser functions for builtin types Wei Liu
2014-06-09 12:43 ` [PATCH v6 10/18] libxl/gentypes.py: special-case KeyedUnion map handle generation Wei Liu
2014-06-09 12:43 ` [PATCH v6 11/18] libxl/gentypes.py: don't generate default values Wei Liu
2014-06-10 13:25   ` Ian Campbell
2014-06-10 13:43     ` Wei Liu
2014-06-10 14:31       ` Wei Liu
2014-06-10 14:56       ` Ian Campbell
2014-06-10 15:49         ` Wei Liu
2014-06-10 15:54           ` Ian Campbell
2014-06-10 15:59             ` Wei Liu
2014-06-09 12:43 ` [PATCH v6 12/18] libxl IDL: generate code to parse libxl__json_object to libxl_FOO struct Wei Liu
2014-06-10 13:32   ` Ian Campbell
2014-06-09 12:43 ` [PATCH v6 13/18] libxl/gentest.py: test JSON parser Wei Liu
2014-06-09 12:43 ` [PATCH v6 14/18] libxl: introduce libxl_key_value_list_length Wei Liu
2014-06-09 12:43 ` [PATCH v6 15/18] libxl: introduce libxl_cpuid_policy_list_length Wei Liu
2014-06-09 12:43 ` [PATCH v6 16/18] libxl: copy function for builtin types Wei Liu
2014-06-09 12:43 ` [PATCH v6 17/18] libxl IDL: generate deep copy functions Wei Liu
2014-06-09 12:43 ` [PATCH v6 18/18] libxl/gentest.py: test " Wei Liu
2014-06-10 14:14 ` [PATCH v6 00/18] libxl: JSON infrastructure, fixes and prerequisite patches for new API Ian Campbell
2014-06-10 20:10   ` Boris Ostrovsky
2014-06-10 20:51     ` Boris Ostrovsky
2014-06-10 21:21       ` Wei Liu
2014-06-10 21:38         ` Boris Ostrovsky
2014-06-10 21:42           ` Wei Liu
2014-06-11  8:47         ` Ian Campbell
2014-06-11  8:53           ` Wei Liu

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=1402405791.16827.29.camel@Solace \
    --to=dario.faggioli@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=ian.jackson@eu.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.