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)
commit8a5097ee90c25656db23f44520a9dad7983d88fb
treec901cd23c5fb2f2ec7753363cb2fd0846d7efe5a
parent7f2a83f1c2a941ebfee53f504ed5fdbc61cfb333
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