Received: from eggs.gnu.org ([2001:4830:134:3::10]:41005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQKGo-0005it-C9 for qemu-devel@nongnu.org; Tue, 24 Feb 2015 13:31:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQKGj-0000sS-5X for qemu-devel@nongnu.org; Tue, 24 Feb 2015 13:31:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQKGi-0000sJ-V5 for qemu-devel@nongnu.org; Tue, 24 Feb 2015 13:31:41 -0500 Date: Tue, 24 Feb 2015 15:19:28 -0300 From: Eduardo Habkost Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150224090104.38b0e793@nial.brq.redhat.com> 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: Igor Mammedov Cc: Paolo Bonzini , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Hu Tao 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? [...] > > + 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! -- Eduardo