On Wed, May 13, 2020 at 04:42:37PM +0800, Huacai Chen wrote: > Loongson-3 has lddir/ldpte instructions and their related CP0 registers > are the same as HTW. So we introduce a cpu_guest_has_ldpte flag and use > it to indicate whether we need to save/restore HTW related CP0 registers > (PWBase, PWSize, PWField and PWCtl). > > Reviewed-by: Aleksandar Markovic <aleksandar.qemu.devel@xxxxxxxxx> > Signed-off-by: Huacai Chen <chenhc@xxxxxxxxxx> > Co-developed-by: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> > --- > arch/mips/include/asm/cpu-features.h | 3 +++ > arch/mips/kernel/cpu-probe.c | 1 + > arch/mips/kvm/vz.c | 26 +++++++++++++------------- > 3 files changed, 17 insertions(+), 13 deletions(-) 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 ]