OSDN Git Service

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)
commit6a39bbc5da27c3b2520876b71e4f7b50f5313503
treed8e388b532c3dc805e9999f70fef4aa7034d6a9b
parentfa61213746a706dd975661151c35795ca4dd82c2
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