On 26/7/25 00:30, Mohamed Mediouni wrote:
Signed-off-by: Mohamed Mediouni <moha...@unpredictable.fr>
---
  hw/arm/virt.c         |  9 ++++++---
  target/arm/hvf-stub.c | 15 +++++++++++++++
  target/arm/hvf/hvf.c  | 35 +++++++++++++++++++++++++++++++++++
  target/arm/hvf_arm.h  |  3 +++
  4 files changed, 59 insertions(+), 3 deletions(-)


@@ -1146,6 +1177,10 @@ static bool hvf_handle_psci_call(CPUState *cpu)
      int target_el = 1;
      int32_t ret = 0;
+ if (hvf_arm_el2_enabled()) {
+        target_el = 2;

Maybe better to pass target_el as argument to hvf_handle_psci_call?

+    }
+
      trace_hvf_psci_call(param[0], param[1], param[2], param[3],
                          arm_cpu_mp_affinity(arm_cpu));

Reply via email to