feat: helper to reset and free partition notification bindings
The helper utility `vm_reset_notifications` added in this patch is
needed when partition manager reclaims resources from an aborted
partition.
The `ffa_vm_free_resources` function is extended to accept a new
parameter that tracks the associated memory page pool. This facilitates
any memory released by partition manager to be reallocated to the said
page pool.
Moreover, the function `ffa_vm_destroy` has been renamed to
`ffa_vm_nwd_free` for better clarity. And, the function
`ffa_vm_nwd_create` has been renamed to `ffa_vm_nwd_alloc`.
Change-Id: I868bef6bdbbde468f2bf2ce5597a55c6ae95d777
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
diff --git a/src/ffa/hypervisor/vm.c b/src/ffa/hypervisor/vm.c
index 08b1cff..8d6e075 100644
--- a/src/ffa/hypervisor/vm.c
+++ b/src/ffa/hypervisor/vm.c
@@ -49,13 +49,14 @@
return false;
}
-void ffa_vm_destroy(struct vm_locked to_destroy_locked)
+void ffa_vm_nwd_free(struct vm_locked to_destroy_locked)
{
/* Hypervisor never frees VM structs. */
(void)to_destroy_locked;
}
-void ffa_vm_free_resources(struct vm_locked vm_locked)
+void ffa_vm_free_resources(struct vm_locked vm_locked, struct mpool *ppool)
{
(void)vm_locked;
+ (void)ppool;
}