From patchwork Fri Jan 8 23:17:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Goldstein X-Patchwork-Id: 7991111 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 34E109F6FA for ; Fri, 8 Jan 2016 23:23:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 673CE201EC for ; Fri, 8 Jan 2016 23:23:02 +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 9C9D9201C8 for ; Fri, 8 Jan 2016 23:23:00 +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 1aHgHz-0000Jn-AR; Fri, 08 Jan 2016 23:17:47 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aHgHx-0000Jd-MU for xen-devel@lists.xen.org; Fri, 08 Jan 2016 23:17:45 +0000 Received: from [85.158.137.68] by server-3.bemta-3.messagelabs.com id 29/D4-02499-89340965; Fri, 08 Jan 2016 23:17:44 +0000 X-Env-Sender: cardoe@cardoe.com X-Msg-Ref: server-7.tower-31.messagelabs.com!1452295061!7281275!1 X-Originating-IP: [209.85.160.177] 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 36472 invoked from network); 8 Jan 2016 23:17:42 -0000 Received: from mail-yk0-f177.google.com (HELO mail-yk0-f177.google.com) (209.85.160.177) by server-7.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 8 Jan 2016 23:17:42 -0000 Received: by mail-yk0-f177.google.com with SMTP id k129so356633592yke.0 for ; Fri, 08 Jan 2016 15:17:42 -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; bh=AIb+YkdbLlkhnM4fwPRM7bGrNCIiF4pR/bYG1Xu8gHE=; b=j4W5crVORd8R0Bv6c2AyKEWsyGxuFxwv+z0QRiYDLUiMukg7DefD3LZ4hr4WCtlB9p dPLeH1S7OpDcLXNpmSdbXqmFEwQQ+zOZmDFHDL6SZ54qTKZAzqwppseFTd5RYfK8QE3L X+4we3R+ygxI4Bprvnmyt9L0brc71GceeeyxjKeVgGHZXitSCUH92aQwKMAKfxediJpx HAF0W99L4unJESeIwivhjhDg7wcdfqQMUfIuGRuZRGjpR/41R7+COQQg4hqMLlwCTrSG SKeDG9ivKLaXoIKBsaaCrcKlB669CS9sOnCideFqzvK6JXy6TlKBi21ZJWJ2qu5sLHYk UoPA== 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; bh=AIb+YkdbLlkhnM4fwPRM7bGrNCIiF4pR/bYG1Xu8gHE=; b=T3tXClRpEwGcXOhzho6WZgwTIq+XPYkWdIW3hRRWWyKIQWCVNRnnHhQG4j5Y9Je+V7 0dOk6DQGz9IWMOUbz86niF0EMC4UeMtKPdZP61F7SibzUb2hXtkWINmaJBNkbwKmDKch rq2grSZQSnQ+N3h8wTfSBFxjNKxbhogc1HCt7QE8GY0lxXqe3UivEy12aS/N7XnQwGa0 jjvwSF0Qmtn9bGKbZPHNzWNntCLKnadDq/sv1ubX2/gr+LJo5XQ8sCxyxY9w1KCr3ZvE eSXztSZCleV4QNxGIq/YFUexrf1Jbv4+PfyhvodZlglsNkYORxR+oaEUaLWmvqzFNJhE 7ZLA== X-Gm-Message-State: ALoCoQlb6n6mrrMVyMnpDYgXndgaTOhR3qsBskx1zHLoVBad5Ul2ji+KxEr6vQVi01cntBppZBO3AzEaMaWEzn0pae4nrhxF3A== X-Received: by 10.13.232.83 with SMTP id r80mr82665867ywe.237.1452295061131; Fri, 08 Jan 2016 15:17:41 -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 i204sm89926221ywb.9.2016.01.08.15.17.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Jan 2016 15:17:39 -0800 (PST) From: Doug Goldstein To: xen-devel@lists.xen.org Date: Fri, 8 Jan 2016 17:17:24 -0600 Message-Id: <1452295045-30903-1-git-send-email-cardoe@cardoe.com> X-Mailer: git-send-email 2.4.10 Cc: Keir Fraser , Ian Campbell , Andrew Cooper , Doug Goldstein , Stefano Stabellini , Jan Beulich Subject: [Xen-devel] [PATCH 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=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID,UNPARSEABLE_RELAY,URIBL_BLACK 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. CC: Ian Campbell CC: Stefano Stabellini CC: Keir Fraser CC: Jan Beulich CC: Andrew Cooper Signed-off-by: Doug Goldstein --- This patch can probably be squashed together with the next one but I broke it out with the hope that someone can check the wording on the option and also double check the range. --- 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..791d577 --- /dev/null +++ b/xen/arch/Kconfig @@ -0,0 +1,8 @@ + +config NR_CPUS + int "Maximum number of CPUs" + range 1 4095 + default "256" if X86 + default "128" if ARM + ---help--- + Specifies the maximum number of 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 7d2ed96..e1c03bb 100644 --- a/xen/arch/x86/Kconfig +++ b/xen/arch/x86/Kconfig @@ -25,6 +25,8 @@ config ARCH_DEFCONFIG menu "Architecture Features" +source "arch/Kconfig" + endmenu source "common/Kconfig"