From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: Re: [Qemu-devel] [kvm-unit-tests PATCH v5 09/11] arm: query /dev/kvm for maximum vcpus Date: Sun, 2 Aug 2015 18:40:16 +0200 Message-ID: <20150802164016.GC3441@hawk.localdomain> References: <1438358041-18021-1-git-send-email-alex.bennee@linaro.org> <1438358041-18021-10-git-send-email-alex.bennee@linaro.org> <20150731191712.GI3680@hawk.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: mttcg@greensocs.com, mark.burton@greensocs.com, fred.konrad@greensocs.com, peter.maydell@linaro.org, Alex =?iso-8859-1?Q?Benn=E9e?= , kvm@vger.kernel.org, a.spyridakis@virtualopensystems.com, claudio.fontana@huawei.com, a.rigo@virtualopensystems.com, qemu-devel@nongnu.org To: Alex =?iso-8859-1?Q?Benn=E9e?= Return-path: Received: from mx1.redhat.com ([209.132.183.28]:53735 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605AbbHBQkV (ORCPT ); Sun, 2 Aug 2015 12:40:21 -0400 Content-Disposition: inline In-Reply-To: <20150731191712.GI3680@hawk.localdomain> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Jul 31, 2015 at 09:17:12PM +0200, Andrew Jones wrote: > On Fri, Jul 31, 2015 at 04:53:59PM +0100, Alex Benn=E9e wrote: > > From: Alex Benn=E9e > >=20 > > The previous $(getconf _NPROCESSORS_CONF) isn't correct as the defa= ult > > maximum VCPU configuration is 4 on arm64 machines which typically h= ave > > more actual cores. >=20 > The kernel should probably bump that up to 8, but that's an aside, > as it wouldn't resolve the general issue. >=20 > For this patch, I don't think we need a C utility as we can probe > with QEMU, and thus just need a script. >=20 > $QEMU -machine virt,accel=3Dkvm -smp 9 > Number of SMP cpus requested (9), exceeds max cpus supported by mac= hine `virt' (8) >=20 > The script can live in $root/scripts/, which is a directory recently > created for standalone test support. I decided to take a stab at this and came up with https://github.com/rhdrjones/kvm-unit-tests/commit/336d87338da86a0e7f20= 18a1e509b606b9a2baa2 Thanks, drew