[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 05/11] arm: Set PSCI to 0.2 for HVF
From: |
Alexander Graf |
Subject: |
[PATCH v5 05/11] arm: Set PSCI to 0.2 for HVF |
Date: |
Fri, 11 Dec 2020 16:12:54 +0100 |
In Hypervisor.framework, we just pass PSCI calls straight on to the QEMU
emulation
of it. That means, if TCG is compatible with PSCI 0.2, so are we. Let's
transpose
that fact in code too.
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
---
v3 -> v4:
- Combine both if statements
---
target/arm/cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/arm/cpu.c b/target/arm/cpu.c
index d6188f6566..86cf167d1d 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -1062,8 +1062,8 @@ static void arm_cpu_initfn(Object *obj)
cpu->psci_version = 1; /* By default assume PSCI v0.1 */
cpu->kvm_target = QEMU_KVM_ARM_TARGET_NONE;
- if (tcg_enabled()) {
- cpu->psci_version = 2; /* TCG implements PSCI 0.2 */
+ if (tcg_enabled() || hvf_enabled()) {
+ cpu->psci_version = 2; /* TCG and HVF implement PSCI 0.2 */
}
}
--
2.24.3 (Apple Git-128)
- [PATCH v5 00/11] hvf: Implement Apple Silicon Support, Alexander Graf, 2020/12/11
- [PATCH v5 02/11] hvf: x86: Remove unused definitions, Alexander Graf, 2020/12/11
- [PATCH v5 01/11] hvf: Add hypervisor entitlement to output binaries, Alexander Graf, 2020/12/11
- [PATCH v5 04/11] hvf: Introduce hvf vcpu struct, Alexander Graf, 2020/12/11
- [PATCH v5 03/11] hvf: Move common code out, Alexander Graf, 2020/12/11
- [PATCH v5 05/11] arm: Set PSCI to 0.2 for HVF,
Alexander Graf <=
- [PATCH v5 08/11] arm: Add Hypervisor.framework build target, Alexander Graf, 2020/12/11
- [PATCH v5 06/11] hvf: Simplify post reset/init/loadvm hooks, Alexander Graf, 2020/12/11
- [PATCH v5 10/11] hvf: arm: Add support for GICv3, Alexander Graf, 2020/12/11
- [PATCH v5 07/11] hvf: Add Apple Silicon support, Alexander Graf, 2020/12/11
- [PATCH v5 09/11] arm/hvf: Add a WFI handler, Alexander Graf, 2020/12/11
- [PATCH v5 11/11] hvf: arm: Implement -cpu host, Alexander Graf, 2020/12/11
- Re: [PATCH v5 00/11] hvf: Implement Apple Silicon Support, no-reply, 2020/12/11
- Re: [PATCH v5 00/11] hvf: Implement Apple Silicon Support, Graeme Gregory, 2020/12/16