Re: [PATCH v4 04/11] KVM: Track weak reference to vm_file in struct kvm
From: Sean Christopherson
Date: Mon Aug 10 2026 - 19:27:06 EST
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@xxxxxxxxxxxxx