From patchwork Wed Jan 13 14:48:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Goldstein X-Patchwork-Id: 8026271 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7D3D5BEEE5 for ; Wed, 13 Jan 2016 14:52:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A5DC320513 for ; Wed, 13 Jan 2016 14:52:41 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C54DD2050B for ; Wed, 13 Jan 2016 14:52:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aJMjd-00019j-Qk; Wed, 13 Jan 2016 14:49:17 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aJMjc-00019e-Ec for xen-devel@lists.xen.org; Wed, 13 Jan 2016 14:49:16 +0000 Received: from [85.158.137.68] by server-3.bemta-3.messagelabs.com id EA/35-02499-BE366965; Wed, 13 Jan 2016 14:49:15 +0000 X-Env-Sender: cardoe@cardoe.com X-Msg-Ref: server-4.tower-31.messagelabs.com!1452696554!6015789!1 X-Originating-IP: [209.85.160.196] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 35214 invoked from network); 13 Jan 2016 14:49:14 -0000 Received: from mail-yk0-f196.google.com (HELO mail-yk0-f196.google.com) (209.85.160.196) by server-4.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 13 Jan 2016 14:49:14 -0000 Received: by mail-yk0-f196.google.com with SMTP id a85so31291678ykb.2 for ; Wed, 13 Jan 2016 06:49:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cardoe-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=K4EWMZ3WDzm+sGe3R1ByXO3g2u3RUeRhwJQBP5TLHlY=; b=rcZ+LmOmtmPAYkfHoK9QICk8JFCCOLmzN9GshvzV+fIF8HKi/MuFeHjnXRK4lLgAcu C+3gg57FWDBsVgI89agXWMX+YAnW6pnIUyAOFVvmZNnsW8jzFoRMaSYcU0k63RQ0ltQf u+x0SkSrzSUWFdmXh22zyrEisE6Beo3rzEqRGWG5hvOoubWUkxKxHXskn8XE/mLt2feE Vt3Z7Yc5VawDxCHn69W8zO6cpvu0BONHGAw5+wHibmI8tdx7nuildbiMOV1RqDjMnWX1 wKksNnCCL/KiwGLSUPPBZy9pWKXltSIs6ZcbIvAFDyKAEmkFI0gM/Ok0OZCXb/54FqY6 lFEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=K4EWMZ3WDzm+sGe3R1ByXO3g2u3RUeRhwJQBP5TLHlY=; b=dpM5CpaPDcUeJUvsqicWbCwzn+OVIFZRT+SnnLzjrKacXLTUGsGd3j4eSP53uO23M7 QIaTy+cEywlpCnQKuhKi3t5k1v1Qepp1Q8dNq8IIwQCvXBqRw9Z0BPVP/srIWbLi1l9o 4vk7Gllisr3Gx7OPpibfC5PquNMHkUx2rDPuixbUkRJCr5loZlknyffgmAOAcbE6ePMD /v0jrZqi3HnzbIg5y7wCX59VfSFULUE8AhDa10UlKY5AACNdhT1kMtQFEDclvZSFp88A 59cfhfwqKMGz+jRjNtxz/X+lHWJCTN2LEkRKxTkzkHTCG80wnsbdjnELZ3xm0/tp4oXW UORg== X-Gm-Message-State: ALoCoQkG1wvNOr9QABYEL2xAiBGED6imCoJ4T2RVXrrh5i7agj0O6Uz3ajQCr1BAp1eX8ouXnXd32jErF6R/sQCIL+GmRtALAw== X-Received: by 10.129.155.14 with SMTP id s14mr97912424ywg.317.1452696553787; Wed, 13 Jan 2016 06:49:13 -0800 (PST) Received: from swanson.lan (c-68-46-196-185.hsd1.al.comcast.net. [68.46.196.185]) by smtp.gmail.com with ESMTPSA id t125sm965943ywb.47.2016.01.13.06.49.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Jan 2016 06:49:12 -0800 (PST) From: Doug Goldstein To: xen-devel@lists.xen.org Date: Wed, 13 Jan 2016 08:48:59 -0600 Message-Id: <1452696539-31728-1-git-send-email-cardoe@cardoe.com> X-Mailer: git-send-email 2.4.10 In-Reply-To: <5694C97402000078000C5CBD@prv-mh.provo.novell.com> References: <5694C97402000078000C5CBD@prv-mh.provo.novell.com> Cc: Doug Goldstein Subject: [Xen-devel] [PATCH v2 1/2] build: introduce CONFIG_NR_CPUS in Kconfig X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Introduce an option where the user can modifiy the maximum number of supported physical CPUs. Signed-off-by: Doug Goldstein --- xen/arch/Kconfig | 8 ++++++++ xen/arch/arm/Kconfig | 2 ++ xen/arch/x86/Kconfig | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 xen/arch/Kconfig diff --git a/xen/arch/Kconfig b/xen/arch/Kconfig new file mode 100644 index 0000000..cf0acb7 --- /dev/null +++ b/xen/arch/Kconfig @@ -0,0 +1,8 @@ + +config NR_CPUS + int "Maximum number of physical CPUs" + range 1 4095 + default "256" if X86 + default "128" if ARM + ---help--- + Specifies the maximum number of physical CPUs which Xen will support. diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig index 2cab17b..60e923c 100644 --- a/xen/arch/arm/Kconfig +++ b/xen/arch/arm/Kconfig @@ -31,6 +31,8 @@ config ARCH_DEFCONFIG menu "Architecture Features" +source "arch/Kconfig" + # Select HAS_GICV3 if GICv3 is supported config HAS_GICV3 bool diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig index d629767..4781b34 100644 --- a/xen/arch/x86/Kconfig +++ b/xen/arch/x86/Kconfig @@ -25,6 +25,8 @@ config ARCH_DEFCONFIG menu "Architecture Features" +source "arch/Kconfig" + config BIGMEM bool "big memory support" default n