diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2025-05-14 14:29:46 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2025-05-14 14:29:46 +0100 |
commit | c6650a8c6cc18cdc4a46a6eef41b7d57e6bc0b2b (patch) | |
tree | c2d45b77c42d28f8b28a808a50590cdbe34bc14a | |
parent | 0ab97bc070f9df7fd155707c7800667cbf26790f (diff) | |
download | qemu-c6650a8c6cc18cdc4a46a6eef41b7d57e6bc0b2b.zip qemu-c6650a8c6cc18cdc4a46a6eef41b7d57e6bc0b2b.tar.gz qemu-c6650a8c6cc18cdc4a46a6eef41b7d57e6bc0b2b.tar.bz2 |
target/arm/kvm: don't check TYPE_AARCH64_CPU
We want to merge TYPE_AARCH64_CPU with TYPE_ARM_CPU, so enforcing in
kvm_arch_init_vcpu() that the CPU class is a subclass of
TYPE_AARCH64_CPU will no longer be possible.
It's safe to just remove this test, because any purely-AArch32 CPU
will fail the "kvm_target isn't set" check, because we no longer
support the old AArch32-host KVM setup and so CPUs like the Cortex-A7
no longer set cpu->kvm_target. Only the 'host', 'max', and the
odd special cases 'cortex-a53' and 'cortex-a57' set kvm_target.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250429132200.605611-7-peter.maydell@linaro.org
-rw-r--r-- | target/arm/kvm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/arm/kvm.c b/target/arm/kvm.c index 9c62d12..85911e3 100644 --- a/target/arm/kvm.c +++ b/target/arm/kvm.c @@ -1843,8 +1843,7 @@ int kvm_arch_init_vcpu(CPUState *cs) CPUARMState *env = &cpu->env; uint64_t psciver; - if (cpu->kvm_target == QEMU_KVM_ARM_TARGET_NONE || - !object_dynamic_cast(OBJECT(cpu), TYPE_AARCH64_CPU)) { + if (cpu->kvm_target == QEMU_KVM_ARM_TARGET_NONE) { error_report("KVM is not supported for this guest CPU type"); return -EINVAL; } |