From: Wei Liu Subject: Re: [PATCH v6 02/23] xen: move NUMA_NO_NODE to public memory.h as XEN_NUMA_NO_NODE Date: Mon, 2 Mar 2015 16:08:32 +0000 Message-ID: <20150302160832.GM11855@zion.uk.xensource.com> References: <1424966166-2388-1-git-send-email-wei.liu2@citrix.com> <1424966166-2388-3-git-send-email-wei.liu2@citrix.com> <54F0AC920200007800064BFB@mail.emea.novell.com> <20150227165139.GF29195@zion.uk.xensource.com> <54F0A0DA.8020809@citrix.com> <54F40B7E02000078000C9AE2@mail.emea.novell.com> <1425310221.21151.87.camel@citrix.com> <20150302153814.GJ11855@zion.uk.xensource.com> <54F495190200007800065383@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <54F495190200007800065383@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: andrew.cooper3@citrix.com, Wei Liu , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, Mar 02, 2015 at 03:51:37PM +0000, Jan Beulich wrote: > >>> On 02.03.15 at 16:38, wrote: > > On Mon, Mar 02, 2015 at 03:30:21PM +0000, Ian Campbell wrote: > >> On Mon, 2015-03-02 at 07:04 +0000, Jan Beulich wrote: > >> > >>> Andrew Cooper 02/27/15 5:58 PM >>> > >> > >On 27/02/15 16:51, Wei Liu wrote: > >> > >> During last round review, Andrew wanted me to move this to Xen public > >> > >> header to avoid reinventing it in libxc. Now this value is used in libxc > >> > >> patch. > >> > >> > >> > >> But I don't particularly mind whether we move it or not, it's up to you > >> > >> maintainers to decide. > >> > > > >> > >It is a sentinel value used in the public ABI. It should therefore > >> > >appear in the public API. > >> > > >> > Which it already does, as XENMEMF_get_node(0). I don't think it needs > >> > particular naming as a new constant, even more that it isn't intended to > >> > be used explicitly in any of the memops. > >> > >> IMHO the named constant does seem to make the tools code at least more > >> readable, but without Wei having said where this is to be used I'm not > >> sure where it should live. In particular I'm unsure if/how/where this > >> value gets passed to a hypercall, as opposed to perhaps being used as a > > > > This is used to fill in vnode_to_pnode array. That array get > > subsequently passed down to hypervisor. > > Do we really accept NUMA_NO_NODE to be passed that way? > public/domctl.h:struct xen_domctl_vnuma has vnode_to_pnode array. Wei. > Jan