Received: from eggs.gnu.org ([2001:4830:134:3::10]:38203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQXYm-0001v0-PH for qemu-devel@nongnu.org; Wed, 25 Feb 2015 03:43:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQXYh-0006Bw-RB for qemu-devel@nongnu.org; Wed, 25 Feb 2015 03:43:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQXYh-0006Br-JU for qemu-devel@nongnu.org; Wed, 25 Feb 2015 03:43:07 -0500 Date: Wed, 25 Feb 2015 09:43:00 +0100 From: Igor Mammedov Message-ID: <20150225094300.09669491@nial.brq.redhat.com> In-Reply-To: <20150224181928.GE31950@thinpad.lan.raisama.net> References: <1423763435-3696-1-git-send-email-ehabkost@redhat.com> <1423763435-3696-5-git-send-email-ehabkost@redhat.com> <20150224090104.38b0e793@nial.brq.redhat.com> <20150224181928.GE31950@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 4/4] numa: Print warning if no node is assigned to a CPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Paolo Bonzini , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Hu Tao On Tue, 24 Feb 2015 15:19:28 -0300 Eduardo Habkost wrote: > On Tue, Feb 24, 2015 at 09:01:04AM +0100, Igor Mammedov wrote: > > On Thu, 12 Feb 2015 15:50:35 -0200 > > Eduardo Habkost wrote: > > > > > Instead of silently assigning CPU to node 0 when it is omitted from the > > > command-line, check if all CPUs up to max_cpus are present in the NUMA > > > configuration. > > That would also trigger warning for possible (i.e. to be hotplugged) CPUs > > as well. > > And that's correct, right? As far as I can see, there's no _PXM method > in our Processor objects, so we need to know the NUMA node for all > possible VCPUs in the moment the SRAT is generated. Or am I missing > something? Yep, that's how it's now. And probably it should stay so. Just define topology at startup and there won't be warnings. > > > [...] > > > + if (!bitmap_full(seen_cpus, max_cpus)) { > > > + char *msg; > > > + bitmap_complement(seen_cpus, seen_cpus, max_cpus); > > > + msg = enumerate_cpus(seen_cpus, max_cpus); > > > + error_report("warning: CPU(s) not present in any NUMA nodes: %s", msg); > > Maybe add to this that all CPUs up to maxcpus must be described in numa config? > > I will update it. Thanks! >