On Wed, May 13, 2020 at 04:42:43PM +0800, Huacai Chen wrote: > 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. > > Signed-off-by: Huacai Chen <chenhc@xxxxxxxxxx> > Co-developed-by: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> > --- > arch/mips/include/asm/kvm_host.h | 7 +++++ > arch/mips/include/asm/mipsregs.h | 7 +++++ > arch/mips/kvm/tlb.c | 41 ++++++++++++++++++++++++++ > arch/mips/kvm/vz.c | 62 +++++++++++++++++++++++++++++++++++++++- > 4 files changed, 116 insertions(+), 1 deletion(-) Acked-by: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx> Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]