aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorSheng Yang <sheng@linux.intel.com>2008-10-09 04:01:57 -0400
committerAvi Kivity <avi@redhat.com>2008-12-31 09:51:45 -0500
commit64d4d521757117aa5c1cfe79d3baa6cf57703f81 (patch)
treec12f1615e794408edd2930bd220722b6d5323938 /arch/x86/kvm/x86.c
parent74be52e3e6285fc6e872a2a7baea544106f399ea (diff)
KVM: Enable MTRR for EPT
The effective memory type of EPT is the mixture of MSR_IA32_CR_PAT and memory type field of EPT entry. Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 0edf75339f3a..f175b796c2a6 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2615,7 +2615,7 @@ int kvm_arch_init(void *opaque)
2615 kvm_mmu_set_nonpresent_ptes(0ull, 0ull); 2615 kvm_mmu_set_nonpresent_ptes(0ull, 0ull);
2616 kvm_mmu_set_base_ptes(PT_PRESENT_MASK); 2616 kvm_mmu_set_base_ptes(PT_PRESENT_MASK);
2617 kvm_mmu_set_mask_ptes(PT_USER_MASK, PT_ACCESSED_MASK, 2617 kvm_mmu_set_mask_ptes(PT_USER_MASK, PT_ACCESSED_MASK,
2618 PT_DIRTY_MASK, PT64_NX_MASK, 0); 2618 PT_DIRTY_MASK, PT64_NX_MASK, 0, 0);
2619 return 0; 2619 return 0;
2620 2620
2621out: 2621out: