Re: [PATCH v2] vfio: Use file-based reference counting for KVM
From: Jason Gunthorpe
Date: Fri Sep 18 2026 - 12:15:21 EST
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