Re: [PATCH v3 2/5] KVM: Add file back-pointer to struct kvm
From: Steffen Eiden
Date: Thu Oct 01 2026 - 07:58:01 EST
On Wed, Sep 30, 2026 at 12:49:02PM +0530, Aneesh Kumar K.V wrote:
> Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxx> writes:
>
> > Steffen Eiden <seiden@xxxxxxxxxxxxx> writes:
> >
> >> Add kvm->file as a no-reference back-pointer to the VM file in struct
> >> kvm. The pointer is set at VM creation time and cleared under
> >> WRITE_ONCE() in kvm_vm_release() before the file is freed.
> >> Callers storing the file must take their own reference.
> >>
> >
> > I have a series that does something similar and also updates VFIO:
> >
> > https://lore.kernel.org/all/20260917140159.1163281-2-aneesh.kumar@xxxxxxxxxx
> >
> > Any suggestions on how we can combine the two efforts? This series has
> > received more feedback from maintainers.
> >
>
> I compared the full series and will rebase my work on v4 of this series.
>
> -aneesh
It looks like that the first patch oy your series is more or less
containend in my. So rebasing seems the right approach to me.
FYI: v4 is out there:
https://lore.kernel.org/all/20260928-vfio-v4-0-e32e226d5932@xxxxxxxxxxxxx/
Steffen