All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: Julien Grall <julien@xen.org>
Cc: scott.davis@starlab.io, christopher.clark@starlab.io,
	sstabellini@kernel.org,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"George Dunlap" <george.dunlap@citrix.com>,
	"Bertrand Marquis" <bertrand.marquis@arm.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	"Daniel P. Smith" <dpsmith@apertussolutions.com>,
	xen-devel@lists.xenproject.org,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Wei Liu" <wl@xen.org>
Subject: Re: [RFC PATCH 1/4] kconfig: allow configuration of maximum modules
Date: Thu, 2 Jun 2022 10:49:11 +0200	[thread overview]
Message-ID: <de93f0f5-374e-6fc8-22c3-70023a7d2f9b@suse.com> (raw)
In-Reply-To: <337d6dbf-e8ee-5de7-a75e-97be815f4467@xen.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



  reply	other threads:[~2022-06-02  8:49 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-31  2:41 [RFC PATCH 0/4] Introducing a common representation of boot info Daniel P. Smith
2022-05-31  2:41 ` [RFC PATCH 1/4] kconfig: allow configuration of maximum modules Daniel P. Smith
2022-05-31  9:07   ` Bertrand Marquis
2022-05-31 10:45     ` Daniel P. Smith
2022-05-31 10:49       ` Bertrand Marquis
2022-05-31 10:56         ` Daniel P. Smith
2022-05-31 13:52       ` Roger Pau Monné
2022-05-31 13:54         ` Jan Beulich
2022-06-01  7:40         ` George Dunlap
2022-06-01  9:06           ` Roger Pau Monné
2022-06-07 11:34             ` Julien Grall
2022-05-31  9:25   ` Julien Grall
2022-05-31 10:53     ` Daniel P. Smith
2022-06-01 17:35       ` Julien Grall
2022-06-02  8:49         ` Jan Beulich [this message]
2022-06-07 11:37           ` Julien Grall
2022-06-03 12:58   ` Jan Beulich
2022-05-31  2:41 ` [RFC PATCH 2/4] headers: introduce generalized boot info Daniel P. Smith
2022-05-31  2:41 ` [RFC PATCH 3/4] x86: adopt new boot info structures Daniel P. Smith
2022-05-31  2:41 ` [RFC PATCH 4/4] x86: refactor entrypoints to new boot info Daniel P. Smith
2022-07-06  7:30 ` [RFC PATCH 0/4] Introducing a common representation of " Henry Wang
2022-07-06  9:01   ` Jan Beulich
2022-07-06  9:28     ` Henry Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=de93f0f5-374e-6fc8-22c3-70023a7d2f9b@suse.com \
    --to=jbeulich@suse.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=bertrand.marquis@arm.com \
    --cc=christopher.clark@starlab.io \
    --cc=dpsmith@apertussolutions.com \
    --cc=george.dunlap@citrix.com \
    --cc=julien@xen.org \
    --cc=roger.pau@citrix.com \
    --cc=scott.davis@starlab.io \
    --cc=sstabellini@kernel.org \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.