History

KVM: Simplify kvm_free_memslot() and all its descendents

Now that all callers of kvm_free_memslot() pass NULL for @dont, remove the param from the top-level routine and all arch's implementations. No functional change intended.

Sean Christopherson committed 6 years ago

Commit e96c81e1 parent 5c0b4f314 files · +37 −61Browse files

Showing the changes to include/linux (1 of 14 files). Show all

Unified · Split

include/linux/kvm_host.h+1−2
@@ -669,8 +669,7 @@ int kvm_set_memory_region(struct kvm *kvm, · 668 unmodified lines
669669 const struct kvm_userspace_memory_region *mem);
670670 int __kvm_set_memory_region(struct kvm *kvm,
671671 const struct kvm_userspace_memory_region *mem);
672−void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free,
673− struct kvm_memory_slot *dont);
672+void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *slot);
674673 void kvm_arch_memslots_updated(struct kvm *kvm, u64 gen);
675674 int kvm_arch_prepare_memory_region(struct kvm *kvm,
676675 struct kvm_memory_slot *memslot,