feat(notifications): get framework notifications
Get framework notifications in FFA_NOTIFICATION_GET handler. If flag
for SPM notifications is set:
- SPMC returns SPM framework notifications set for the receiver VM.
- Hypervisor forwards call to SPMC.
If flag for Hypervisor notifications is set:
- SPMC returns Hypervisor framework notifications set for the VM;
- Hypervisor retrieves Hypervisor framework notifications set in the
SPMC and merge with its own bitmap.
Change-Id: If371accc35bf2bd6e0425fadd5e1901286eaadc4
Signed-off-by: J-Alves <joao.alves@arm.com>
Signed-off-by: Federico Recanati <federico.recanati@arm.com>
diff --git a/src/arch/fake/hypervisor/ffa.c b/src/arch/fake/hypervisor/ffa.c
index 2f54c71..a18b34d 100644
--- a/src/arch/fake/hypervisor/ffa.c
+++ b/src/arch/fake/hypervisor/ffa.c
@@ -207,6 +207,20 @@
return false;
}
+bool plat_ffa_notifications_get_framework_notifications(
+ struct vm_locked receiver_locked,
+ ffa_notifications_bitmap_t *from_fwk, // NOLINT
+ uint32_t flags, ffa_vcpu_index_t vcpu_id, struct ffa_value *ret)
+{
+ (void)receiver_locked;
+ (void)from_fwk;
+ (void)flags;
+ (void)vcpu_id;
+ (void)ret;
+
+ return false;
+}
+
bool plat_ffa_notification_set_forward(ffa_vm_id_t sender_vm_id,
ffa_vm_id_t receiver_vm_id,
uint32_t flags,