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

Re: [PATCH] device-tree: Move Arm's static-evtchn feature to common


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Tue, 3 Jun 2025 09:13:55 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=dvMQuWfpbG92+tRN/IWHo3py3BV7yqLkf6Wu/nxGDLQ=; b=Y9PEwAI+mQuxOU6MyNeLXfsHU+Jp/SyC2qWHjXSPLyumP4gFO7ltjzNUpioj7IWpV3iwKROJPeI/qjcjjKqildZjiI5ydj7OiExu8KwSJDWns2cWIM995PFyhXQYfMCbQf5ebxVqqbKBgRExCITBxIZtnY5nDB71+kTxl8MFwJOSirBq56EBTk8eKnD9auvXqX1npQ+oxUKR/qvO8BDxpTI/Uyu0RXqC69iL2eH0xEqcs0bimir2IzBndBJV/uciWoXoN6/zddjSAEzWkvgW0ktofnKdC1PwU4jO6Ld2mg7Cu/NG97e74fnVqzai3LAyT9UN/Cqto1VGOWeyIOF3fw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eDSJjRwsNQ7RcVKpq0dJWxBTqzVNf7YadH+xmy5WdPSDMvy4UqAv62x+11yPMpvf4u/rCD+3Jm8Qk6afX/0+JKl+SKCvVP2sT33HTjf0F2UETSDXBd4yQ8qDWdV2TV4ZSDeC6PBNPBsKz/m23k4rUdDcXxA7HNYoyfYLkAXJokXTNpRxzylsTPg/5EDe/US8c/86a6Zmgfqinf4EeXIOz3ogSFww3YpoUVjx1g/7K8sSAP0Ih8fKKdu9TToUMtaUgvC1leeXFSnLIptqjI+rXLwt1LEMvAeeGNotxnyJ1UzTMtMmF3hg2S2y+B7Nmx8qryZtMYVZVw/HjkeAiyMgYQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 03 Jun 2025 07:14:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 03/06/2025 09:09, Jan Beulich wrote:
> 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@xxxxxxx>
>>>>>
>>>>> 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.
Ok, so basically this should be left to people adding support for DOM0LESS_BOOT
for other arches in the future.

There is static mem and shmem left to be moved. I think we can squeeze in a
patch removing && ARM in this case.

~Michal




 


Rackspace

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