]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/mips: Implement the kvm_type() hook in MachineClass
authorHuacai Chen <zltjiangshi@gmail.com>
Wed, 24 Jun 2020 10:45:28 +0000 (18:45 +0800)
committerAleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Sat, 27 Jun 2020 17:35:39 +0000 (19:35 +0200)
commit719d109b7fe153b0ec4dfeba2f303f864555d819
tree96e5791640ece620ab8b020bb951f2d1769924ca
parent553cf5d7c47bee05a3dec9461c1f8430316d516b
hw/mips: Implement the kvm_type() hook in MachineClass

MIPS has two types of KVM: TE & VZ, and TE is the default type. Now we
can't create a VZ guest in QEMU because it lacks the kvm_type() hook in
MachineClass. This patch add the the kvm_type() hook to support both of
the two types.

[AM: Added "if defined" guards.]

Reviewed-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Signed-off-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Co-developed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Message-Id: <1592995531-32600-2-git-send-email-chenhc@lemote.com>
target/mips/kvm.c
target/mips/kvm_mips.h