Re: [PATCH v2] vfio: Use file-based reference counting for KVM
From: Steffen Eiden
Date: Tue Sep 22 2026 - 04:08:22 EST
On Fri, Sep 18, 2026 at 12:38:11PM -0300, Jason Gunthorpe wrote:
> On Fri, Sep 18, 2026 at 03:45:43PM +0200, Steffen Eiden wrote:
> > I sent the changes incorporated in the main series[1] in 5 patches:
> >
> > KVM: Introduce file_to_kvm_<arch>() infrastructure - adds the macros
> > KVM: Add file back-pointer to struct kvm - adds the file field
> > KVM: x86: Use file_to_kvm_x86() in SEV
> > KVM/vfio: Use file-based reference counting for KVM - the swotch in one go
> > KVM: Restrict kvm_get_kvm/kvm_put_kvm export to internal KVM modules
> >
> > I needed to do the switch in one go (i.e. merge 5->3) otherwhise
> > there would be conflicts.
>
> It seems to me many people want this vfio conversion, can it try to go
> this cycle? IDK if it can meet that linked to the s390 stuff?
>
> Jason
yes, I will send a v3 later this week to this spin-off. Sory for not
making this clear in the original message.
I wanted to get some review input (from Sashiko) with the patches in
the main series before sending another round here potentially triggering
the same report twice.
Steffen