From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vkn1P-00052x-JY for qemu-devel@nongnu.org; Sun, 24 Nov 2013 22:39:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vkn1G-0005LP-DC for qemu-devel@nongnu.org; Sun, 24 Nov 2013 22:39:39 -0500 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:34001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vkn1F-0005Ju-G5 for qemu-devel@nongnu.org; Sun, 24 Nov 2013 22:39:30 -0500 Received: from /spool/local by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 25 Nov 2013 13:39:16 +1000 From: Alexey Kardashevskiy Date: Mon, 25 Nov 2013 14:39:10 +1100 Message-Id: <1385350750-21468-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH] vl: remove (max_cpus > 255) check from smp_parse List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , qemu-trivial@nongnu.org Since modern POWER7/POWER8 chips can have more that 256 CPU threads (>2000 actually), remove this check from smp_parse. The CPUs number is still checked against machine->max_cpus and this check should be enough not to break other archs. Signed-off-by: Alexey Kardashevskiy --- vl.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vl.c b/vl.c index 8d5d874..e6ed260 100644 --- a/vl.c +++ b/vl.c @@ -1420,10 +1420,6 @@ static void smp_parse(QemuOpts *opts) max_cpus = smp_cpus; } - if (max_cpus > 255) { - fprintf(stderr, "Unsupported number of maxcpus\n"); - exit(1); - } if (max_cpus < smp_cpus) { fprintf(stderr, "maxcpus must be equal to or greater than smp\n"); exit(1); -- 1.8.4.rc4