FF-A: adjust partition info get VM/SP properties
Partition info get currently returns properties stating partitions
only support indirect messaging. This is not necessarily true for
Secure Partitions as of FF-A v1.0. Tune the partition info get
properties response such that indirect messaging is reported
as supported for NWd VMs and direct messaging for SWd SPs.
Change-Id: I1b839367d4d921b971f227dfca76f9b0e1ad7e5d
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
diff --git a/src/api.c b/src/api.c
index 1457d58..d131656 100644
--- a/src/api.c
+++ b/src/api.c
@@ -12,6 +12,7 @@
#include "hf/arch/mm.h"
#include "hf/arch/other_world.h"
#include "hf/arch/timer.h"
+#include "hf/arch/vm.h"
#include "hf/check.h"
#include "hf/dlog.h"
@@ -330,10 +331,8 @@
if (uuid_is_null || ffa_uuid_equal(uuid, &vm->uuid)) {
partitions[vm_count].vm_id = vm->id;
partitions[vm_count].vcpu_count = vm->vcpu_count;
-
- /* Hafnium only supports indirect messaging. */
partitions[vm_count].properties =
- FFA_PARTITION_INDIRECT_MSG;
+ arch_vm_partition_properties(vm->id);
++vm_count;
}