From: "Jan Beulich" Subject: Re: [PATCH v6 02/23] xen: move NUMA_NO_NODE to public memory.h as XEN_NUMA_NO_NODE Date: Tue, 03 Mar 2015 07:44:25 +0000 Message-ID: <54F574690200007800065785@mail.emea.novell.com> References: <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> <20150302160832.GM11855@zion.uk.xensource.com> <54F49D7D020000780006540C@mail.emea.novell.com> <20150302163918.GP11855@zion.uk.xensource.com> <54F4A2F80200007800065471@mail.emea.novell.com> <20150302170056.GQ11855@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150302170056.GQ11855@zion.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: andrew.cooper3@citrix.com, Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 02.03.15 at 18:00, wrote: > There are two issues here irrespective of this series: > > 1. should we expose that sentinel in ABI? > 2. if so, what should the sentinel be? > > I think Andrew and you disagree on the first one. We can work out the > answer to the second question later. I very much think that if we want to allow a "no node" specification via the domctl, then this should be part of the ABI. But that value and its (implicit) equivalent used for memops don't need to be the same, and it looks like they can't. And looking at this I think the code we have right now needs fixing: The internal vnode_to_pnode array should become nodeid_t[], and input from the domctl should be validated to either be a valid pnode or the to be defined sentinel (which then, due to being stored as a more narrow type, needs translation to NUMA_NO_NODE). If we don't want to allow "no node", then input should be validated to present valid pnodes. Jan