diff options
author | Sheng Yang <sheng@linux.intel.com> | 2008-10-09 04:01:57 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 09:51:45 -0500 |
commit | 64d4d521757117aa5c1cfe79d3baa6cf57703f81 (patch) | |
tree | c12f1615e794408edd2930bd220722b6d5323938 /arch/x86/include/asm/kvm_host.h | |
parent | 74be52e3e6285fc6e872a2a7baea544106f399ea (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/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 8082e87f628d..93040b5eed96 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -483,6 +483,7 @@ struct kvm_x86_ops { | |||
483 | 483 | ||
484 | int (*set_tss_addr)(struct kvm *kvm, unsigned int addr); | 484 | int (*set_tss_addr)(struct kvm *kvm, unsigned int addr); |
485 | int (*get_tdp_level)(void); | 485 | int (*get_tdp_level)(void); |
486 | int (*get_mt_mask_shift)(void); | ||
486 | }; | 487 | }; |
487 | 488 | ||
488 | extern struct kvm_x86_ops *kvm_x86_ops; | 489 | extern struct kvm_x86_ops *kvm_x86_ops; |
@@ -496,7 +497,7 @@ int kvm_mmu_setup(struct kvm_vcpu *vcpu); | |||
496 | void kvm_mmu_set_nonpresent_ptes(u64 trap_pte, u64 notrap_pte); | 497 | void kvm_mmu_set_nonpresent_ptes(u64 trap_pte, u64 notrap_pte); |
497 | void kvm_mmu_set_base_ptes(u64 base_pte); | 498 | void kvm_mmu_set_base_ptes(u64 base_pte); |
498 | void kvm_mmu_set_mask_ptes(u64 user_mask, u64 accessed_mask, | 499 | void kvm_mmu_set_mask_ptes(u64 user_mask, u64 accessed_mask, |
499 | u64 dirty_mask, u64 nx_mask, u64 x_mask); | 500 | u64 dirty_mask, u64 nx_mask, u64 x_mask, u64 mt_mask); |
500 | 501 | ||
501 | int kvm_mmu_reset_context(struct kvm_vcpu *vcpu); | 502 | int kvm_mmu_reset_context(struct kvm_vcpu *vcpu); |
502 | void kvm_mmu_slot_remove_write_access(struct kvm *kvm, int slot); | 503 | void kvm_mmu_slot_remove_write_access(struct kvm *kvm, int slot); |