Re: [PATCH V3 02/14] KVM: MIPS: Fix VPN2_MASK definition for variable cpu_vmbits

2020-05-08 Thread Aleksandar Markovic
нед, 3. мај 2020. у 12:07 Huacai Chen је написао/ла: > > From: Xing Li > > If a CPU support more than 32bit vmbits (which is true for 64bit CPUs), > VPN2_MASK set to fixed 0xe000 will lead to a wrong EntryHi in some > functions such as _kvm_mips_host_tlb_inv(). > > The cpu_vmbits definition o

[PATCH V3 02/14] KVM: MIPS: Fix VPN2_MASK definition for variable cpu_vmbits

2020-05-03 Thread Huacai Chen
From: Xing Li If a CPU support more than 32bit vmbits (which is true for 64bit CPUs), VPN2_MASK set to fixed 0xe000 will lead to a wrong EntryHi in some functions such as _kvm_mips_host_tlb_inv(). The cpu_vmbits definition of 32bit CPU in cpu-features.h is 31, so we still use the old definit