Re: [PATCH v3 2/5] KVM: Add file back-pointer to struct kvm

From: Aneesh Kumar K . V

Date: Wed Sep 30 2026 - 03:26:47 EST


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