diff options
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 6e248d80e350..3ce56bfe056e 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -1980,7 +1980,7 @@ static int set_spte(struct kvm_vcpu *vcpu, u64 *sptep, | |||
1980 | spte |= shadow_user_mask; | 1980 | spte |= shadow_user_mask; |
1981 | if (level > PT_PAGE_TABLE_LEVEL) | 1981 | if (level > PT_PAGE_TABLE_LEVEL) |
1982 | spte |= PT_PAGE_SIZE_MASK; | 1982 | spte |= PT_PAGE_SIZE_MASK; |
1983 | if (vcpu->arch.mmu.direct_map) | 1983 | if (tdp_enabled) |
1984 | spte |= kvm_x86_ops->get_mt_mask(vcpu, gfn, | 1984 | spte |= kvm_x86_ops->get_mt_mask(vcpu, gfn, |
1985 | kvm_is_mmio_pfn(pfn)); | 1985 | kvm_is_mmio_pfn(pfn)); |
1986 | 1986 | ||