feat(ff-a): add uuid to partition info descriptors
The uuid field is required as specified in table 13.4 "Partition
information descriptor" from the FF-A 1.1 BETA0 EAC specification.
To maintain compatability with endpoint of a lower version we must
return the appropriate partition info descriptor according to the
endpoints version set by the endpoint calling FFA_VERSION earlier.
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Change-Id: Iac239c4115a7f80c3f38a5f590c722e82f82e773
diff --git a/inc/vmapi/hf/ffa.h b/inc/vmapi/hf/ffa.h
index 7668b96..e6ba8ca 100644
--- a/inc/vmapi/hf/ffa.h
+++ b/inc/vmapi/hf/ffa.h
@@ -430,10 +430,24 @@
/**
* Holds information returned for each partition by the FFA_PARTITION_INFO_GET
* interface.
+ * This corresponds to table 13.34 of the FF-A 1.1 BETA0 EAC specification,
+ * "Partition information descriptor".
+ */
+struct ffa_partition_info {
+ ffa_vm_id_t vm_id;
+ ffa_vcpu_count_t vcpu_count;
+ ffa_partition_properties_t properties;
+ struct ffa_uuid uuid;
+};
+
+/**
+ * Create a struct for the "Partition information descriptor" defined for v1.0
+ * which can be returned to v1.0 endpoints.
* This corresponds to table 82 of the FF-A 1.0 EAC specification, "Partition
* information descriptor".
*/
-struct ffa_partition_info {
+
+struct ffa_partition_info_v1_0 {
ffa_vm_id_t vm_id;
ffa_vcpu_count_t vcpu_count;
ffa_partition_properties_t properties;