Re: [PATCH v4 04/11] KVM: Track weak reference to vm_file in struct kvm
Sean Christopherson <[email protected]>
| Newsgroups | dev.linux.lists.kvmarm,org.infradead.lists.kexec,org.kernel.vger.kvm,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jul 28, 2026, Tarun Sahu wrote: > - Add a weak reference 'vm_file' in struct kvm under "vm_file" is effectively already claimed by vm_area_struct.vm_file. *If* we go this route, I would very strongly prefer to take a dependency on "vfio: Use file-based reference counting for KVM"[*]. I'll poke that thread, we really should land that one particular patch long before the s390-is-arm64 insanity. Empashish on "if" because this all feels backwards. It's not at all clear to me why liveupdate goes directly to guest_memfd, but then requires a token associated with the VM. https://lore.kernel.org/all/[email protected]