]> 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)
commit73d204e8aa1f69843754ce7a844e1503d45ae77c
treed8e388b532c3dc805e9999f70fef4aa7034d6a9b
parent3785acd7847a66a95194497eb1485e70361c383a
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