diff options
author | Sheng Yang <sheng@linux.intel.com> | 2008-11-06 07:55:45 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-11-11 20:00:37 +0100 |
commit | 928d4bf747e9c290b690ff515d8f81e8ee226d97 (patch) | |
tree | 3df5209cb7f85fddd8374dab314d31843d59e8fd /arch/x86/kvm/vmx.h | |
parent | KVM: Require the PCI subsystem (diff) | |
download | linux-928d4bf747e9c290b690ff515d8f81e8ee226d97.tar.xz linux-928d4bf747e9c290b690ff515d8f81e8ee226d97.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | arch/x86/kvm/vmx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.h b/arch/x86/kvm/vmx.h index 3e010d21fdd7..ec5edc339da6 100644 --- a/arch/x86/kvm/vmx.h +++ b/arch/x86/kvm/vmx.h @@ -352,6 +352,7 @@ enum vmcs_field { #define VMX_EPT_READABLE_MASK 0x1ull #define VMX_EPT_WRITABLE_MASK 0x2ull #define VMX_EPT_EXECUTABLE_MASK 0x4ull +#define VMX_EPT_IGMT_BIT (1ull << 6) #define VMX_EPT_IDENTITY_PAGETABLE_ADDR 0xfffbc000ul |