fix(ff-a): report NPI unsupported on EL0 partition
The `FFA_FEATURES` ABI allows querying support for the "notifications
pending" interrupt starting with FF-A version 1.1 or greater. This is
useful on partitions running at S-EL1, but not at S-EL0. Therefore,
return `FFA_NOT_SUPPORTED` if the querying partition is running at
S-EL0.
Change-Id: Ied83a05136d84b212c11b61282b625e1c5df5c9e
Signed-off-by: Karl Meakin <karl.meakin@arm.com>
diff --git a/src/arch/aarch64/hypervisor/handler.c b/src/arch/aarch64/hypervisor/handler.c
index 2994dab..47e1a96 100644
--- a/src/arch/aarch64/hypervisor/handler.c
+++ b/src/arch/aarch64/hypervisor/handler.c
@@ -558,8 +558,7 @@
*args = api_ffa_spm_id_get();
return true;
case FFA_FEATURES_32:
- *args = api_ffa_features(args->arg1, args->arg2,
- current->vm->ffa_version);
+ *args = api_ffa_features(args->arg1, args->arg2, current);
return true;
case FFA_RX_RELEASE_32:
*args = api_ffa_rx_release(ffa_receiver(*args), current);