mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
kvm: Introduce kvm_arch_get_default_type hook
kvm_arch_get_default_type() returns the default KVM type. This hook is particularly useful to derive a KVM type that is valid for "none" machine model, which is used by libvirt to probe the availability of KVM. For MIPS, the existing mips_kvm_type() is reused. This function ensures the availability of VZ which is mandatory to use KVM on the current QEMU. Cc: qemu-stable@nongnu.org Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-id: 20230727073134.134102-2-akihiko.odaki@daynix.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> [PMM: added doc comment for new function] Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
a9c9bbee85
commit
5e0d65909c
10 changed files with 31 additions and 13 deletions
|
@ -1266,7 +1266,7 @@ int kvm_arch_msi_data_to_gsi(uint32_t data)
|
|||
abort();
|
||||
}
|
||||
|
||||
int mips_kvm_type(MachineState *machine, const char *vm_type)
|
||||
int kvm_arch_get_default_type(MachineState *machine)
|
||||
{
|
||||
#if defined(KVM_CAP_MIPS_VZ)
|
||||
int r;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue