From owner-svn-src-head@freebsd.org Wed Nov 29 23:11:36 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B431DEC7C2; Wed, 29 Nov 2017 23:11:36 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (glebi.us [96.95.210.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebi.us", Issuer "cell.glebi.us" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0217068904; Wed, 29 Nov 2017 23:11:35 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (localhost [127.0.0.1]) by cell.glebi.us (8.15.2/8.15.2) with ESMTPS id vATNBSIX049085 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 29 Nov 2017 15:11:29 -0800 (PST) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebi.us (8.15.2/8.15.2/Submit) id vATNBSe6049084; Wed, 29 Nov 2017 15:11:28 -0800 (PST) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebi.us: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 29 Nov 2017 15:11:28 -0800 From: Gleb Smirnoff To: Nathan Whitehorn Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r326218 - head/sys/kern Message-ID: <20171129231128.GO1063@FreeBSD.org> References: <201711252341.vAPNf5Qx001464@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201711252341.vAPNf5Qx001464@repo.freebsd.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2017 23:11:36 -0000 Hi Nathan, On Sat, Nov 25, 2017 at 11:41:05PM +0000, Nathan Whitehorn wrote: N> Author: nwhitehorn N> Date: Sat Nov 25 23:41:05 2017 N> New Revision: 326218 N> URL: https://svnweb.freebsd.org/changeset/base/326218 N> N> Log: N> Remove some, but not all, assumptions that the BSP is CPU 0 and that CPUs N> are numbered densely from there to n_cpus. I got experimental branch, where counter(9) can be used at very early stages of startup, e.g. at VM initialization. I suspect it would be broken once I merge in your changes. Basically, what I need is that CPU_FOREACH() works before AP startup, with one iteration - the BSP. Now I achieve that with this hack: https://github.com/glebius/FreeBSD/commit/834b857464972b45e659f99fa2dd91e987b17dc9 Can you please suggest a better way to do that? -- Gleb Smirnoff