Re: [PATCH v9 4/6] KVM: arm64: Mark optional FF-A 1.2 interfaces as unsupported

From: Will Deacon
Date: Fri Aug 08 2025 - 08:41:30 EST


On Wed, Jul 30, 2025 at 09:15:07PM +0000, Per Larsen via B4 Relay wrote:
> From: Per Larsen <perlarsen@xxxxxxxxxx>
>
> Mark FF-A 1.2 interfaces as unsupported lest they get proxied. Also mark
> FFA_EL3_INTR_HANDLE as unsupported as it is only valid for physical
> instances.
>
> Signed-off-by: Per Larsen <perlarsen@xxxxxxxxxx>
> ---
> arch/arm64/kvm/hyp/nvhe/ffa.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm64/kvm/hyp/nvhe/ffa.c b/arch/arm64/kvm/hyp/nvhe/ffa.c
> index 48183fa78014e420372c4fb5e489519bc652bf53..7fe96fe626d630a9009551e8dec1683617acafbd 100644
> --- a/arch/arm64/kvm/hyp/nvhe/ffa.c
> +++ b/arch/arm64/kvm/hyp/nvhe/ffa.c
> @@ -674,6 +674,13 @@ static bool ffa_call_supported(u64 func_id)
> case FFA_NOTIFICATION_SET:
> case FFA_NOTIFICATION_GET:
> case FFA_NOTIFICATION_INFO_GET:
> + /* Optional interfaces added in FF-A 1.2 */
> + case FFA_MSG_SEND_DIRECT_REQ2: /* Optional per 7.5.1 */
> + case FFA_MSG_SEND_DIRECT_RESP2: /* Optional per 7.5.1 */
> + case FFA_CONSOLE_LOG: /* Optional per 13.1: not in Table 13.1 */
> + case FFA_PARTITION_INFO_GET_REGS: /* Optional for virtual instances per 13.1 */
> + /* Unsupported interfaces added in FF-A 1.2 */
> + case FFA_EL3_INTR_HANDLE: /* Only valid for secure physical instances */

Shouldn't the secure side be rejecting that one for us, then?

> return false;
> }

Regardless,

Acked-by: Will Deacon <will@xxxxxxxxxx>

Will