Re: [PATCH v2 0/2] kvm_io_bus_unregister_dev cleanup
From: Sean Christopherson
Date: Tue Jun 13 2023 - 19:21:32 EST
On Tue, 07 Feb 2023 20:37:11 +0800, Wei Wang wrote:
> This patchset moves kvm io_device destruction into
> kvm_io_bus_unregister_dev. This reduces LOCs a bit for users and can
> avoid the leakage of destructing the device explicitly.
> Accordingly, below cleanups are included:
> - remove the exposure of kvm_iodevice_destructor and the invocation in
> the users as kvm_iodevice_destructor is now invoked in
> kvm_io_bus_unregister_dev;
> - Change kvm_deassign_ioeventfd_idx to use list_for_each_entry as the
> loop ends at the entry that's founded and deleted.
>
> [...]
Applied to kvm-x86 generic, thanks!
[1/2] KVM: destruct kvm_io_device while unregistering it from kvm_io_bus
https://github.com/kvm-x86/linux/commit/5ea5ca3c2b4b
[2/2] kvm/eventfd: use list_for_each_entry when deassign ioeventfd
https://github.com/kvm-x86/linux/commit/cc77b95acf3c
--
https://github.com/kvm-x86/linux/tree/next
https://github.com/kvm-x86/linux/tree/fixes