Skip to content

Commit 26cdea4

Browse files
Alexandru EliseiOliver Upton
authored andcommitted
KVM: arm64: Remove extra argument for __pvkm_host_{share,unshare}_hyp()
__pvkm_host_share_hyp() and __pkvm_host_unshare_hyp() both have one parameter, the pfn, not two. Even though correctness isn't impacted because the SMCCC handlers pass the first argument and ignore the second one, let's call the functions with the proper number of arguments. Reviewed-by: Fuad Tabba <tabba@google.com> Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> Reviewed-by: Marc Zyngier <maz@kernel.org> Tested-by: Fuad Tabba <tabba@google.com> Link: https://msgid.link/20251216103053.47224-4-alexandru.elisei@arm.com Signed-off-by: Oliver Upton <oupton@kernel.org>
1 parent aba963c commit 26cdea4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/arm64/kvm/mmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ static int share_pfn_hyp(u64 pfn)
497497
this->count = 1;
498498
rb_link_node(&this->node, parent, node);
499499
rb_insert_color(&this->node, &hyp_shared_pfns);
500-
ret = kvm_call_hyp_nvhe(__pkvm_host_share_hyp, pfn, 1);
500+
ret = kvm_call_hyp_nvhe(__pkvm_host_share_hyp, pfn);
501501
unlock:
502502
mutex_unlock(&hyp_shared_pfns_lock);
503503

@@ -523,7 +523,7 @@ static int unshare_pfn_hyp(u64 pfn)
523523

524524
rb_erase(&this->node, &hyp_shared_pfns);
525525
kfree(this);
526-
ret = kvm_call_hyp_nvhe(__pkvm_host_unshare_hyp, pfn, 1);
526+
ret = kvm_call_hyp_nvhe(__pkvm_host_unshare_hyp, pfn);
527527
unlock:
528528
mutex_unlock(&hyp_shared_pfns_lock);
529529

0 commit comments

Comments
 (0)