refactor(indirect message): mailbox state as per FF-A v1.1

The maibox_state structure was refactored to represent
the mailbox state, and achieve ownership rules as defined by
the FF-A v1.1 specification.
The code was changed to reflect the new state transitions.

Kept compatibility with FF-A v1.0 indirect messaging to avoid
breaking legacy tests.

Change-Id: I1f2353f97d5d46436a3f81b5abf4a032f43745e8
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/src/ffa_memory.c b/src/ffa_memory.c
index 3fa07a9..ee64f54 100644
--- a/src/ffa_memory.c
+++ b/src/ffa_memory.c
@@ -2221,7 +2221,7 @@
 	to_locked.vm->mailbox.recv_size = fragment_length;
 	to_locked.vm->mailbox.recv_sender = HF_HYPERVISOR_VM_ID;
 	to_locked.vm->mailbox.recv_func = FFA_MEM_RETRIEVE_RESP_32;
-	to_locked.vm->mailbox.state = MAILBOX_STATE_READ;
+	to_locked.vm->mailbox.state = MAILBOX_STATE_FULL;
 
 	if (is_send_complete) {
 		ffa_memory_retrieve_complete(share_states, share_state,
@@ -2382,7 +2382,7 @@
 	to_locked.vm->mailbox.recv_size = fragment_length;
 	to_locked.vm->mailbox.recv_sender = HF_HYPERVISOR_VM_ID;
 	to_locked.vm->mailbox.recv_func = FFA_MEM_FRAG_TX_32;
-	to_locked.vm->mailbox.state = MAILBOX_STATE_READ;
+	to_locked.vm->mailbox.state = MAILBOX_STATE_FULL;
 
 	if (!continue_ffa_hyp_mem_retrieve_req) {
 		share_state->retrieved_fragment_count[receiver_index]++;