[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 1/4] kconfig: allow configuration of maximum modules


  • To: Julien Grall <julien@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 2 Jun 2022 10:49:11 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Lw5SxRxEO65t+yhs01ufb5vk+O5Mr3rvHtFxBuNUXNw=; b=S9SQzF0JOhgZAqrW1TIKdPTJ/SOavvLebTc8W01VuHXvDjBplAfAD2j7k7AHPNw86kF80oCKh/zspS7XAdcbQJHLJcTPuAcfAjsr1ybMbxpWe/KF1g494w//v1cLnnvIAdNCYJd677FSmjUeAjIO9X8ivrbqXTuNZbaZ54OQ6KAiMB1N/U8hz18lyTNLYr1O7FDkoGxjmRJS2MjTZWkVLxmA0V24S/oVPluXDn31Ivm/dJMfbO2GUFr2XDa9PYj8mApGBJCpzfqwwQl14tQurTp5ws83JRjUVX9JXDleK3CDzKmxlcGq5nV2afxr4eXuYTRC7bmPIbnpP1wl31XTmA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nbcmo+bY1P16pyWA0Lof8COFmZla9sRetd1PaKVCVxOBNmVjJXktyp/hdsJ7qY6UWEELTKkefkseKodTRwygENpLH+ul6nwYFhmJSBHOO3v96m98lEHsh080/1rDdkHzp0FoggPjV2PTmYMkSDlYwtMxUSyDkHn3T+nD3k+iwt1JeMQvIL6SUtD0b1uSolnvYNzoVoEaGqmwDHxzxVqOKnT45O6n+oDDTeHi1bBNVMBRgD+/3n3w0WQwDxvvpob/8l38cxp7hXVHe4N4v9bf89oO1wBGavpJDzNwl955Str8SRNMLOUr87bAjhg1pBv3QUKFKtZ531ysq2lbxXD3Fw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: scott.davis@xxxxxxxxxx, christopher.clark@xxxxxxxxxx, sstabellini@xxxxxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Thu, 02 Jun 2022 08:49:23 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 01.06.2022 19:35, Julien Grall wrote:
> 
> 
> On 31/05/2022 11:53, Daniel P. Smith wrote:
>> On 5/31/22 05:25, Julien Grall wrote:
>>> Hi,
>>>
>>> On 31/05/2022 03:41, Daniel P. Smith wrote:
>>>> diff --git a/xen/arch/Kconfig b/xen/arch/Kconfig
>>>> index f16eb0df43..57b14e22c9 100644
>>>> --- a/xen/arch/Kconfig
>>>> +++ b/xen/arch/Kconfig
>>>> @@ -17,3 +17,15 @@ config NR_CPUS
>>>>          For CPU cores which support Simultaneous Multi-Threading or
>>>> similar
>>>>          technologies, this the number of logical threads which Xen will
>>>>          support.
>>>> +
>>>> +config NR_BOOTMODS
>>>> +    int "Maximum number of boot modules that a loader can pass"
>>>> +    range 1 64
>>>
>>> OOI, any reason to limit the size?
>>
>> I modelled this entirely after NR_CPUS, which applied a limit
> 
> The limit for NR_CPUS makes sense because there are scalability issues 
> after that (although 4095 seems quite high) and/or the HW impose a limit.

The 4095 is actually a software limit (due to how spinlocks are
implemented).

>> , and it
>> seemed reasonable to me at the time. I choose 64 since it was double
>> currently what Arm had set for MAX_MODULES. As such, I have no hard
>> reason for there to be a limit. It can easily be removed or adjusted to
>> whatever the reviewers feel would be appropriate.
> 
> Ok. In which case I would drop the limit beause it also prevent a users 
> to create more 64 dom0less domUs (actually a bit less because some 
> modules are used by Xen). I don't think there are a strong reason to 
> prevent that, right?

At least as per the kconfig language doc the upper bound is not
optional, so if a range is specified (which I think it should be,
to enforce the lower limit of 1) and upper bound is needed. To
address your concern with dom0less - 32768 maybe?

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.