test(memory sharing): the FF-A version of test VMs
Added SET_UP function for memory sharing tests, to make
primary's FF-A version v1.1 by default.
Also changed the manifest of secondary VMs in EL0
partitions tests, to make them FF-A v1.1.
Change-Id: I04b96e3831a0a96ff36e56bdcee0fb90334311a0
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/test/vmapi/el0_partitions/memory_sharing.c b/test/vmapi/el0_partitions/memory_sharing.c
index bae4751..4b9aebc 100644
--- a/test/vmapi/el0_partitions/memory_sharing.c
+++ b/test/vmapi/el0_partitions/memory_sharing.c
@@ -254,6 +254,11 @@
EXPECT_FFA_ERROR(ffa_rx_release(), FFA_DENIED);
}
+SET_UP(memory_sharing)
+{
+ ffa_version(MAKE_FFA_VERSION(1, 1));
+}
+
/**
* Test memory reclaim after a donate.
*/
diff --git a/test/vmapi/el0_partitions/secondary.dts b/test/vmapi/el0_partitions/secondary.dts
index f15b85f..14e5dfa 100644
--- a/test/vmapi/el0_partitions/secondary.dts
+++ b/test/vmapi/el0_partitions/secondary.dts
@@ -13,7 +13,7 @@
debug_name = "partition-manifest";
/* Properties */
- ffa-version = <0x00010000>; /* 31:16 - Major, 15:0 - Minor */
+ ffa-version = <0x00010001>; /* 31:16 - Major, 15:0 - Minor */
uuid = <0xb4b5671e 0x4a904fe1 0xb81ffb13 0xdae1dacb>;
execution-ctx-count = <1>;
exception-level = <1>; /* S-EL0 */
diff --git a/test/vmapi/primary_with_secondaries/memory_sharing.c b/test/vmapi/primary_with_secondaries/memory_sharing.c
index 2af723d..66fbbdc 100644
--- a/test/vmapi/primary_with_secondaries/memory_sharing.c
+++ b/test/vmapi/primary_with_secondaries/memory_sharing.c
@@ -257,6 +257,11 @@
}
}
+SET_UP(memory_sharing)
+{
+ ffa_version(MAKE_FFA_VERSION(1, 1));
+}
+
/**
* Test memory reclaim after a donate.
*/