From 04458d9907c77ae85412d8c9609b1f62f79278c9 Mon Sep 17 00:00:00 2001 From: Per Larsen Date: Thu, 5 Jun 2025 23:23:59 +0000 Subject: [PATCH] ANDROID: KVM: arm64: Advertise support for FFA_RX_RELEASE The guest FFA handler supports FFA_RX_RELEASE but do_ffa_guest_features reports that it is unsupported. This can prevent guests from discovering and using this API to return a transferred buffer to its original owner. Enable support by adding FFA_RX_RELEASE case to the feature discovery switch statement. Bug: 269285339 Bug: 278749606 Change-Id: Iecaefedd51614cb81b82303e68fa8a759e579e50 Signed-off-by: Per Larsen --- arch/arm64/kvm/hyp/nvhe/ffa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kvm/hyp/nvhe/ffa.c b/arch/arm64/kvm/hyp/nvhe/ffa.c index 12af289215ce..6b1e0ac5762e 100644 --- a/arch/arm64/kvm/hyp/nvhe/ffa.c +++ b/arch/arm64/kvm/hyp/nvhe/ffa.c @@ -938,6 +938,7 @@ static void do_ffa_guest_features(struct arm_smccc_res *res, struct kvm_cpu_cont case FFA_FN64_MEM_SHARE: case FFA_MEM_LEND: case FFA_FN64_MEM_LEND: + case FFA_RX_RELEASE: ret = FFA_RET_SUCCESS; goto out_handled; case FFA_RXTX_MAP: