From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNkZm-000747-Ii for qemu-devel@nongnu.org; Thu, 14 Jul 2016 13:37:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNkZi-0001kN-92 for qemu-devel@nongnu.org; Thu, 14 Jul 2016 13:37:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNkZi-0001kJ-3V for qemu-devel@nongnu.org; Thu, 14 Jul 2016 13:37:26 -0400 Date: Thu, 14 Jul 2016 14:37:21 -0300 From: Eduardo Habkost Message-ID: <20160714173721.GY3727@thinpad.lan.raisama.net> References: <1468515285-173356-1-git-send-email-imammedo@redhat.com> <1468515285-173356-3-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1468515285-173356-3-git-send-email-imammedo@redhat.com> Subject: Re: [Qemu-devel] [PATCH v4 02/16] pc: delay setting number of boot CPUs to machine_done time List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, pkrempa@redhat.com, mst@redhat.com, eduardo.otubo@profitbricks.com, Bandan Das On Thu, Jul 14, 2016 at 06:54:31PM +0200, Igor Mammedov wrote: > currently present CPUs counter in CMOS only contains > smp_cpus (i.e. initial CPUs specified with -smp X) and > doesn't account for CPUs created with -device. > If VM is started with additional CPUs added with > -device, it will hang in BIOS waiting for condition > smp_cpus == counted_cpus > forever as counted_cpus will include -device CPUs as well > and be more than smp_cpus. > > make present CPUs counter in CMOS to count all CPUs > (initial and coldplugged with -device) by delaying > it to machine done time when it possible to count > CPUs added with -device. > > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost -- Eduardo