aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.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/svm.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/svm.c')
-rw-r--r--arch/x86/kvm/svm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 9c4ce657d963..05efc4ef75a6 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -1912,6 +1912,11 @@ static int get_npt_level(void)
1912#endif 1912#endif
1913} 1913}
1914 1914
1915static int svm_get_mt_mask_shift(void)
1916{
1917 return 0;
1918}
1919
1915static struct kvm_x86_ops svm_x86_ops = { 1920static struct kvm_x86_ops svm_x86_ops = {
1916 .cpu_has_kvm_support = has_svm, 1921 .cpu_has_kvm_support = has_svm,
1917 .disabled_by_bios = is_disabled, 1922 .disabled_by_bios = is_disabled,
@@ -1967,6 +1972,7 @@ static struct kvm_x86_ops svm_x86_ops = {
1967 1972
1968 .set_tss_addr = svm_set_tss_addr, 1973 .set_tss_addr = svm_set_tss_addr,
1969 .get_tdp_level = get_npt_level, 1974 .get_tdp_level = get_npt_level,
1975 .get_mt_mask_shift = svm_get_mt_mask_shift,
1970}; 1976};
1971 1977
1972static int __init svm_init(void) 1978static int __init svm_init(void)