Re: [f2fs-dev] [PATCH kvm-next V11 4/7] KVM: guest_memfd: Use guest mem inodes instead of anonymous inodes

2025-10-18 Thread Sean Christopherson via Linux-f2fs-devel
On Thu, Sep 25, 2025, David Hildenbrand wrote: > On 25.09.25 15:41, Sean Christopherson wrote: > > Regarding timing, how much do people care about getting this into 6.18 in > > particular? > > I think it will be beneficial if we start getting stuff upstream. But > waiting a bit longer probably doe

Re: [f2fs-dev] [PATCH kvm-next V11 0/7] Add NUMA mempolicy support for KVM guest-memfd

2025-10-18 Thread Sean Christopherson via Linux-f2fs-devel
On Wed, 27 Aug 2025 17:52:41 +, Shivank Garg wrote: > This series introduces NUMA-aware memory placement support for KVM guests > with guest_memfd memory backends. It builds upon Fuad Tabba's work (V17) > that enabled host-mapping for guest_memfd memory [1] and can be applied > directly applied

Re: [f2fs-dev] [PATCH kvm-next V11 6/7] KVM: guest_memfd: Enforce NUMA mempolicy using shared policy

2025-10-18 Thread Sean Christopherson via Linux-f2fs-devel
On Thu, Sep 25, 2025, Sean Christopherson wrote: > On Wed, Aug 27, 2025, Shivank Garg wrote: > > @@ -26,6 +28,9 @@ static inline struct kvm_gmem_inode_info > > *KVM_GMEM_I(struct inode *inode) > > return container_of(inode, struct kvm_gmem_inode_info, vfs_inode); > > } > > > > +static struc

Re: [f2fs-dev] [PATCH kvm-next V11 5/7] KVM: guest_memfd: Add slab-allocated inode cache

2025-09-25 Thread Sean Christopherson via Linux-f2fs-devel
On Thu, Sep 25, 2025, Sean Christopherson wrote: > On Wed, Aug 27, 2025, Shivank Garg wrote: > > Add dedicated inode structure (kvm_gmem_inode_info) and slab-allocated > > inode cache for guest memory backing, similar to how shmem handles inodes. > > > > This adds the necessary allocation/destruct

Re: [f2fs-dev] [PATCH kvm-next V11 7/7] KVM: guest_memfd: selftests: Add tests for mmap and NUMA policy support

2025-09-25 Thread Sean Christopherson via Linux-f2fs-devel
On Wed, Aug 27, 2025, Shivank Garg wrote: > Add tests for NUMA memory policy binding and NUMA aware allocation in > guest_memfd. This extends the existing selftests by adding proper > validation for: > - KVM GMEM set_policy and get_policy() vm_ops functionality using > mbind() and get_mempolicy()

Re: [f2fs-dev] [PATCH kvm-next V11 7/7] KVM: guest_memfd: selftests: Add tests for mmap and NUMA policy support

2025-09-25 Thread Sean Christopherson via Linux-f2fs-devel
On Thu, Sep 25, 2025, Sean Christopherson wrote: > On Wed, Aug 27, 2025, Shivank Garg wrote: > > Add tests for NUMA memory policy binding and NUMA aware allocation in > > guest_memfd. This extends the existing selftests by adding proper > > validation for: > > - KVM GMEM set_policy and get_policy()

Re: [f2fs-dev] [PATCH kvm-next V11 7/7] KVM: guest_memfd: selftests: Add tests for mmap and NUMA policy support

2025-09-25 Thread Sean Christopherson via Linux-f2fs-devel
On Thu, Sep 25, 2025, Jason Gunthorpe wrote: > On Thu, Sep 25, 2025 at 02:35:19PM -0700, Sean Christopherson wrote: > > > LDLIBS += -ldl > > > +LDLIBS += -lnuma > > > > Hrm, this is going to be very annoying. I don't have libnuma-dev installed > > on > > any of my systems, and I doubt I'm alon

Re: [f2fs-dev] [PATCH kvm-next V11 4/7] KVM: guest_memfd: Use guest mem inodes instead of anonymous inodes

2025-09-24 Thread Sean Christopherson via Linux-f2fs-devel
My apologies for the super late feedback. None of this is critical (mechanical things that can be cleaned up after the fact), so if there's any urgency to getting this series into 6.18, just ignore it. On Wed, Aug 27, 2025, Ackerley Tng wrote: > Shivank Garg writes: > @@ -463,11 +502,70 @@ bool

Re: [f2fs-dev] [PATCH kvm-next V11 0/7] Add NUMA mempolicy support for KVM guest-memfd

2025-10-20 Thread Sean Christopherson via Linux-f2fs-devel
On Wed, Oct 15, 2025, Sean Christopherson wrote: > On Wed, 27 Aug 2025 17:52:41 +, Shivank Garg wrote: > > This series introduces NUMA-aware memory placement support for KVM guests > > with guest_memfd memory backends. It builds upon Fuad Tabba's work (V17) > > that enabled host-mapping for gue

Re: [f2fs-dev] [PATCH kvm-next V11 6/7] KVM: guest_memfd: Enforce NUMA mempolicy using shared policy

2025-10-17 Thread Sean Christopherson via Linux-f2fs-devel
On Wed, Oct 15, 2025, Gregory Price wrote: > On Fri, Sep 26, 2025 at 12:36:27PM -0700, Sean Christopherson via > Linux-f2fs-devel wrote: > > > > > > static struct mempolicy *kvm_gmem_get_policy(struct vm_area_struct *vma, > > >

Re: [f2fs-dev] [PATCH kvm-next V11 4/7] KVM: guest_memfd: Use guest mem inodes instead of anonymous inodes

2025-10-18 Thread Sean Christopherson via Linux-f2fs-devel
On Thu, Sep 25, 2025, David Hildenbrand wrote: > On 25.09.25 13:44, Garg, Shivank wrote: > > On 9/25/2025 8:20 AM, Sean Christopherson wrote: > > I did functional testing and it works fine. > > I can queue this instead. I guess I can reuse the patch description and add > Sean as author + add his S

Re: [f2fs-dev] [PATCH kvm-next V11 5/7] KVM: guest_memfd: Add slab-allocated inode cache

2025-09-25 Thread Sean Christopherson via Linux-f2fs-devel
On Wed, Aug 27, 2025, Shivank Garg wrote: > Add dedicated inode structure (kvm_gmem_inode_info) and slab-allocated > inode cache for guest memory backing, similar to how shmem handles inodes. > > This adds the necessary allocation/destruction functions and prepares > for upcoming guest_memfd NUMA

Re: [f2fs-dev] [PATCH kvm-next V11 6/7] KVM: guest_memfd: Enforce NUMA mempolicy using shared policy

2025-09-25 Thread Sean Christopherson via Linux-f2fs-devel
On Wed, Aug 27, 2025, Shivank Garg wrote: > @@ -26,6 +28,9 @@ static inline struct kvm_gmem_inode_info *KVM_GMEM_I(struct > inode *inode) > return container_of(inode, struct kvm_gmem_inode_info, vfs_inode); > } > > +static struct mempolicy *kvm_gmem_get_pgoff_policy(struct > kvm_gmem_ino