]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MTRR: do not map huge page for non-consistent range
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Mon, 15 Jun 2015 08:55:35 +0000 (16:55 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Jun 2015 15:16:29 +0000 (17:16 +0200)
commitf5df3690d7e6083cb5f5b9e52a73d07a0fc72a55
treed8e388b532c3dc805e9999f70fef4aa7034d6a9b
parent24ed14567dac684b5ec6710ba17a432c4cfa6992
KVM: MTRR: do not map huge page for non-consistent range

Based on Intel's SDM, mapping huge page which do not have consistent
memory cache for each 4k page will cause undefined behavior

In order to avoiding this kind of undefined behavior, we force to use
4k pages under this case

Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/mtrr.c
arch/x86/kvm/x86.h