]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MIPS: Add CONFIG6 and DIAG registers emulation
authorHuacai Chen <chenhc@lemote.com>
Sat, 23 May 2020 07:56:39 +0000 (15:56 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jun 2020 17:51:45 +0000 (13:51 -0400)
commit01b9e24456470a2822b4ee381eb0ebf3ccc3ff6c
treec901cd23c5fb2f2ec7753363cb2fd0846d7efe5a
parent3b8cd255059fb2c9d3e6d75e3e2683ca5df8bcad
KVM: MIPS: Add CONFIG6 and DIAG registers emulation

Loongson-3 has CONFIG6 and DIAG registers which need to be emulated.
CONFIG6 is mostly used to enable/disable FTLB and SFB, while DIAG is
mostly used to flush BTB, ITLB, DTLB, VTLB and FTLB.

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-13-git-send-email-chenhc@lemote.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/include/asm/kvm_host.h
arch/mips/include/asm/mipsregs.h
arch/mips/kvm/tlb.c
arch/mips/kvm/vz.c