aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2023-08-22 17:24:17 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-08-22 17:24:17 +0100
commitfe9bbcb64b1fc747132d08a3bcca4c0e1381ef81 (patch)
treee400b93d23688abfc5d792648c79ef58f03f0476
parent9770707190b60ae0ddefaa8d5c8fe1d9719b6358 (diff)
mips: Report an error when KVM_VM_MIPS_VZ is unavailable
On MIPS, QEMU requires KVM_VM_MIPS_VZ type for KVM. Report an error in such a case as other architectures do when an error occurred during KVM type decision. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-id: 20230727073134.134102-4-akihiko.odaki@daynix.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
-rw-r--r--target/mips/kvm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/mips/kvm.c b/target/mips/kvm.c
index e98aad01bd..e22e24ed97 100644
--- a/target/mips/kvm.c
+++ b/target/mips/kvm.c
@@ -1278,6 +1278,7 @@ int kvm_arch_get_default_type(MachineState *machine)
}
#endif
+ error_report("KVM_VM_MIPS_VZ type is not available");
return -1;
}