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:
Sebastian Ene <sebastianene@google.com>
Loading
Please sign in to comment