Handle VM availability messages
Add handling for the FF-A VM availability messages to libsp. Currently
this is only a skeleton implementation that calls an empty callback in
the SPs.
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Change-Id: I037f7a67121b7b02ceb1775baf4508abb9455fcd
diff --git a/components/service/spm_test/sp.c b/components/service/spm_test/sp.c
index 37aa939..fce494a 100644
--- a/components/service/spm_test/sp.c
+++ b/components/service/spm_test/sp.c
@@ -1116,3 +1116,19 @@
(void)interrupt_id;
DMSG("Got interrupt %x", interrupt_id);
}
+
+ffa_result ffa_vm_created_handler(uint16_t vm_id, uint64_t handle)
+{
+ (void)handle;
+ DMSG("VM with ID %d created", vm_id);
+
+ return FFA_OK;
+}
+
+ffa_result ffa_vm_destroyed_handler(uint16_t vm_id, uint64_t handle)
+{
+ (void)handle;
+ DMSG("VM with ID %d destroyed", vm_id);
+
+ return FFA_OK;
+}