Re: [PATCH v4 04/11] KVM: Track weak reference to vm_file in struct kvm
Sean Christopherson <[email protected]>
| Newsgroups | gmane.linux.kernel.kexec,gmane.linux.kernel,gmane.linux.kernel.mm,gmane.comp.emulators.kvm.devel,gmane.linux.documentation |
|---|---|
| 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/20260731130902.654679-2-seiden-tEXmvtCZX7AybS5Ee8rs3A@public.gmane.org