feat(interrupts): intercept S-EL0 SP direct response message
Since FF-A v1.1 EAC0 spec only allows signaling a virtual secure
interrupt to an S-EL0 SP when in WAITING state, SPMC intercepts
a direct response message from the S-EL0 partition to proactively
signal the pending virtual secure interrupt and resume the vCPU
of the S-EL0 partition.
Further, once the secure interrupt is handled, SPMC resumes the
direct response message from current S-EL0 partition and takes
care of unwinding the call chain.
Change-Id: I55da462b5b6b7813f09a7b57c16fcd378972ac3a
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
diff --git a/inc/hf/api.h b/inc/hf/api.h
index 929fe52..9c9b386 100644
--- a/inc/hf/api.h
+++ b/inc/hf/api.h
@@ -133,3 +133,8 @@
struct ffa_value api_ffa_console_log(const struct ffa_value args,
struct vcpu *current);
+
+void api_ffa_resume_direct_resp_target(struct vcpu *current, struct vcpu **next,
+ ffa_vm_id_t receiver_vm_id,
+ struct ffa_value to_ret,
+ bool is_nwd_call_chain);