feat(cactus): receive psci msg through direct req framework msg

Cactus receives PSCI CPU_OFF power management operation message
through framework direct request message and it will respond back
with framework direct message if all conditions are met.

Cactus SP1 and SP2 explicitly subscribe to CPU_OFF power management
message through their respective manifests.

Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
Change-Id: I790a8698d238e29847e376b4fa9447a6241ef17e
diff --git a/spm/cactus/cactus_main.c b/spm/cactus/cactus_main.c
index 8554709..4a28862 100644
--- a/spm/cactus/cactus_main.c
+++ b/spm/cactus/cactus_main.c
@@ -102,6 +102,11 @@
 			continue;
 		}
 
+		if (ffa_is_framework_msg(ffa_ret)) {
+			ffa_ret = cactus_handle_framework_msg(ffa_ret);
+			continue;
+		}
+
 		destination = ffa_dir_msg_dest(ffa_ret);
 		if (destination != vm_id) {
 			ERROR("%s(%u) invalid vm id 0x%x\n",