From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH 1/2] build: introduce CONFIG_NR_CPUS in Kconfig Date: Sat, 9 Jan 2016 13:43:58 +0000 Message-ID: <56910E9E.3060806@citrix.com> References: <1452295045-30903-1-git-send-email-cardoe@cardoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1452295045-30903-1-git-send-email-cardoe@cardoe.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Doug Goldstein , xen-devel@lists.xen.org Cc: Keir Fraser , Stefano Stabellini , Ian Campbell , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 08/01/2016 23:17, Doug Goldstein wrote: > 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 4094 Recursive spinlocks have 12 bit bitfield for cpu, using -1 as a sentinel. There might be other restrictions, but none currently come to mind. > + default "256" if X86 > + default "128" if ARM > + ---help--- > + Specifies the maximum number of CPUs which Xen will support. "of physical CPUs" This will help avoid confusion with virtual cpu limits. ~Andrew