From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v5 3/8] sysctl: Make XEN_SYSCTL_topologyinfo sysctl a little more efficient Date: Fri, 20 Mar 2015 14:10:46 +0000 Message-ID: <1426860646.21742.196.camel@citrix.com> References: <1426802044-19444-1-git-send-email-boris.ostrovsky@oracle.com> <1426802044-19444-4-git-send-email-boris.ostrovsky@oracle.com> <1426857900.21742.178.camel@citrix.com> <550C2812.4030707@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <550C2812.4030707@oracle.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: Boris Ostrovsky Cc: elena.ufimtseva@oracle.com, wei.liu2@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, dario.faggioli@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, jbeulich@suse.com, keir@xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2015-03-20 at 10:00 -0400, Boris Ostrovsky wrote: > On 03/20/2015 09:25 AM, Ian Campbell wrote: > > On Thu, 2015-03-19 at 17:53 -0400, Boris Ostrovsky wrote: > > [...] > >> * Replace INVALID_TOPOLOGY_ID with "XEN_"-prefixed macros for each invalid type > >> (core, socket, node). > > But not for distance: > > > >> @@ -1375,7 +1360,7 @@ static PyObject *pyxc_numainfo(XcObject *self) > >> for ( j = 0; j <= max_node_index; j++ ) > >> { > >> uint32_t dist = nodes_dist[i*(max_node_index+1) + j]; > >> - if ( dist == INVALID_TOPOLOGY_ID ) > >> + if ( dist == ~0u ) > > ? > > This patch replaces INVALID_TOPOLOGY_ID with > XEN_INVALID_CORE/SOCKET/NODE_ID for CPU topology. Neither of those would > be appropriate for distance. Right, I was asking for INVALID_DIST, but... [...] > The next patch (4/8) introduces XEN_INVALID_NODE_DIST You already did it! So, Acked-by: Ian Campbell (you may as well mention in the commit log next time too) Ian.