All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksii Moisieiev <Oleksii_Moisieiev@epam.com>
To: Julien Grall <julien@xen.org>,
	Stefano Stabellini <sstabellini@kernel.org>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Anthony PERARD" <anthony.perard@vates.tech>,
	"Bertrand Marquis" <bertrand.marquis@arm.com>,
	"Jan Beulich" <jbeulich@suse.com>,
	"Juergen Gross" <jgross@suse.com>,
	"Michal Orzel" <michal.orzel@amd.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Grygorii Strashko" <grygorii_strashko@epam.com>
Subject: Re: [RFC PATCH v4 8/8] docs: armproposa: l to add separate SCMI node for Xen agent
Date: Wed, 25 Jun 2025 19:47:38 +0000	[thread overview]
Message-ID: <df2ee229-ec98-4097-a6bb-b16910c540e9@epam.com> (raw)
In-Reply-To: <3468bb57-3178-460b-8fb2-3ce106475319@xen.org>


On 23/06/2025 11:02, Julien Grall wrote:
> Hi Stefano and Oleksii,
>
> Let me start with a bit of process. This is discussion is getting 
> fairly difficult to follow.... Can you please trim unrelevant bits 
> when replying?
>
> On 22/06/2025 22:57, Stefano Stabellini wrote:
>> On Thu, 19 Jun 2025, Oleksii Moisieiev wrote:
>>> On 18/06/2025 03:35, Stefano Stabellini wrote:
>>>> On Thu, 12 Jun 2025, Oleksii Moisieiev wrote:
>>>>> On 23/05/2025 23:19, Stefano Stabellini wrote:
>>>>>> On Mon, 19 May 2025, Oleksii Moisieiev wrote:
>>>>>>> From: Grygorii Strashko<grygorii_strashko@epam.com>
>>> the same (smc-id and shmem) for both the BSP case (no Xen) and the Xen
>>> case (Dom0 domain).
>>>
>>> Meanwhile, the Xen management agent's SCMI node and configuration are
>>> expected to be placed under /chosen.
>>>
>>> This approach ensures that the Host DT remains as unchanged as 
>>> possible.
>>
>> Yes, my main point is that all the device tree information, except for
>> what is under /chosen, should be left unchanged between the BSP case (no
>> Xen) and the Xen case.
>>
>> We have freedom to decide:
>> - the information we put under /chosen and how to interpret it
>> - how to use the information under /firmware/scmi when Xen is present
>>
>>
>>> Currently:
>>>
>>> The Host DT /firmware/scmi node requires modification to point to the
>>> Xen management agent by changing
>>>
>>> the smc-id and shmem values.
>>
>> I don't think we should require changes to /firmware/scmi in the host DT
>> when Xen is present.
>>
>> Often, people don't know when or if Xen is present at the time the
>> Device Tree is generated. So it is best to avoid modification (outside
>> of /chosen).
>
> I am probably missing something. But it looks like TF-A requires to 
> suport multi-agent so Xen can use it. Am I correct?
>
> Furthermore, I can't tell why the multi-agent support is Xen specific. 
> Surely, you may want something similar with other hypervisors? If not, 
> then my next question is why does Xen needs to do things differently?
>
> Cheers,
>

Yes, multi-agent support is required in TF-A for Xen, but this is not 
specific to Xen.


The implementation is based on the scenario described in the last 
paragraph of

section 4.2.1 of DEN0056 [0].


The key points are as follows:

- a Virtual Machine (VM) serves as a non-trusted agent in the

Non-secure Security state.

- a hypervisor acts as a trusted agent in the Non-secure

Security state.

- the hypervisor can configure fine-grained Non-secure resource access 
permissions for

Virtual Machines.

- the hypervisor sets resource access permissions for the agent 
identifier associated with

the channel and assigns the channel to the VM.


Therefore, we can expect other hypervisors to follow this specification.


