fix: check support of direct requests messaging

The FF-A partitions have the supported messaging method configured in
their respective manifest.
This patch adds a check to the sender and receiver support of the
messaging method in the handler of FFA_MSG_SEND_DIRECT_REQ.

Change-Id: Ib3f844caef158ece2ac78fbd477e245f4d690b9c
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/src/api.c b/src/api.c
index 8ce4136..911b1ad 100644
--- a/src/api.c
+++ b/src/api.c
@@ -2074,6 +2074,14 @@
 	}
 
 	/*
+	 * Check if sender supports sending direct message req, and if
+	 * receiver supports receipt of direct message requests.
+	 */
+	if (!plat_ffa_is_direct_request_supported(current->vm, receiver_vm)) {
+		return ffa_error(FFA_DENIED);
+	}
+
+	/*
 	 * Per PSA FF-A EAC spec section 4.4.1 the firmware framework supports
 	 * UP (migratable) or MP partitions with a number of vCPUs matching the
 	 * number of PEs in the system. It further states that MP partitions