fix: moved unsupported function log
In case a function was not listed in the `ffa_handler`,
along with all the other FF-A calls, the call could
still be a valid hypervisor call.
As such, the log for an "Unsupported function" was spuriously
being printed for the hypervisor calls.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I50bf136fde246fe7c202f7db6efd088496ee407c
diff --git a/src/arch/aarch64/hypervisor/handler.c b/src/arch/aarch64/hypervisor/handler.c
index 5f3812d..9f9dcf6 100644
--- a/src/arch/aarch64/hypervisor/handler.c
+++ b/src/arch/aarch64/hypervisor/handler.c
@@ -807,8 +807,6 @@
return true;
default:
- dlog_verbose("Unsupported function %#x (%s)\n", func,
- ffa_func_name(func));
return false;
}
}
@@ -1162,6 +1160,7 @@
default:
vcpu->regs.r[0] = SMCCC_ERROR_UNKNOWN;
+ dlog_verbose("Unsupported function %#lx\n", args.func);
}
vcpu_update_virtual_interrupts(next);