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

Re: [ImageBuilder] uboot-script-gen: Add ability to configure static event channels


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>
  • Date: Tue, 30 Sep 2025 11:14:30 +0000
  • Accept-language: en-US, ru-RU
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=65wjWuXOlos3TOjUeQMwqMqa73uDqsM0o+Naw9dYmjA=; b=lv4CdCCbqm/0fqoZDl6xMrqm2W7HBNp22CDUwEEpobby2KjZyeBrtyZUu1mhYu6jHBm8aqbYARjq8t4hLKRu+zwapPuNtJ6gLRw/2zhK7QSJzboHIbrJ9NDFv0/oUv6MSdbHnK/QuvHfbqsPxOHoR375+R1MmmUwuctVJc3NsuKzRtfHZQ+k2j5RNzoPfFD+bZckktQS4vRPg8yYLaJvPJFjRWpRcTkTIyvH1l+XNLllNDNw5muWKt+N5347IBxAL/H5KbnWLS4NepfnbaQmxypTI9PSsLFmOogtlPfnCwD7M8O9CM2vc039q3c+6x/Y7z9DT1nzeWMxqYKRYyCk5Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=a2Rh4jyAixlqgiWxkuzDU0bOzYW9504fPVi6HZZZ3eXPQilskEVfxZHG55F3V0t3XQP+wvQZR8KOl7/pGe0DJ+5CHi/V4J6eSp/R5mrufYfcHNW1cdpMWkDXAnp82B9505p+g1ctvBXwBnJuUjXt23Z43gEnoCv75lMabqGdwUF/Hqv9UJSc/ZaaUj16iOnRAft75/MbXfEiwgBbmOyHPkRn35eDAza+EUp9IdgiDxDr6udN8MLSJjvLlEJF6iDQA2HRHzg2NdmVd+uYZrr144fyEUCmVLUnKxPDqzpDxQQq5AmqrN1rRdicvImO/b8QwpoJjf0aKKiW8rcDd32wTQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Ayan Kumar Halder <ayankuma@xxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>
  • Delivery-date: Tue, 30 Sep 2025 11:14:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcMWv1PEvr31auREGXSWhX8dEo67SqknQAgAEBdwA=
  • Thread-topic: [ImageBuilder] uboot-script-gen: Add ability to configure static event channels


On 29.09.25 22:52, Stefano Stabellini wrote:

Hello Stefano

> On Mon, 29 Sep 2025, Oleksandr Tyshchenko wrote:
>> Add DOMU_STATIC_EVTCHNS[number]="local_id local_port remote_id; ..."
>> configuration file string option specifying the static event channel
>> definitions for domain.
>>
>> The build script uses simple IDs to automatically and safely
>> generate the required unique phandle numbers for the device tree.
>> The user only needs to define simple numeric IDs and does not need
>> to manage complex phandle values.
>>
>> For the following example:
>> DOMU_STATIC_EVTCHNS[0]="1 10 2; 3 12 4"
>> DOMU_STATIC_EVTCHNS[1]="2 11 1; 4 13 3"
>>
>> it generates:
>> fdt mknod /chosen/domU0 evtchn@1
>> fdt set /chosen/domU0/evtchn@1 phandle <0xfffffffe>
>> fdt set /chosen/domU0/evtchn@1 compatible "xen,evtchn-v1"
>> fdt set /chosen/domU0/evtchn@1 xen,evtchn <10 0xfffffffd>
>> fdt mknod /chosen/domU0 evtchn@3
>> fdt set /chosen/domU0/evtchn@3 phandle <0xfffffffc>
>> fdt set /chosen/domU0/evtchn@3 compatible "xen,evtchn-v1"
>> fdt set /chosen/domU0/evtchn@3 xen,evtchn <12 0xfffffffb>
>> ...
>> fdt mknod /chosen/domU1 evtchn@2
>> fdt set /chosen/domU1/evtchn@2 phandle <0xfffffffd>
>> fdt set /chosen/domU1/evtchn@2 compatible "xen,evtchn-v1"
>> fdt set /chosen/domU1/evtchn@2 xen,evtchn <11 0xfffffffe>
>> fdt mknod /chosen/domU1 evtchn@4
>> fdt set /chosen/domU1/evtchn@4 phandle <0xfffffffb>
>> fdt set /chosen/domU1/evtchn@4 compatible "xen,evtchn-v1"
>> fdt set /chosen/domU1/evtchn@4 xen,evtchn <13 0xfffffffc>
> 
> I'd like to make an alternative suggestion. The user specifies triplets:
> DOMU_STATIC_EVTCHNS[0]="local-id remote-domid remote-id
> 
> To generate the example above:
> 
> DOMU_STATIC_EVTCHNS[0]="10 1 11; 12 1 13"
> DOMU_STATIC_EVTCHNS[1]="11 0 10; 13 0 12"

I guess by saying local-id and remote-id here you just meant local and 
remote event channels, right? If so, I would use local_port and remote_port.


> 
> I think this is better because it doesn't require to invent (useless)
> unique numbers as references. Instead, it focuses on the data that
> actually matters to the user: the event channel IDs at both ends and
> the domains involved. These are things the user must know anyway.
> 
> The only catch with this suggesion is the definition of "remote-domid":
> in reality the DOMU array index is not the domid in dom0less so we would
> have to clarify. Maybe we could define it as remote-domain-index or
> something like that.

I see, yes remote-domain-index sounds clear.


> 
> What do you think?

I think, it is a great approach. I will try to implement what you suggested.


> 
> 
> In ImageBuilder so far we have not used separators like ';' here but I
> think it does improve readability so I would keep it.

ok

[snip]

 


Rackspace

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