From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v5 4/8] sysctl: Make XEN_SYSCTL_numainfo a little more efficient Date: Fri, 20 Mar 2015 13:26:22 +0000 Message-ID: <1426857982.21742.179.camel@citrix.com> References: <1426802044-19444-1-git-send-email-boris.ostrovsky@oracle.com> <1426802044-19444-5-git-send-email-boris.ostrovsky@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1426802044-19444-5-git-send-email-boris.ostrovsky@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 Thu, 2015-03-19 at 17:54 -0400, Boris Ostrovsky wrote: > A number of changes to XEN_SYSCTL_numainfo interface: > > * Make sysctl NUMA topology query use fewer copies by combining some > fields into a single structure and copying distances for each node > in a single copy. > * NULL meminfo and distance handles are a request for maximum number > of nodes (num_nodes). If those handles are valid and num_nodes is > is smaller than the number of nodes in the system then -ENOBUFS is > returned (and correct num_nodes is provided) > * Instead of using max_node_index for passing number of nodes keep this > value in num_nodes: almost all uses of max_node_index required adding > or subtracting one to eventually get to number of nodes anyway. > * Replace INVALID_NUMAINFO_ID with XEN_INVALID_MEM_SZ and add > XEN_INVALID_NODE_DIST. > > Signed-off-by: Boris Ostrovsky Acked-by: Ian Campbell