]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Set IGMT bit in EPT entry
authorSheng Yang <sheng@linux.intel.com>
Thu, 6 Nov 2008 06:55:45 +0000 (14:55 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 11 Nov 2008 19:00:37 +0000 (21:00 +0200)
commit3b25044aa71a3d19243a30b276cbcc591d3b1f09
tree3df5209cb7f85fddd8374dab314d31843d59e8fd
parent7f6caba7c5d9ab342ddb7a9ef1273b1070d2cf6f
KVM: VMX: Set IGMT bit in EPT entry

There is a potential issue that, when guest using pagetable without vmexit when
EPT enabled, guest would use PAT/PCD/PWT bits to index PAT msr for it's memory,
which would be inconsistent with host side and would cause host MCE due to
inconsistent cache attribute.

The patch set IGMT bit in EPT entry to ignore guest PAT and use WB as default
memory type to protect host (notice that all memory mapped by KVM should be WB).

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c
arch/x86/kvm/vmx.h