feat(notifications): notifications set and get
Handle FF-A calls FFA_NOTIFICATION_SET and FFA_NOTIFICATION_GET.
The former is used for a sender to signal a notification to the
receiver; the latter is for the receiver to get whichever notifications
there are pending.
Change-Id: I7e9db94201d0d78ceecd599cd350eeb37a8cb1f8
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/inc/hf/vm.h b/inc/hf/vm.h
index 7014799..c9bbebc 100644
--- a/inc/hf/vm.h
+++ b/inc/hf/vm.h
@@ -247,3 +247,9 @@
bool is_from_vm, ffa_vm_id_t sender_id,
ffa_notifications_bitmap_t notifications,
bool is_per_vcpu);
+void vm_notifications_set(struct vm_locked vm_locked, bool is_from_vm,
+ ffa_notifications_bitmap_t notifications,
+ ffa_vcpu_index_t vcpu_id, bool is_per_vcpu);
+ffa_notifications_bitmap_t vm_notifications_get_pending_and_clear(
+ struct vm_locked vm_locked, bool is_from_vm,
+ ffa_vcpu_index_t cur_vcpu_id);