Commit 5257de95 authored by Paolo Bonzini's avatar Paolo Bonzini

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240405115815.3226315-3-pbonzini@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent f3b65bba
...@@ -583,8 +583,6 @@ static void kvm_null_fn(void) ...@@ -583,8 +583,6 @@ static void kvm_null_fn(void)
} }
#define IS_KVM_NULL_FN(fn) ((fn) == (void *)kvm_null_fn) #define IS_KVM_NULL_FN(fn) ((fn) == (void *)kvm_null_fn)
static const union kvm_mmu_notifier_arg KVM_MMU_NOTIFIER_NO_ARG;
/* Iterate over each memslot intersecting [start, last] (inclusive) range */ /* Iterate over each memslot intersecting [start, last] (inclusive) range */
#define kvm_for_each_memslot_in_hva_range(node, slots, start, last) \ #define kvm_for_each_memslot_in_hva_range(node, slots, start, last) \
for (node = interval_tree_iter_first(&slots->hva_tree, start, last); \ 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, ...@@ -670,14 +668,12 @@ static __always_inline kvm_mn_ret_t __kvm_handle_hva_range(struct kvm *kvm,
static __always_inline int kvm_handle_hva_range(struct mmu_notifier *mn, static __always_inline int kvm_handle_hva_range(struct mmu_notifier *mn,
unsigned long start, unsigned long start,
unsigned long end, unsigned long end,
union kvm_mmu_notifier_arg arg,
gfn_handler_t handler) gfn_handler_t handler)
{ {
struct kvm *kvm = mmu_notifier_to_kvm(mn); struct kvm *kvm = mmu_notifier_to_kvm(mn);
const struct kvm_mmu_notifier_range range = { const struct kvm_mmu_notifier_range range = {
.start = start, .start = start,
.end = end, .end = end,
.arg = arg,
.handler = handler, .handler = handler,
.on_lock = (void *)kvm_null_fn, .on_lock = (void *)kvm_null_fn,
.flush_on_ret = true, .flush_on_ret = true,
...@@ -868,8 +864,7 @@ static int kvm_mmu_notifier_clear_flush_young(struct mmu_notifier *mn, ...@@ -868,8 +864,7 @@ static int kvm_mmu_notifier_clear_flush_young(struct mmu_notifier *mn,
{ {
trace_kvm_age_hva(start, end); trace_kvm_age_hva(start, end);
return kvm_handle_hva_range(mn, start, end, KVM_MMU_NOTIFIER_NO_ARG, return kvm_handle_hva_range(mn, start, end, kvm_age_gfn);
kvm_age_gfn);
} }
static int kvm_mmu_notifier_clear_young(struct mmu_notifier *mn, static int kvm_mmu_notifier_clear_young(struct mmu_notifier *mn,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment