[PATCH v4 01/27] VFIO: take reference to the KVM module

Sean Christopherson seanjc at google.com
Mon Jul 6 14:12:55 PDT 2026


On Mon, Jul 06, 2026, Jason Gunthorpe wrote:
> On Mon, Jul 06, 2026 at 10:52:01AM +0200, Steffen Eiden wrote:
> > From: Paolo Bonzini <pbonzini at redhat.com>
> > 
> > VFIO is implicitly taking a reference to the KVM module between
> > vfio_device_get_kvm_safe and vfio_device_put_kvm, thanks to
> > symbol_get and symbol_put.
> 
> I thought we weren't doing this approach? Use the struct file as the
> kvm handle. I thought I saw patches doing that already?

+1, my joking-but-serious NAK stands.

https://lore.kernel.org/all/adf29Rn7q9Db0hxc@google.com



More information about the linux-arm-kernel mailing list