test(memory share): hypervisor's RX is realm on retrieve
The test validates that the SPMC is able to recover from a trapped
access to a realm RX buffer during the retrieve response. The
call to FFA_MEMORY_RETRIEVE_REQ should return FFA_ERROR_ABORTED.
Following, reset the RX buffer's PAS back to NS, and repeat the
retrieve request. This time the operation should succeed.
Relinquish the memory to allow the reclaim.
At the end of the operation, the sender shall still be able to reclaim
as the retrieve request should have failed to update any of the structures.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I5d0f2a3e5716a3ed27dda4b6592682c34841ed63
diff --git a/tftf/tests/tests-memory-access.xml b/tftf/tests/tests-memory-access.xml
index f0242f3..d671b51 100644
--- a/tftf/tests/tests-memory-access.xml
+++ b/tftf/tests/tests-memory-access.xml
@@ -73,6 +73,8 @@
function="test_ffa_mem_share_tx_realm_expect_fail" />
<testcase name="FF-A Memory Retrieve, NWd TX buffer is in realm PAS"
function="test_ffa_memory_retrieve_request_fail_tx_realm" />
+ <testcase name="FF-A Memory Retrieve, NWd RX buffer is in realm PAS"
+ function="test_ffa_memory_retrieve_request_fail_rx_realm" />
</testsuite>
</testsuites>