aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/paging_tmpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/paging_tmpl.h')
-rw-r--r--arch/x86/kvm/paging_tmpl.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h
index d8fdc5cd2e5f..11650eac1c6e 100644
--- a/arch/x86/kvm/paging_tmpl.h
+++ b/arch/x86/kvm/paging_tmpl.h
@@ -475,8 +475,8 @@ FNAME(prefetch_gpte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
475 * we call mmu_set_spte() with host_writable = true because 475 * we call mmu_set_spte() with host_writable = true because
476 * pte_prefetch_gfn_to_pfn always gets a writable pfn. 476 * pte_prefetch_gfn_to_pfn always gets a writable pfn.
477 */ 477 */
478 mmu_set_spte(vcpu, spte, pte_access, 0, NULL, PT_PAGE_TABLE_LEVEL, 478 mmu_set_spte(vcpu, spte, pte_access, 0, PT_PAGE_TABLE_LEVEL, gfn, pfn,
479 gfn, pfn, true, true); 479 true, true);
480 480
481 return true; 481 return true;
482} 482}
@@ -556,7 +556,7 @@ static int FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
556 struct kvm_mmu_page *sp = NULL; 556 struct kvm_mmu_page *sp = NULL;
557 struct kvm_shadow_walk_iterator it; 557 struct kvm_shadow_walk_iterator it;
558 unsigned direct_access, access = gw->pt_access; 558 unsigned direct_access, access = gw->pt_access;
559 int top_level, emulate = 0; 559 int top_level, emulate;
560 560
561 direct_access = gw->pte_access; 561 direct_access = gw->pte_access;
562 562
@@ -622,8 +622,8 @@ static int FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,
622 } 622 }
623 623
624 clear_sp_write_flooding_count(it.sptep); 624 clear_sp_write_flooding_count(it.sptep);
625 mmu_set_spte(vcpu, it.sptep, gw->pte_access, write_fault, &emulate, 625 emulate = mmu_set_spte(vcpu, it.sptep, gw->pte_access, write_fault,
626 it.level, gw->gfn, pfn, prefault, map_writable); 626 it.level, gw->gfn, pfn, prefault, map_writable);
627 FNAME(pte_prefetch)(vcpu, gw, it.sptep); 627 FNAME(pte_prefetch)(vcpu, gw, it.sptep);
628 628
629 return emulate; 629 return emulate;