All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: "Orzel, Michal" <michal.orzel@amd.com>
Cc: "Stefano Stabellini" <sstabellini@kernel.org>,
	"Julien Grall" <julien@xen.org>,
	"Bertrand Marquis" <bertrand.marquis@arm.com>,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Anthony PERARD" <anthony.perard@vates.tech>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH] device-tree: Move Arm's static-evtchn feature to common
Date: Tue, 3 Jun 2025 09:09:05 +0200	[thread overview]
Message-ID: <93b76d35-7d08-4fc9-890a-4657004f226a@suse.com> (raw)
In-Reply-To: <4a806a75-0a2a-45b9-8811-caa51321a6b8@amd.com>

On 03.06.2025 09:06, Orzel, Michal wrote:
> 
> 
> On 03/06/2025 09:02, Jan Beulich wrote:
>> On 03.06.2025 08:54, Orzel, Michal wrote:
>>>
>>>
>>> On 02/06/2025 10:37, Jan Beulich wrote:
>>>> On 27.05.2025 10:21, Michal Orzel wrote:
>>>>> There's nothing Arm specific about this feature. Move it to common as
>>>>> part of a larger activity to commonalize device tree related features.
>>>>> For now, select it only for ARM until others (e.g. RISC-V) verify it
>>>>> works for them too.
>>>>>
>>>>> Signed-off-by: Michal Orzel <michal.orzel@amd.com>
>>>>
>>>> I realize this was already committed, but ...
>>>>
>>>>> --- a/xen/common/Kconfig
>>>>> +++ b/xen/common/Kconfig
>>>>> @@ -162,6 +162,14 @@ config STATIC_MEMORY
>>>>>  
>>>>>  	  If unsure, say N.
>>>>>  
>>>>> +config STATIC_EVTCHN
>>>>> +	bool "Static event channel support on a dom0less system"
>>>>> +	depends on DOM0LESS_BOOT && ARM
>>>>
>>>> ... I think we should strive to avoid such arch dependencies; they simply
>>>> don't scale very well. Instead (if needed) HAS_* should be introduced, which
>>>> each interested arch can select. In the case here, however, perhaps
>>>> DOM0LESS_BOOT alone would have been sufficient as a dependency?
>>> What if e.g. RISC-V wants to enable dom0less but not static evtchn/memory/shmem
>>> because there are some functions to be implemented and they don't want to do it
>>> now? Protecting with just DOM0LESS_BOOT would not be sufficient here.
>>
>> Imo a transient(!) "depends on !RISCV" would in principle be fine, if ...
> In this case, how can I know that upfront? When moving a feature I need to put
> some dependencies. At that point I don't know RISCV, PPC plans.

You don't need to know this up front, do you? Neither of the two presently selects
DOM0LESS_BOOT afaict, and hence such a transient negative dependency would (if
necessary in the first place) be added when adding such a select.

Jan


  reply	other threads:[~2025-06-03  7:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-27  8:21 [PATCH] device-tree: Move Arm's static-evtchn feature to common Michal Orzel
2025-05-29  1:18 ` Stefano Stabellini
2025-06-02  8:37 ` Jan Beulich
2025-06-03  6:54   ` Orzel, Michal
2025-06-03  7:02     ` Jan Beulich
2025-06-03  7:06       ` Orzel, Michal
2025-06-03  7:09         ` Jan Beulich [this message]
2025-06-03  7:13           ` Orzel, Michal

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=93b76d35-7d08-4fc9-890a-4657004f226a@suse.com \
    --to=jbeulich@suse.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=bertrand.marquis@arm.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.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.