@@ -519,7 +519,7 @@ static int FNAME(walk_addr)(struct guest_walker *walker,
519
519
520
520
static bool
521
521
FNAME (prefetch_gpte )(struct kvm_vcpu * vcpu , struct kvm_mmu_page * sp ,
522
- u64 * spte , pt_element_t gpte , bool no_dirty_log )
522
+ u64 * spte , pt_element_t gpte )
523
523
{
524
524
struct kvm_memory_slot * slot ;
525
525
unsigned pte_access ;
@@ -535,8 +535,7 @@ FNAME(prefetch_gpte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
535
535
pte_access = sp -> role .access & FNAME (gpte_access )(gpte );
536
536
FNAME (protect_clean_gpte )(vcpu -> arch .mmu , & pte_access , gpte );
537
537
538
- slot = gfn_to_memslot_dirty_bitmap (vcpu , gfn ,
539
- no_dirty_log && (pte_access & ACC_WRITE_MASK ));
538
+ slot = gfn_to_memslot_dirty_bitmap (vcpu , gfn , pte_access & ACC_WRITE_MASK );
540
539
if (!slot )
541
540
return false;
542
541
@@ -605,7 +604,7 @@ static void FNAME(pte_prefetch)(struct kvm_vcpu *vcpu, struct guest_walker *gw,
605
604
if (is_shadow_present_pte (* spte ))
606
605
continue ;
607
606
608
- if (!FNAME (prefetch_gpte )(vcpu , sp , spte , gptep [i ], true ))
607
+ if (!FNAME (prefetch_gpte )(vcpu , sp , spte , gptep [i ]))
609
608
break ;
610
609
}
611
610
}
0 commit comments