[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH v6 0/7] FF-A notifications
- To: Julien Grall <julien@xxxxxxx>, Oleksii <oleksii.kurochko@xxxxxxxxx>
- From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Date: Tue, 11 Jun 2024 07:09:08 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=xOIwESuqNCQdxuNEAdJsvkDTLrPgkfSnOuwTA5Bkni4=; b=HBoLO0KmArR6TlAccCSuH5DOkf1zWi4ZmtDWS9fRcMWU7jn3N8AN8mEXJLH+bD46ae9sWvAEwynPHgq7gK9qsk5HuNyNNbrhgjIfGGB7ggPE9lpsgATOrANlAi1Y5aVNAFiV9rlVjnHDpjb81+zAmv+bBcKJQPXNteTvLj+Fu8OfXD8irJPAMJwxLwJUzbz3QW5E0X4Ue0xcZ9iXrFca6Zp7DCIThHcxi5Cw0VYyS0Qh1IkbSy29P1pEVCq1Sj9kBD3P4VN2SQefADi5FYz6tEINYa+a/4SYTWsh/LoiTsCJPwbV+owfEsKUb+fSGmpfxdyJAF+V3ggCbFP0Z5rxag==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=xOIwESuqNCQdxuNEAdJsvkDTLrPgkfSnOuwTA5Bkni4=; b=oNXOyFvMdzevZvTxYHoPS9rGObsPcF/Myn5FjSNFHfqjMQmlgpCYPDP4IKA0YzyJsfWn+3Mn/Q54wgKDc4XE0Y9Nlg4sN88n0Ghsa3L+BpjrLezoVtc3iR5/wakcGzKkOHs2nsQEXKZELoEVSHdAPGvEfAirPQLynx3MPSyOJF17zV18iO/Axl8c0RYdFCQsbHc6IWkn6DJRs11cY+WCIzPLwDQd/bq4a7uUqw7hDBfX/WxMP5OiFIjJlFDf7dt/muu73uUYEdRRmRYJrqWvAp3yKXmzw9VeIBvYExxB4W4SVY7ywtw3jWvobyOyEWA40B8112LYddX1+u3V1diOjw==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=O9hkJGhDPqShSDuVJSwwfbgFQ9kuHxqLWp0evB1QWjQVz9Adj8iLnNNR1xRdqtEUAzaXDDWMGfSVcdmVSXzJUdTm/hqSXIhzegyN452suxul6Ji6qyyWvHVmxoGGNTb3nLUntz/1EP6oovAp2Fs8ECAYWlaXfRCpL6mdiqwSg8cOo782HCHRkf7n3to1C2fQ1gOgqZkrjmM3nxL9phdywElBem/nO8MoiVASX4XHpsqawEz9Rz+kZ0tKShW98fuflavF9H65uV2F9ZPi+NiIUaz7UwuFnYgny0GVSeaMm9S7r+8I4gfcGeO2nUcl0Y/rk5AC2I9/c6oqB2jFkBDbgw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=etZylHpzGtoeM9+yxzd+tVWj0c75Sn5+M7AtCPqWz9PksBZ9hC3bFaVIBfsFnczIC7QAegWmzy3Us8p10AOblGvwRljzFKB+EVHhl057n8kY6ykyGBKWzYssp3Qtt0QXspsqnOOovIWxUPaBem2pIW64CrR5lQWfbgPriXR3t1nkTd+YZnPtOTiAUKNYMAK9NjINkr2Ku2IeBm2tM0cs7xa3425HHBLNuwqUkre4MQ243ifXo9WUqKRPr8FQV1odHboLnPqKFFDPU0GIKy2mZu2ZF9rADYAlJwTDnXHSWmi5R4BMqcWEnFs3t2NgEb9crcnW/ohp+ZZGcG+iVJV3ng==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Jens Wiklander <jens.wiklander@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "patches@xxxxxxxxxx" <patches@xxxxxxxxxx>, Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>
- Delivery-date: Tue, 11 Jun 2024 07:09:39 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHauwL3zf/sfUoleE2hXc1GLXTtIrHBJtUAgABPbgCAALAvgA==
- Thread-topic: [XEN PATCH v6 0/7] FF-A notifications
Hi Julien and Oleksii,
@Oleksii: Could we consider having this serie merged for next release ?
It is a feature that is in tech-preview at the moment and as such should not
have any
consequences on existing system unless it is activated explicitly in the Xen
configuration.
There are some changes in the arm common code introducing support to register
SGI
interrupt handlers in drivers. As no drivers appart from FF-A is trying to
register such
handlers, the risk is minimal for existing systems.
> On 10 Jun 2024, at 22:38, Julien Grall <julien@xxxxxxx> wrote:
>
> Hi Bertrand,
>
> On 10/06/2024 16:54, Bertrand Marquis wrote:
>> Hi Jens,
>>> On 10 Jun 2024, at 08:53, Jens Wiklander <jens.wiklander@xxxxxxxxxx> wrote:
>>>
>>> Hi,
>>>
>>> This patch set adds support for FF-A notifications. We only support
>>> global notifications, per vCPU notifications remain unsupported.
>>>
>>> The first three patches are further cleanup and can be merged before the
>>> rest if desired.
>>>
>>> A physical SGI is used to make Xen aware of pending FF-A notifications. The
>>> physical SGI is selected by the SPMC in the secure world. Since it must not
>>> already be used by Xen the SPMC is in practice forced to donate one of the
>>> secure SGIs, but that's normally not a problem. The SGI handling in Xen is
>>> updated to support registration of handlers for SGIs that aren't statically
>>> assigned, that is, SGI IDs above GIC_SGI_MAX.
>>>
>>> The patch "xen/arm: add and call init_tee_secondary()" provides a hook for
>>> register the needed per-cpu interrupt handler in "xen/arm: ffa: support
>>> notification".
>>>
>>> The patch "xen/arm: add and call tee_free_domain_ctx()" provides a hook for
>>> later freeing of the TEE context. This hook is used in "xen/arm: ffa:
>>> support notification" and avoids the problem with TEE context being freed
>>> while we need to access it when handling a Schedule Receiver interrupt. It
>>> was suggested as an alternative in [1] that the TEE context could be freed
>>> from complete_domain_destroy().
>>>
>>> [1]
>>> https://lore.kernel.org/all/CAHUa44H4YpoxYT7e6WNH5XJFpitZQjqP9Ng4SmTy4eWhyN+F+w@xxxxxxxxxxxxxx/
>>>
>>> Thanks,
>>> Jens
>> All patches are now reviewed and/or acked so I think they can get in for the
>> release.
>
> This would need a release-ack from Oleksii (I can't seem to find already one).
You are right, i do not know why in my mind we already got one.
>
> As we discussed last week, I am fine with the idea to merge the FFA patches
> as the feature is tech-preview. But there are some changes in the arm generic
> code. Do you (or Jens) have an assessment of the risk of the changes?
Agree.
In my view, the changes are changing the behaviour of some internal functions
if an interrupt handler is register for SGI but should not have any impact for
other kind of interrupts.
As there was nothing before the FF-A driver registering such interrupts, the
risk of the changes having any impact on existing configurations not activating
FF-A is fairly reduced.
@Jens: do you agree with my analysis.
I made a text for Oleksii at the beginning of the mail.
Cheers
Bertrand
>
> Cheers,
>
> --
> Julien Grall
|