Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: Drop kvm_arch_sync_events() now that all implementations are nops

Remove kvm_arch_sync_events() now that x86 no longer uses it (no other
arch has ever used it).

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Acked-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-ID: <20250224235542.2562848-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Sean Christopherson and committed by
Paolo Bonzini
b2aba529 fd217326

-15
-2
arch/arm64/include/asm/kvm_host.h
··· 1334 1334 return cpus_have_final_cap(ARM64_SPECTRE_V3A); 1335 1335 } 1336 1336 1337 - static inline void kvm_arch_sync_events(struct kvm *kvm) {} 1338 - 1339 1337 void kvm_init_host_debug_data(void); 1340 1338 void kvm_vcpu_load_debug(struct kvm_vcpu *vcpu); 1341 1339 void kvm_vcpu_put_debug(struct kvm_vcpu *vcpu);
-1
arch/loongarch/include/asm/kvm_host.h
··· 320 320 321 321 /* Misc */ 322 322 static inline void kvm_arch_hardware_unsetup(void) {} 323 - static inline void kvm_arch_sync_events(struct kvm *kvm) {} 324 323 static inline void kvm_arch_memslots_updated(struct kvm *kvm, u64 gen) {} 325 324 static inline void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) {} 326 325 static inline void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu) {}
-1
arch/mips/include/asm/kvm_host.h
··· 886 886 extern int kvm_vcpu_ioctl_interrupt(struct kvm_vcpu *vcpu, 887 887 struct kvm_mips_interrupt *irq); 888 888 889 - static inline void kvm_arch_sync_events(struct kvm *kvm) {} 890 889 static inline void kvm_arch_free_memslot(struct kvm *kvm, 891 890 struct kvm_memory_slot *slot) {} 892 891 static inline void kvm_arch_memslots_updated(struct kvm *kvm, u64 gen) {}
-1
arch/powerpc/include/asm/kvm_host.h
··· 902 902 #define __KVM_HAVE_ARCH_WQP 903 903 #define __KVM_HAVE_CREATE_DEVICE 904 904 905 - static inline void kvm_arch_sync_events(struct kvm *kvm) {} 906 905 static inline void kvm_arch_memslots_updated(struct kvm *kvm, u64 gen) {} 907 906 static inline void kvm_arch_flush_shadow_all(struct kvm *kvm) {} 908 907 static inline void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) {}
-2
arch/riscv/include/asm/kvm_host.h
··· 301 301 return IS_ENABLED(CONFIG_GUEST_PERF_EVENTS) && !!vcpu; 302 302 } 303 303 304 - static inline void kvm_arch_sync_events(struct kvm *kvm) {} 305 - 306 304 #define KVM_RISCV_GSTAGE_TLB_MIN_ORDER 12 307 305 308 306 void kvm_riscv_local_hfence_gvma_vmid_gpa(unsigned long vmid,
-1
arch/s390/include/asm/kvm_host.h
··· 1056 1056 extern int kvm_s390_gisc_register(struct kvm *kvm, u32 gisc); 1057 1057 extern int kvm_s390_gisc_unregister(struct kvm *kvm, u32 gisc); 1058 1058 1059 - static inline void kvm_arch_sync_events(struct kvm *kvm) {} 1060 1059 static inline void kvm_arch_free_memslot(struct kvm *kvm, 1061 1060 struct kvm_memory_slot *slot) {} 1062 1061 static inline void kvm_arch_memslots_updated(struct kvm *kvm, u64 gen) {}
-5
arch/x86/kvm/x86.c
··· 12757 12757 return ret; 12758 12758 } 12759 12759 12760 - void kvm_arch_sync_events(struct kvm *kvm) 12761 - { 12762 - 12763 - } 12764 - 12765 12760 /** 12766 12761 * __x86_set_memory_region: Setup KVM internal memory slot 12767 12762 *
-1
include/linux/kvm_host.h
··· 1746 1746 1747 1747 int kvm_arch_init_vm(struct kvm *kvm, unsigned long type); 1748 1748 void kvm_arch_destroy_vm(struct kvm *kvm); 1749 - void kvm_arch_sync_events(struct kvm *kvm); 1750 1749 1751 1750 int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu); 1752 1751
-1
virt/kvm/kvm_main.c
··· 1262 1262 kvm_destroy_pm_notifier(kvm); 1263 1263 kvm_uevent_notify_change(KVM_EVENT_DESTROY_VM, kvm); 1264 1264 kvm_destroy_vm_debugfs(kvm); 1265 - kvm_arch_sync_events(kvm); 1266 1265 mutex_lock(&kvm_lock); 1267 1266 list_del(&kvm->vm_list); 1268 1267 mutex_unlock(&kvm_lock);