diff options
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index bcfaf7e4a2dc..20fb3c852db7 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -1343,7 +1343,7 @@ static int tdp_page_fault(struct kvm_vcpu *vcpu, gva_t gpa, | |||
1343 | spin_lock(&vcpu->kvm->mmu_lock); | 1343 | spin_lock(&vcpu->kvm->mmu_lock); |
1344 | kvm_mmu_free_some_pages(vcpu); | 1344 | kvm_mmu_free_some_pages(vcpu); |
1345 | r = __direct_map(vcpu, gpa, error_code & PFERR_WRITE_MASK, | 1345 | r = __direct_map(vcpu, gpa, error_code & PFERR_WRITE_MASK, |
1346 | largepage, gfn, pfn, TDP_ROOT_LEVEL); | 1346 | largepage, gfn, pfn, kvm_x86_ops->get_tdp_level()); |
1347 | spin_unlock(&vcpu->kvm->mmu_lock); | 1347 | spin_unlock(&vcpu->kvm->mmu_lock); |
1348 | 1348 | ||
1349 | return r; | 1349 | return r; |
@@ -1450,7 +1450,7 @@ static int init_kvm_tdp_mmu(struct kvm_vcpu *vcpu) | |||
1450 | context->page_fault = tdp_page_fault; | 1450 | context->page_fault = tdp_page_fault; |
1451 | context->free = nonpaging_free; | 1451 | context->free = nonpaging_free; |
1452 | context->prefetch_page = nonpaging_prefetch_page; | 1452 | context->prefetch_page = nonpaging_prefetch_page; |
1453 | context->shadow_root_level = TDP_ROOT_LEVEL; | 1453 | context->shadow_root_level = kvm_x86_ops->get_tdp_level(); |
1454 | context->root_hpa = INVALID_PAGE; | 1454 | context->root_hpa = INVALID_PAGE; |
1455 | 1455 | ||
1456 | if (!is_paging(vcpu)) { | 1456 | if (!is_paging(vcpu)) { |