Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756556Ab3INMWY (ORCPT ); Sat, 14 Sep 2013 08:22:24 -0400 Received: from inca-roads.misterjones.org ([213.251.177.50]:50638 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752746Ab3INMWX (ORCPT ); Sat, 14 Sep 2013 08:22:23 -0400 To: Alexander Graf Subject: Re: [PATCH 1/3] arm: kvm: clamp =?UTF-8?Q?NR=5FVCPUS=20to=20MAX?= =?UTF-8?Q?=5FVCPUS?= X-PHP-Originating-Script: 0:main.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 14 Sep 2013 13:22:16 +0100 From: Marc Zyngier Cc: Andrew Jones , , , , , , , , Organization: ARM Ltd In-Reply-To: References: <1379160656-28050-1-git-send-email-drjones@redhat.com> <1379160656-28050-2-git-send-email-drjones@redhat.com> Message-ID: <8f88d4700b5f84c6fb92a0fa1dff6314@www.loen.fr> User-Agent: Roundcube Webmail/0.7.2 X-SA-Exim-Connect-IP: X-SA-Exim-Rcpt-To: agraf@suse.de, drjones@redhat.com, linux@arm.linux.org.uk, kvm@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, pbonzini@redhat.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: marc.zyngier@arm.com X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1093 Lines: 32 On 2013-09-14 13:14, Alexander Graf wrote: > Am 14.09.2013 um 07:10 schrieb Andrew Jones : > >> Signed-off-by: Andrew Jones >> --- >> arch/arm/kvm/arm.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c >> index 741f66a2edbd7..9ebf8ac3a12ff 100644 >> --- a/arch/arm/kvm/arm.c >> +++ b/arch/arm/kvm/arm.c >> @@ -201,7 +201,7 @@ int kvm_dev_ioctl_check_extension(long ext) >> r = 1; >> break; >> case KVM_CAP_NR_VCPUS: >> - r = num_online_cpus(); >> + r = min(num_online_cpus(), KVM_MAX_VCPUS); > > Is there any real reason to prohibit overcommit? I don't think this affects overcommit. This is the "recommended" limit, and you can still go up to KVM_MAX_CPUS. M. -- Fast, cheap, reliable. Pick two. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/