From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLwJF-0005dL-8m for qemu-devel@nongnu.org; Sun, 02 Aug 2015 12:40:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLwJC-0001DF-3l for qemu-devel@nongnu.org; Sun, 02 Aug 2015 12:40:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLwJB-0001D9-Um for qemu-devel@nongnu.org; Sun, 02 Aug 2015 12:40:22 -0400 Date: Sun, 2 Aug 2015 18:40:16 +0200 From: Andrew Jones 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-Disposition: inline In-Reply-To: <20150731191712.GI3680@hawk.localdomain> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [kvm-unit-tests PATCH v5 09/11] arm: query /dev/kvm for maximum vcpus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?iso-8859-1?Q?Benn=E9e?= Cc: mttcg@greensocs.com, peter.maydell@linaro.org, Alex =?iso-8859-1?Q?Benn=E9e?= , claudio.fontana@huawei.com, kvm@vger.kernel.org, a.spyridakis@virtualopensystems.com, mark.burton@greensocs.com, a.rigo@virtualopensystems.com, qemu-devel@nongnu.org, fred.konrad@greensocs.com 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 defaul= t > > maximum VCPU configuration is 4 on arm64 machines which typically hav= e > > 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 machi= ne `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/336d87338da86a0e7f2018= a1e509b606b9a2baa2 Thanks, drew