]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MIPS: Enable KVM support for Loongson-3
authorHuacai Chen <chenhc@lemote.com>
Sat, 23 May 2020 07:56:41 +0000 (15:56 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jun 2020 17:51:53 +0000 (13:51 -0400)
commit381bacaebfb8d4cf9d1bb9f92accb11c3d5fb491
tree6438828e454aac7fed9d9efaf21df7c275183fd9
parent70129f1472bc4de5ff62cbb2ff17e4cfcebd93fe
KVM: MIPS: Enable KVM support for Loongson-3

This patch enable KVM support for Loongson-3 by selecting HAVE_KVM, but
only enable KVM/VZ on Loongson-3A R4+ (because VZ of early processors
are incomplete). Besides, Loongson-3 support SMP guests, so we clear the
linked load bit of LLAddr in kvm_vz_vcpu_load() if the guest has more
than one VCPUs.

Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Reviewed-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: <1590220602-3547-15-git-send-email-chenhc@lemote.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/Kconfig
arch/mips/kernel/cpu-probe.c
arch/mips/kvm/vz.c