[0]: https://developer.arm.com/documentation/den0056/latest/


  reply	other threads:[~2025-06-25 19:47 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-19 15:50 [RFC PATCH v4 0/8] xen/arm: scmi: introduce SCI SCMI SMC multi-agent support Oleksii Moisieiev
2025-05-19 15:50 ` [RFC PATCH v4 2/8] xen/arm: scmi-smc: update to be used under sci subsystem Oleksii Moisieiev
2025-05-19 23:29   ` Stefano Stabellini
2025-05-19 15:50 ` [RFC PATCH v4 1/8] xen/arm: add generic SCI subsystem Oleksii Moisieiev
2025-05-19 23:45   ` Stefano Stabellini
2025-05-19 15:50 ` [RFC PATCH v4 3/8] xen/arm: scmi-smc: passthrough SCMI SMC to domain, single agent Oleksii Moisieiev
2025-05-20  0:18   ` Stefano Stabellini
2025-05-19 15:50 ` [RFC PATCH v4 4/8] docs: arm: add docs for SCMI over SMC calls forwarding driver Oleksii Moisieiev
2025-05-19 15:50 ` [RFC PATCH v4 5/8] xen/domctl: extend XEN_DOMCTL_assign_device to handle not only iommu Oleksii Moisieiev
2025-05-19 18:54   ` Jan Beulich
2025-05-22  0:25   ` Stefano Stabellini
2025-05-22  6:18     ` Jan Beulich
2025-06-12 11:42     ` Oleksii Moisieiev
2025-06-12 13:10       ` Grygorii Strashko
2025-06-18  0:04       ` Stefano Stabellini
2025-06-19 16:15         ` Oleksii Moisieiev
2025-06-22 21:30           ` Stefano Stabellini
2025-06-24  8:42             ` Oleksii Moisieiev
2025-06-24  8:47               ` Jan Beulich
2025-06-24  8:48                 ` Oleksii Moisieiev
2025-06-23  7:15           ` Jan Beulich
2025-06-23  7:28             ` Oleksii Moisieiev
2025-06-25 19:56             ` Oleksii Moisieiev
2025-06-26  6:10               ` Jan Beulich
2025-06-26 13:07                 ` Oleksii Moisieiev
2025-06-26 14:41                   ` Jan Beulich
2025-06-26 15:01                     ` Oleksii Moisieiev
2025-05-19 15:50 ` [RFC PATCH v4 7/8] docs: arm: add SCI SCMI SMC multi-agent driver docs Oleksii Moisieiev
2025-05-19 15:50 ` [RFC PATCH v4 6/8] xen/arm: scmi: introduce SCI SCMI SMC multi-agent driver Oleksii Moisieiev
2025-05-23 20:06   ` Stefano Stabellini
2025-06-02  7:17     ` Bertrand Marquis
2025-06-12 12:03       ` Oleksii Moisieiev
2025-06-12 12:10       ` Grygorii Strashko
2025-06-17 23:38         ` Stefano Stabellini
2025-06-18  7:22           ` Julien Grall
2025-06-19 16:15             ` Oleksii Moisieiev
2025-06-22 21:50               ` Stefano Stabellini
2025-06-19 16:15           ` Oleksii Moisieiev
2025-06-05 22:44     ` Julien Grall
2025-06-12 12:03     ` Oleksii Moisieiev
2025-06-17 23:22       ` Stefano Stabellini
2025-06-17 23:56         ` Stefano Stabellini
2025-06-19 16:15         ` Oleksii Moisieiev
2025-06-22 22:15           ` Stefano Stabellini
2025-06-23  8:06             ` Julien Grall
2025-06-23 19:27               ` Stefano Stabellini
2025-06-23 20:38                 ` Julien Grall
2025-06-23 20:42                   ` Stefano Stabellini
2025-06-23 21:58                     ` Julien Grall
2025-06-25 19:47             ` Oleksii Moisieiev
2025-06-18  7:28   ` Julien Grall
2025-06-19 16:15     ` Oleksii Moisieiev
2025-05-19 15:50 ` [RFC PATCH v4 8/8] docs: arm: proposal to add separate SCMI node for Xen agent Oleksii Moisieiev
2025-05-23 20:19   ` Stefano Stabellini
2025-06-12 12:03     ` Oleksii Moisieiev
2025-06-18  0:35       ` Stefano Stabellini
2025-06-19 16:15         ` [RFC PATCH v4 8/8] docs: armproposa: l " Oleksii Moisieiev
2025-06-22 21:57           ` Stefano Stabellini
2025-06-23  8:02             ` Julien Grall
2025-06-25 19:47               ` Oleksii Moisieiev [this message]
2025-06-25 20:32                 ` Julien Grall
2025-06-29 15:41                   ` Oleksii Moisieiev
2025-06-29 18:34                     ` Julien Grall
2025-06-30 11:57                       ` Oleksii Moisieiev
2025-06-30 12:13                         ` Julien Grall
2025-06-30 22:33                           ` Stefano Stabellini
2025-06-05 22:40 ` [RFC PATCH v4 0/8] xen/arm: scmi: introduce SCI SCMI SMC multi-agent support Julien Grall

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=df2ee229-ec98-4097-a6bb-b16910c540e9@epam.com \
    --to=oleksii_moisieiev@epam.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=bertrand.marquis@arm.com \
    --cc=grygorii_strashko@epam.com \
    --cc=jbeulich@suse.com \
    --cc=jgross@suse.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.