Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1573FE87858 for ; Tue, 3 Feb 2026 17:39:03 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1219533.1528392 (Exim 4.92) (envelope-from ) id 1vnKM9-0000Kj-Vj; Tue, 03 Feb 2026 17:38:29 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1219533.1528392; Tue, 03 Feb 2026 17:38:29 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vnKM9-0000Kc-SA; Tue, 03 Feb 2026 17:38:29 +0000 Received: by outflank-mailman (input) for mailman id 1219533; Tue, 03 Feb 2026 17:38:28 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vnKM8-0000KW-G6 for xen-devel@lists.xenproject.org; Tue, 03 Feb 2026 17:38:28 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id 25168f8e-0127-11f1-b161-2bf370ae4941; Tue, 03 Feb 2026 18:38:26 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6E49C339; Tue, 3 Feb 2026 09:38:19 -0800 (PST) Received: from C3HXLD123V.arm.com (unknown [10.57.54.220]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A22673F632; Tue, 3 Feb 2026 09:38:24 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 25168f8e-0127-11f1-b161-2bf370ae4941 From: Bertrand Marquis To: xen-devel@lists.xenproject.org Cc: Volodymyr Babchuk , Jens Wiklander , Stefano Stabellini , Julien Grall , Michal Orzel Subject: [PATCH 00/12] xen/arm: ffa: v1.2 improvements Date: Tue, 3 Feb 2026 18:37:55 +0100 Message-ID: X-Mailer: git-send-email 2.51.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series tightens Xen's FF-A mediator after the v1.2 enablement work, focusing on correctness, validation, and diagnostics while keeping existing v1.0/v1.1 guests working. Hardening and validation (Patches 1-3): 1) centralize endpoint lookup validation for messaging paths 2) reject NS MEM_SHARE attributes and name normal memory encoding 3) tighten MEM_SHARE page parsing with overflow/alignment checks FF-A 1.2 support (Patch 4): 4) accept 1.2 EMADs in MEM_SHARE and forward IMPDEF while allowing 1.1 layouts Correctness fixes (Patches 5-9): 5) avoid spurious SPMC RX releases on PARTINFO failures 6) align RX/TX map descriptor layout and return NO_MEMORY on map failures 7) deny RXTX_UNMAP while a VM owns the RX buffer and close the race 8) validate FFA_FEATURES properties and gate ABIs, with RX_ACQUIRE workaround 9) gate SEND2 SP support on RX_ACQUIRE Code quality and diagnostics (Patches 10-12): 10) reduce log noise and ratelimit expected failures 11) add MEM_SHARE page diagnostics for malformed ranges and mapping issues 12) add message parameter diagnostics for SEND2 and direct requests Backward compatibility: v1.0/v1.1 guests continue to use their ABI unchanged; v1.2 guests use EMADs and negotiated ABI features. The implementation passes the FF-A Architecture Compliance Suite. This serie was validated through gitlab-ci here: https://gitlab.com/xen-project/people/bmarquis/xen-ffa-research/-/tree/ffa-v12-improve/v1 Build pipeline for the serie: https://gitlab.com/xen-project/people/bmarquis/xen-ffa-research/-/pipelines/2303128986 Bertrand Marquis (12): xen/arm: ffa: Add endpoint lookup helper xen/arm: ffa: Fix MEM_SHARE NS attribute handling xen/arm: ffa: Harden shm page parsing xen/arm: ffa: Add FF-A 1.2 endpoint memory access descriptors xen/arm: ffa: Fix PARTINFO RX release errors xen/arm: ffa: Fix RX/TX map layout and errors xen/arm: ffa: Fix RXTX_UNMAP ownership race xen/arm: ffa: Fix FFA_FEATURES validation xen/arm: ffa: Fix SEND2 SP support gating xen/arm: ffa: Reduce logging noise xen/arm: ffa: Add MEM_SHARE page diagnostics xen/arm: ffa: Add message parameter diagnostics xen/arch/arm/tee/ffa.c | 124 +++++++++++++++-- xen/arch/arm/tee/ffa_msg.c | 76 +++++++--- xen/arch/arm/tee/ffa_notif.c | 11 +- xen/arch/arm/tee/ffa_partinfo.c | 29 ++-- xen/arch/arm/tee/ffa_private.h | 33 ++++- xen/arch/arm/tee/ffa_rxtx.c | 84 +++++++++-- xen/arch/arm/tee/ffa_shm.c | 240 ++++++++++++++++++++++++-------- 7 files changed, 479 insertions(+), 118 deletions(-) -- 2.50.1 (Apple Git-155)