diff options
author | Fuad Tabba <tabba@google.com> | 2023-07-31 14:40:31 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2023-08-08 22:18:05 +0300 |
commit | 4460a7dc77d00340c59f7e4252c65efd5fbe877b (patch) | |
tree | 9fe484c1da67900cd8150ea68ceab20a5c037926 /arch | |
parent | e21f3905f98ff1f72b06614440c2be93fda58b44 (diff) | |
download | linux-4460a7dc77d00340c59f7e4252c65efd5fbe877b.tar.xz |
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
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/kvm/mmu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c index d3b4feed460c..137b775d238b 100644 --- a/arch/arm64/kvm/mmu.c +++ b/arch/arm64/kvm/mmu.c @@ -1541,7 +1541,6 @@ static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa, out_unlock: read_unlock(&kvm->mmu_lock); - kvm_set_pfn_accessed(pfn); kvm_release_pfn_clean(pfn); return ret != -EAGAIN ? ret : 0; } |