feat(notifications): forward notification set to SPMC
Hypervisor forwards FFA_NOTIFICATION_SET to the SPMC, if receiver is an
SP.
Change-Id: I22ae458ee5906aaa728433f9d06a02dac66801d4
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/src/api.c b/src/api.c
index 27189e9..d3df341 100644
--- a/src/api.c
+++ b/src/api.c
@@ -2699,6 +2699,11 @@
return ffa_error(FFA_INVALID_PARAMETERS);
}
+ if (plat_ffa_notification_set_forward(sender_vm_id, receiver_vm_id,
+ flags, notifications, &ret)) {
+ return ret;
+ }
+
/*
* This check assumes receiver is the current VM, and has been enforced
* by 'plat_ffa_is_notification_set_valid'.
@@ -2710,11 +2715,6 @@
return ffa_error(FFA_INVALID_PARAMETERS);
}
- /*
- * TODO: Forward Hypervisor's call to SWd if setting SP's notifications
- * from VMs.
- */
-
if (!vm_are_notifications_enabled(receiver_locked)) {
dlog_verbose("Receiver's notifications not enabled.\n");
ret = ffa_error(FFA_DENIED);