From patchwork Tue Oct 4 00:33:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kardashevskiy X-Patchwork-Id: 677884 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sp0K34dXkz9sCZ for ; Tue, 4 Oct 2016 11:33:58 +1100 (AEDT) Received: from localhost ([::1]:39606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brDg9-0007iv-Eh for incoming@patchwork.ozlabs.org; Mon, 03 Oct 2016 20:33:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brDfU-0007RQ-HG for qemu-devel@nongnu.org; Mon, 03 Oct 2016 20:33:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brDfQ-00048e-7l for qemu-devel@nongnu.org; Mon, 03 Oct 2016 20:33:11 -0400 Received: from ozlabs.ru ([83.169.36.222]:43571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brDfQ-00047Q-16 for qemu-devel@nongnu.org; Mon, 03 Oct 2016 20:33:08 -0400 Received: from vpl2.ozlabs.ibm.com (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id A9D6F1200F3; Tue, 4 Oct 2016 02:33:03 +0200 (CEST) From: Alexey Kardashevskiy To: qemu-devel@nongnu.org Date: Tue, 4 Oct 2016 11:33:00 +1100 Message-Id: <1475541180-16363-1-git-send-email-aik@ozlabs.ru> X-Mailer: git-send-email 2.5.0.rc3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 83.169.36.222 Subject: [Qemu-devel] [PATCH qemu] sysemu: support up to 1024 vCPUs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Kardashevskiy , Greg Kurz , David Gibson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Greg Kurz Some systems can already provide more than 255 hardware threads. Bumping the QEMU limit to 1024 seems reasonable: - it has no visible overhead in top; - the limit itself has no effect on hot paths. Signed-off-by: Greg Kurz Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson --- include/sysemu/sysemu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index ef2c50b..2ec0bd8 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -173,7 +173,7 @@ extern int mem_prealloc; * * Note that cpu->get_arch_id() may be larger than MAX_CPUMASK_BITS. */ -#define MAX_CPUMASK_BITS 255 +#define MAX_CPUMASK_BITS 1024 #define MAX_OPTION_ROMS 16 typedef struct QEMUOptionRom {