aboutsummaryrefslogtreecommitdiff
path: root/target/mips
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2023-08-22 17:31:03 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-08-22 17:31:03 +0100
commit875b3eb88f7d09c0bd650b3d5f0e642d55f199bc (patch)
treee400b93d23688abfc5d792648c79ef58f03f0476 /target/mips
parent1ab445af8cd99343f29032b5944023ad7d8edebf (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>
Diffstat (limited to 'target/mips')
-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;
}