test: add discovery of el3 spmd logical partitions
This patch adds a test to query the presence of an SPMD logical
partition and also tests basic functionality using the
ffa_partition_info_get_regs abi. Note that the register based discovery
reports the presence of el3 spmd logical partitions whereas the memory
based discovery interface does not report the el3 spmd logical
partitions. To that end, the patch adds helper functions to use the
register based discovery, and also refactors code that can be shared
between the register and memory based interfaces.
Signed-off-by: Raghu Krishnamurthy <raghu.ncstate@gmail.com>
Change-Id: I755ffe4098c635de2c6aeb0ebe73eb16c3acd206
diff --git a/include/runtime_services/spm_common.h b/include/runtime_services/spm_common.h
index 7f47dc7..c1b3698 100644
--- a/include/runtime_services/spm_common.h
+++ b/include/runtime_services/spm_common.h
@@ -145,4 +145,7 @@
bool enable_trusted_wdog_interrupt(ffa_id_t source, ffa_id_t dest);
bool disable_trusted_wdog_interrupt(ffa_id_t source, ffa_id_t dest);
+bool ffa_partition_info_regs_helper(const struct ffa_uuid uuid,
+ const struct ffa_partition_info *expected,
+ const uint16_t expected_size);
#endif /* SPM_COMMON_H */