Skip to content

Commit

Permalink
mips: Report an error when KVM_VM_MIPS_VZ is unavailable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
akihikodaki authored and pm215 committed Aug 22, 2023
1 parent 1ab445a commit 875b3eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target/mips/kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 875b3eb

Please sign in to comment.