Re: [PATCH v13 15/35] fs: Export anon_inode_getfile_secure() for use by KVM

From: Paolo Bonzini
Date: Mon Oct 30 2023 - 13:31:47 EST


On 10/27/23 20:21, Sean Christopherson wrote:
Export anon_inode_getfile_secure() so that it can be used by KVM to create and manage file-based guest memory without need a fullblow

without introducing a full-blown

Otherwise,

Reviewed-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>

Paolo

filesystem. The "standard" anon_inode_getfd() doesn't work for KVM's use case as KVM needs a unique inode for each file, e.g. to be able to independently manage the size and lifecycle of a given file.