plat(ff-a): forward FFA_PARTITION_INFO_GET to SPMC
When a VM calls FFA_PARTITION_INFO_GET the Hypervisor looks up for the
passed UUID in the current list of VMs. If the UUID is unknown or NULL
then it forwards it to the SPMC to look up for the same UUID amongst
secure partitions.
Change-Id: I6ef9bf01da90ef18983e7bd8cb2ffbc90aa07ddc
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
diff --git a/inc/vmapi/hf/ffa.h b/inc/vmapi/hf/ffa.h
index 801d669..8cbf0dc 100644
--- a/inc/vmapi/hf/ffa.h
+++ b/inc/vmapi/hf/ffa.h
@@ -280,6 +280,11 @@
uint64_t arg7;
};
+static inline uint32_t ffa_func_id(struct ffa_value args)
+{
+ return args.func;
+}
+
static inline int32_t ffa_error_code(struct ffa_value val)
{
return (int32_t)val.arg2;
@@ -305,6 +310,11 @@
return args.arg4;
}
+static inline uint32_t ffa_partition_info_get_count(struct ffa_value args)
+{
+ return args.arg2;
+}
+
static inline ffa_memory_handle_t ffa_assemble_handle(uint32_t a1, uint32_t a2)
{
return (uint64_t)a1 | (uint64_t)a2 << 32;