feat(memory share): retrieve request from NWd
If the SPMC is allocator of a given memory handle, it is
expected to keep track of the on going memory region operations.
In the case a VM is retrieving a memory region that is shared with
an SP, it might attempt to retrieve the memory.
The hypervisor issues a retrieve req for the SPMC to pass it
the recorded memory region descriptor, such that it can
validate the retrieve request from the VM and then
update the VM's S2 memory mapping.
The SPMC doesn't expect to receive a request whose memory handle
was allocated by the hypervisor. Return FFA_INVALID_PARAMETERS
in such case.
Change-Id: Id86069cfb263c6a2efc4202ad9e3c5e53cdf1e65
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/src/arch/fake/hypervisor/ffa.c b/src/arch/fake/hypervisor/ffa.c
index fcb4bf7..e6045be 100644
--- a/src/arch/fake/hypervisor/ffa.c
+++ b/src/arch/fake/hypervisor/ffa.c
@@ -516,3 +516,15 @@
return ffa_error(FFA_INVALID_PARAMETERS);
}
+
+struct ffa_value plat_ffa_other_world_mem_retrieve(
+ struct vm_locked to_locked, struct ffa_memory_region *retrieve_request,
+ uint32_t length, struct mpool *page_pool)
+{
+ (void)to_locked;
+ (void)retrieve_request;
+ (void)length;
+ (void)page_pool;
+
+ return ffa_error(FFA_INVALID_PARAMETERS);
+}