[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 3/5] target/arm: make psci call can be used by kvm
From: |
Shaoqin Huang |
Subject: |
[PATCH v1 3/5] target/arm: make psci call can be used by kvm |
Date: |
Mon, 26 Jun 2023 02:49:07 -0400 |
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(-)
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;
--
2.39.1
- [PATCH v1 0/5] target/arm: Handle psci calls in userspace, Shaoqin Huang, 2023/06/26
- [PATCH v1 5/5] arm/kvm: add support for userspace psci calls handling, Shaoqin Huang, 2023/06/26
- [PATCH v1 4/5] arm/kvm: add skeleton implementation for userspace SMCCC call handling, Shaoqin Huang, 2023/06/26
- [PATCH v1 1/5] linux-headers: Update to v6.4-rc7, Shaoqin Huang, 2023/06/26
- [PATCH v1 2/5] linux-headers: Import arm-smccc.h from Linux v6.4-rc7, Shaoqin Huang, 2023/06/26
- [PATCH v1 3/5] target/arm: make psci call can be used by kvm,
Shaoqin Huang <=
- RE: [PATCH v1 0/5] target/arm: Handle psci calls in userspace, Salil Mehta, 2023/06/26