Skip to content

Commit 5257de9

Browse files
committed
KVM: remove unused argument of kvm_handle_hva_range()
The only user was kvm_mmu_notifier_change_pte(), which is now gone. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240405115815.3226315-3-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent f3b65bb commit 5257de9

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

virt/kvm/kvm_main.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,6 @@ static void kvm_null_fn(void)
583583
}
584584
#define IS_KVM_NULL_FN(fn) ((fn) == (void *)kvm_null_fn)
585585

586-
static const union kvm_mmu_notifier_arg KVM_MMU_NOTIFIER_NO_ARG;
587-
588586
/* Iterate over each memslot intersecting [start, last] (inclusive) range */
589587
#define kvm_for_each_memslot_in_hva_range(node, slots, start, last) \
590588
for (node = interval_tree_iter_first(&slots->hva_tree, start, last); \
@@ -670,14 +668,12 @@ static __always_inline kvm_mn_ret_t __kvm_handle_hva_range(struct kvm *kvm,
670668
static __always_inline int kvm_handle_hva_range(struct mmu_notifier *mn,
671669
unsigned long start,
672670
unsigned long end,
673-
union kvm_mmu_notifier_arg arg,
674671
gfn_handler_t handler)
675672
{
676673
struct kvm *kvm = mmu_notifier_to_kvm(mn);
677674
const struct kvm_mmu_notifier_range range = {
678675
.start = start,
679676
.end = end,
680-
.arg = arg,
681677
.handler = handler,
682678
.on_lock = (void *)kvm_null_fn,
683679
.flush_on_ret = true,
@@ -868,8 +864,7 @@ static int kvm_mmu_notifier_clear_flush_young(struct mmu_notifier *mn,
868864
{
869865
trace_kvm_age_hva(start, end);
870866

871-
return kvm_handle_hva_range(mn, start, end, KVM_MMU_NOTIFIER_NO_ARG,
872-
kvm_age_gfn);
867+
return kvm_handle_hva_range(mn, start, end, kvm_age_gfn);
873868
}
874869

875870
static int kvm_mmu_notifier_clear_young(struct mmu_notifier *mn,

0 commit comments

Comments
 (0)