Message ID | 20230626064910.1787255-4-shahuang@redhat.com |
---|---|
State | New |
Headers | show |
Series | target/arm: Handle psci calls in userspace | expand |
diff --git a/target/arm/helper.c b/target/arm/helper.c index d4bee43bd0..58063a92a6 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -11020,7 +11020,8 @@ void arm_cpu_do_interrupt(CPUState *cs) env->exception.syndrome); } - if (tcg_enabled() && arm_is_psci_call(cpu, cs->exception_index)) { + if ((tcg_enabled() || kvm_enabled()) && + arm_is_psci_call(cpu, cs->exception_index)) { arm_handle_psci_call(cpu); qemu_log_mask(CPU_LOG_INT, "...handled as PSCI call\n"); return;
Now the psci call can only be used when tcg_enabled, we want to reuse it when kvm_enabled, which will be used in subsequent patch which enable the psci handling in userspace. Signed-off-by: Shaoqin Huang <shahuang@redhat.com> --- target/arm/helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)