Re: [PATCH] LoongArch: KVM: Remove unused function kvm_arch_flush_remote_tlbs_memslot()
Tao Cui <[email protected]>
| Newsgroups | dev.linux.lists.loongarch,org.kernel.vger.kvm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
在 2026/8/12 12:01, Bibo Mao 写道: > Function kvm_arch_flush_remote_tlbs_memslot() is not called any more, > and it is unused. Here remove this API. > > Signed-off-by: Bibo Mao <[email protected]> > --- > arch/loongarch/include/asm/kvm_host.h | 1 - > arch/loongarch/kvm/mmu.c | 6 ------ > 2 files changed, 7 deletions(-) > > diff --git a/arch/loongarch/include/asm/kvm_host.h b/arch/loongarch/include/asm/kvm_host.h > index 23cfbecebbd7..5682b8c847d1 100644 > --- a/arch/loongarch/include/asm/kvm_host.h > +++ b/arch/loongarch/include/asm/kvm_host.h > @@ -350,7 +350,6 @@ static inline void kvm_arch_vcpu_block_finish(struct kvm_vcpu *vcpu) {} > static inline void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *slot) {} > void kvm_check_vpid(struct kvm_vcpu *vcpu); > enum hrtimer_restart kvm_swtimer_wakeup(struct hrtimer *timer); > -void kvm_arch_flush_remote_tlbs_memslot(struct kvm *kvm, const struct kvm_memory_slot *memslot); > void kvm_init_vmcs(struct kvm *kvm); > void kvm_exc_entry(void); > int kvm_enter_guest(struct kvm_run *run, struct kvm_vcpu *vcpu); > diff --git a/arch/loongarch/kvm/mmu.c b/arch/loongarch/kvm/mmu.c > index e104897aa532..2c08402bfd3e 100644 > --- a/arch/loongarch/kvm/mmu.c > +++ b/arch/loongarch/kvm/mmu.c > @@ -939,9 +939,3 @@ int kvm_handle_mm_fault(struct kvm_vcpu *vcpu, unsigned long gpa, bool write, in > void kvm_arch_sync_dirty_log(struct kvm *kvm, struct kvm_memory_slot *memslot) > { > } > - > -void kvm_arch_flush_remote_tlbs_memslot(struct kvm *kvm, > - const struct kvm_memory_slot *memslot) > -{ > - kvm_flush_remote_tlbs(kvm); > -} > > base-commit: f5bbbfec59b4e2fb7520a91de3df8a6174325d6a Reviewed-by: Tao Cui <[email protected]>