From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH v3] kvm: Check if smp_cpus exceeds max cpus supported by kvm Date: Fri, 3 Aug 2012 16:56:19 -0300 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 Cc: qemu-devel , Stefan Hajnoczi , Avi Kivity , kvm@vger.kernel.org, Peter Maydell To: riegamaths@gmail.com Return-path: Received: from mx1.redhat.com ([209.132.183.28]:28667 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754018Ab2HCUNB (ORCPT ); Fri, 3 Aug 2012 16:13:01 -0400 Content-Disposition: inline In-Reply-To: <1343733497-26977-1-git-send-email-riegamaths@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: 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.