Skip to content

Commit 4460a7d

Browse files
Fuad TabbaMarc Zyngier
authored andcommitted
KVM: arm64: Remove redundant kvm_set_pfn_accessed() from user_mem_abort()
The function user_mem_abort() calls kvm_release_pfn_clean(), which eventually calls kvm_set_page_accessed(). Therefore, remove the redundant call to kvm_set_pfn_accessed(). Signed-off-by: Fuad Tabba <tabba@google.com> Reviewed-by: Shaoqin Huang <shahuang@redhat.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230731114110.2673451-1-tabba@google.com
1 parent e21f390 commit 4460a7d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/arm64/kvm/mmu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,6 @@ static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
15411541

15421542
out_unlock:
15431543
read_unlock(&kvm->mmu_lock);
1544-
kvm_set_pfn_accessed(pfn);
15451544
kvm_release_pfn_clean(pfn);
15461545
return ret != -EAGAIN ? ret : 0;
15471546
}

0 commit comments

Comments
 (0)