feat(notifications): get notifications from SPs
Handling the call FFA_NOTIFICATION_GET to retrieve pending notifications
from SPs:
- SPMC retrieves the pending notifications from the partition's bitmap
field;
- Hypervisor forwards the call to SPMC, analyzes the returned value
and populates its return to the VM.
Hypervisor case useful to test notifications full signaling flow from
NWd.
Change-Id: Icda45d0bca025a023c75ec2ceecf15d06c2456a0
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/src/arch/fake/hypervisor/ffa.c b/src/arch/fake/hypervisor/ffa.c
index 4dd3fcd..78c384b 100644
--- a/src/arch/fake/hypervisor/ffa.c
+++ b/src/arch/fake/hypervisor/ffa.c
@@ -147,6 +147,18 @@
return false;
}
+bool plat_ffa_notifications_get_from_sp(
+ struct vm_locked receiver_locked, ffa_vcpu_index_t vcpu_id,
+ const ffa_notifications_bitmap_t *from_sp, struct ffa_value *ret)
+{
+ (void)receiver_locked;
+ (void)vcpu_id;
+ (void)from_sp;
+ (void)ret;
+
+ return false;
+}
+
struct ffa_value plat_ffa_notifications_bitmap_create(
ffa_vm_id_t vm_id, ffa_vcpu_count_t vcpu_count)
{