From: Dario Faggioli <dario.faggioli@citrix.com>
To: Elena Ufimtseva <ufimtseva@gmail.com>
Cc: Keir Fraser <keir@xen.org>, Li Yechen <lccycc123@gmail.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Matt Wilson <msw@linux.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH RFC v2 1/7] xen/vNUMA: vNUMA support for PV guests.
Date: Tue, 17 Sep 2013 11:04:44 +0200 [thread overview]
Message-ID: <1379408684.32441.82.camel@Abyss> (raw)
In-Reply-To: <CAEr7rXgB6p6CeHdpE6_17mvSSXKFRCT=W7EDvpX3CtLKUpn_4Q@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1794 bytes --]
On mar, 2013-09-17 at 03:19 -0400, Elena Ufimtseva wrote:
> On Tue, Sep 17, 2013 at 3:11 AM, Dario Faggioli
> <dario.faggioli@citrix.com> wrote:
> > On mar, 2013-09-17 at 08:05 +0100, Jan Beulich wrote:
> >> But - all this is only for the internal representations. Anything in
> >> the public interface should be wide enough to allow future
> >> extension.
> >>
> > And, in fact, 'node_to_node_distance' in xen/include/public/sysctl.h
> > (http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/include/public/sysctl.h)
> > is uint32.
> >
>
> Linux has u8 for distance. Ok, thank you for pointing that out.
>
EhEh... So, very hard to be consistent with every actor in the
play! :-)
Anyway, I think the point here is, as Jan was saying, to distinguish
internal representation from interface. Within Xen, we should store
everything in the smallest and nicest possible way (which, BTW, is what
Linux does by using u8 for distances).
OTOH, when it comes to exported interfaces, we should be much more
cautious, since changing the way Xen stores distances internally is
trivial, changing the interface (either API or ABI) could be a
nightmare!
In this case, what we (Xen) tell Linux is the interface, it is up to him
(Linux) to convert that in a way that suits its own internals. In fact,
despite Linux being the only one OS using this interface for now, it's
not wise to design the interface itself specifically for Linux, since
many OSes may want to support it in the future.
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:[~2013-09-17 9:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 8:49 [PATCH RFC v2 1/7] xen/vNUMA: vNUMA support for PV guests Elena Ufimtseva
2013-09-13 9:31 ` Andrew Cooper
2013-09-13 11:53 ` Jan Beulich
2013-09-13 11:00 ` Jan Beulich
2013-09-16 15:46 ` George Dunlap
2013-09-17 6:44 ` Elena Ufimtseva
2013-09-17 6:59 ` Elena Ufimtseva
2013-09-17 7:05 ` Jan Beulich
2013-09-17 7:11 ` Dario Faggioli
2013-09-17 7:19 ` Elena Ufimtseva
2013-09-17 9:04 ` Dario Faggioli [this message]
2013-10-03 12:27 ` Li Yechen
2013-10-03 15:17 ` Dario Faggioli
2013-10-03 15:33 ` Elena Ufimtseva
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=1379408684.32441.82.camel@Abyss \
--to=dario.faggioli@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=lccycc123@gmail.com \
--cc=msw@linux.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=ufimtseva@gmail.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.