From patchwork Mon Jan 11 22:02:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Goldstein X-Patchwork-Id: 8012201 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 048F8BEEED for ; Mon, 11 Jan 2016 22:05:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 37373201D3 for ; Mon, 11 Jan 2016 22:05:58 +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 5181A201C7 for ; Mon, 11 Jan 2016 22:05:57 +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 1aIkXo-00059g-9O; Mon, 11 Jan 2016 22:02:32 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aIkXm-000595-02 for xen-devel@lists.xen.org; Mon, 11 Jan 2016 22:02:30 +0000 Received: from [85.158.137.68] by server-14.bemta-3.messagelabs.com id A0/56-02975-57624965; Mon, 11 Jan 2016 22:02:29 +0000 X-Env-Sender: cardoe@cardoe.com X-Msg-Ref: server-6.tower-31.messagelabs.com!1452549747!15189467!1 X-Originating-IP: [209.85.160.193] 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 46097 invoked from network); 11 Jan 2016 22:02:28 -0000 Received: from mail-yk0-f193.google.com (HELO mail-yk0-f193.google.com) (209.85.160.193) by server-6.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 11 Jan 2016 22:02:28 -0000 Received: by mail-yk0-f193.google.com with SMTP id y10so26341502ykf.0 for ; Mon, 11 Jan 2016 14:02:28 -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=e8SnJg7S6k7RxB1SDh2GfDmJSjzdW4ifnLmSGxuORLc=; b=h1A+Xl8x8vONGqn9kRIb/PT7r9UOGRJL3ZntqOTsq4qPqG7g4XdkQ/vaBGcdBsCOpl KmEEYyZRghfkbhtWcK3pFlKS1ujpNDYNM0YvHYZLyMb9g6c6er7ndw4sN/hUFKQvCmc1 Jkkl5f7fiPNjXvFBkB9TDNA/MRqDUpsCK9VAwwRh07awA7UK1TPoP7QMmzajP5Rx8ojC H/n+RsUoJuLOHoSfcEsgvhOD6UmpAtWU5oFXGcjT67slFjtmzRLGIKgm7kNaTqSmb4MT YmtHDGVUSh+fvkW3ndcRkZRB+5b9Tlx91dOoguaoGePjQ6S24sZRgdQwEr9zrmNV7XGt L9yg== 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=e8SnJg7S6k7RxB1SDh2GfDmJSjzdW4ifnLmSGxuORLc=; b=bzFh5V5WCX8rhJIfM4j7ytKj9WzG66epd5q8ou8Yswdm4LsKVpTT4nMrQg/e76EWYS kuguXGuJNI0h5vUsi8C2APi4N9aHttEpjeDbhbl109H17/b4avjMYFAY4UPJAV4sXNe+ jZxv2KesV04rNr2P3WpVmS9kl0PZtmQAVt88I0JLb+DGDk0oUDwzmwaYxf6nJStjLzk0 fyuBE2MpLmXMHYlNcJnFMaCO4nGG2bG4HKV80fyFNOsuv8cGokLxHobr2TI4+X634hgT MOUMSvlaIgnFz8uOSTT7eHXMzvG1iQucBGmm93dB7HPzxDtCT1A2qEYkqLIKOxMbbV18 jpBQ== X-Gm-Message-State: ALoCoQmF7KL1wucnpGfFpeiFPntNp8ECMGuk9U1vsQDfIm4fSk1l5NPHoA7l+dVDsv3m8XT1CkktYGwwx6OQ7JQiV/uwf/7oRA== X-Received: by 10.129.82.88 with SMTP id g85mr104983691ywb.212.1452549747225; Mon, 11 Jan 2016 14:02:27 -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 j82sm80102297ywg.36.2016.01.11.14.02.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Jan 2016 14:02:26 -0800 (PST) From: Doug Goldstein To: xen-devel@lists.xen.org Date: Mon, 11 Jan 2016 16:02:12 -0600 Message-Id: <1452549733-13401-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 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. CC: Ian Campbell CC: Stefano Stabellini CC: Keir Fraser CC: Jan Beulich CC: Andrew Cooper 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..aacd73c --- /dev/null +++ b/xen/arch/Kconfig @@ -0,0 +1,8 @@ + +config NR_CPUS + int "Maximum number of physical CPUs" + range 1 65536 + 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 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"