From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxOF4-0001FV-Ht for qemu-devel@nongnu.org; Fri, 03 Aug 2012 16:13:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxOF3-0000P1-LR for qemu-devel@nongnu.org; Fri, 03 Aug 2012 16:13:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxOF3-0000Oo-Dv for qemu-devel@nongnu.org; Fri, 03 Aug 2012 16:13:01 -0400 Date: Fri, 3 Aug 2012 16:56:19 -0300 From: Marcelo Tosatti Message-ID: <20120803195619.GB25688@amt.cnet> References: <1343733497-26977-1-git-send-email-riegamaths@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1343733497-26977-1-git-send-email-riegamaths@gmail.com> Subject: Re: [Qemu-devel] [PATCH v3] kvm: Check if smp_cpus exceeds max cpus supported by kvm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: riegamaths@gmail.com Cc: Peter Maydell , Avi Kivity , qemu-devel , kvm@vger.kernel.org, Stefan Hajnoczi On Tue, Jul 31, 2012 at 07:18:17PM +0800, riegamaths@gmail.com wrote: > From: Dunrong Huang > > Add a helper function for fetching max cpus supported by kvm. > > Make QEMU exit with an error message if smp_cpus exceeds limit > of VCPU count retrieved by invoking this helper function. > > Signed-off-by: Dunrong Huang > --- > v1 -> v2: > * Fix indentation(thanks to Stefan Hajnoczi for his review) > > v2 -> v3(Thanks to Peter Maydell for this hint) > * Add a comment for helper function > * Use "goto err" instead of "exit(1)" > > kvm-all.c | 29 +++++++++++++++++++++++++++++ > 1 files changed, 29 insertions(+), 0 deletions(-) Applied to uq/master, thanks.