fix(ff-a): FFA_RUN checking of vcpu index
FFA_RUN in the secure world, does not check that the vCPU index provided
is the same as the physical CPU index. Per the FF-A specification, all
MP partitions are pinned to a physical cpu and if this is not checked,
FFA_RUN can be successfully called on an arbitrary vCPU..
Signed-off-by: Raghu Krishnamurthy <raghu.ncstate@gmail.com>
Change-Id: I4edb02e1624efa54d3eee5a36eba4f9fed26e580
diff --git a/src/arch/fake/hypervisor/ffa.c b/src/arch/fake/hypervisor/ffa.c
index 13c67e6..d043c6e 100644
--- a/src/arch/fake/hypervisor/ffa.c
+++ b/src/arch/fake/hypervisor/ffa.c
@@ -235,13 +235,14 @@
* Check if current VM can resume target VM/SP using FFA_RUN ABI.
*/
bool plat_ffa_run_checks(struct vcpu *current, ffa_vm_id_t target_vm_id,
- struct ffa_value *run_ret, struct vcpu **next)
+ ffa_vcpu_index_t vcpu_idx, struct ffa_value *run_ret,
+ struct vcpu **next)
{
(void)current;
(void)target_vm_id;
(void)run_ret;
(void)next;
-
+ (void)vcpu_idx;
return true;
}