Commit f7ab7224 authored by Sebastian Ene's avatar Sebastian Ene
Browse files

ANDROID: KVM: arm64: Handle guest FF-A share/lend/reclaim



Handle the guest FF-A memory operations and validate the handle returned
from Trustzone which identifies an FF-A transaction.
Allocate memory to store this handle as part of the endpoint's structure.
On reclaim, verify if the handle is part of a known memory transaction and
remove the transaction if we got the memory back from Trustzone.
The handle verification is required by the hypervisor to keep track of the
transaction's ownership and to prevent handle impersonation and memory
leaking.

Bug: 269285339
Bug: 278749606
Change-Id: I4feb883a246f16a3f6a0db54a155fb195dd184bd
Signed-off-by: default avatarSebastian Ene <sebastianene@google.com>
parent 24867d56
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment