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>
Showing
- accel/kvm/kvm-all.c 3 additions, 1 deletionaccel/kvm/kvm-all.c
- hw/mips/loongson3_virt.c 0 additions, 2 deletionshw/mips/loongson3_virt.c
- include/sysemu/kvm.h 2 additions, 0 deletionsinclude/sysemu/kvm.h
- target/arm/kvm.c 5 additions, 0 deletionstarget/arm/kvm.c
- target/i386/kvm/kvm.c 5 additions, 0 deletionstarget/i386/kvm/kvm.c
- target/mips/kvm.c 1 addition, 1 deletiontarget/mips/kvm.c
- target/mips/kvm_mips.h 0 additions, 9 deletionstarget/mips/kvm_mips.h
- target/ppc/kvm.c 5 additions, 0 deletionstarget/ppc/kvm.c
- target/riscv/kvm.c 5 additions, 0 deletionstarget/riscv/kvm.c
- target/s390x/kvm/kvm.c 5 additions, 0 deletionstarget/s390x/kvm/kvm.c
Loading
Please register or sign in to comment