diff options
author | Sheng Yang <sheng.yang@intel.com> | 2008-04-25 21:13:50 +0800 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-05-04 14:44:38 +0300 |
commit | 7b52345e2c4c7333bf7eba8034ffc4683fa63c91 (patch) | |
tree | 3b7bc1cb9c067ae18fcfcee33d57ab3a6d46f9d1 /arch/x86/kvm/x86.c | |
parent | 67253af52e9133fb4cfbf7a2448a2d3524d1fa6c (diff) |
KVM: MMU: Add EPT support
Enable kvm_set_spte() to generate EPT entries.
Signed-off-by: Sheng Yang <sheng.yang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 0ce556372a4..0735efbfa71 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2417,6 +2417,9 @@ int kvm_arch_init(void *opaque) kvm_x86_ops = ops; kvm_mmu_set_nonpresent_ptes(0ull, 0ull); + kvm_mmu_set_base_ptes(PT_PRESENT_MASK); + kvm_mmu_set_mask_ptes(PT_USER_MASK, PT_ACCESSED_MASK, + PT_DIRTY_MASK, PT64_NX_MASK, 0); return 0; out: |