diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-04-27 08:35:42 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-06-10 04:48:49 -0400 |
commit | 4b12f0de33a64dfc624b2480f55b674f7fa23ef2 (patch) | |
tree | ed12e1230b777add7aae2b7d24fa82f8e4efbb34 /arch/x86/kvm/x86.c | |
parent | 9b62e5b10ff0f98346bcbe4a4fe3a0ca8fa7be30 (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/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index e2713716e732..dd056826f675 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -2772,7 +2772,7 @@ int kvm_arch_init(void *opaque) | |||
2772 | kvm_mmu_set_nonpresent_ptes(0ull, 0ull); | 2772 | kvm_mmu_set_nonpresent_ptes(0ull, 0ull); |
2773 | kvm_mmu_set_base_ptes(PT_PRESENT_MASK); | 2773 | kvm_mmu_set_base_ptes(PT_PRESENT_MASK); |
2774 | kvm_mmu_set_mask_ptes(PT_USER_MASK, PT_ACCESSED_MASK, | 2774 | kvm_mmu_set_mask_ptes(PT_USER_MASK, PT_ACCESSED_MASK, |
2775 | PT_DIRTY_MASK, PT64_NX_MASK, 0, 0); | 2775 | PT_DIRTY_MASK, PT64_NX_MASK, 0); |
2776 | 2776 | ||
2777 | for_each_possible_cpu(cpu) | 2777 | for_each_possible_cpu(cpu) |
2778 | per_cpu(cpu_tsc_khz, cpu) = tsc_khz; | 2778 | per_cpu(cpu_tsc_khz, cpu) = tsc_khz; |