aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorSheng Yang <sheng@linux.intel.com>2009-04-27 08:35:42 -0400
committerAvi Kivity <avi@redhat.com>2009-06-10 04:48:49 -0400
commit4b12f0de33a64dfc624b2480f55b674f7fa23ef2 (patch)
treeed12e1230b777add7aae2b7d24fa82f8e4efbb34 /arch/x86/kvm/svm.c
parent9b62e5b10ff0f98346bcbe4a4fe3a0ca8fa7be30 (diff)
KVM: Replace get_mt_mask_shift with get_mt_mask
Shadow_mt_mask is out of date, now it have only been used as a flag to indicate if TDP enabled. Get rid of it and use tdp_enabled instead. Also put memory type logical in kvm_x86_ops->get_mt_mask(). 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index d96a6d3edec7..63503782935d 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -2589,7 +2589,7 @@ static int get_npt_level(void)
2589#endif 2589#endif
2590} 2590}
2591 2591
2592static int svm_get_mt_mask_shift(void) 2592static u64 svm_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio)
2593{ 2593{
2594 return 0; 2594 return 0;
2595} 2595}
@@ -2652,7 +2652,7 @@ static struct kvm_x86_ops svm_x86_ops = {
2652 2652
2653 .set_tss_addr = svm_set_tss_addr, 2653 .set_tss_addr = svm_set_tss_addr,
2654 .get_tdp_level = get_npt_level, 2654 .get_tdp_level = get_npt_level,
2655 .get_mt_mask_shift = svm_get_mt_mask_shift, 2655 .get_mt_mask = svm_get_mt_mask,
2656}; 2656};
2657 2657
2658static int __init svm_init(void) 2658static int __init svm_init(void)