Re: [RFC PATCH 14/39] KVM: guest_memfd: hugetlb: initialization and cleanup

2024-10-01 Thread Ackerley Tng
Vishal Annapurve writes: > On Wed, Sep 11, 2024 at 1:44 AM Ackerley Tng wrote: >> >> ... >> +} >> + >> +static void kvm_gmem_evict_inode(struct inode *inode) >> +{ >> + u64 flags = (u64)inode->i_private; >> + >> + if (flags & KVM_GUEST_MEMFD_HUGETLB) >> + kvm_gmem_huget

Re: [RFC PATCH 14/39] KVM: guest_memfd: hugetlb: initialization and cleanup

2024-09-20 Thread Vishal Annapurve
On Wed, Sep 11, 2024 at 1:44 AM Ackerley Tng wrote: > > ... > +} > + > +static void kvm_gmem_evict_inode(struct inode *inode) > +{ > + u64 flags = (u64)inode->i_private; > + > + if (flags & KVM_GUEST_MEMFD_HUGETLB) > + kvm_gmem_hugetlb_teardown(inode); > + else > +

[RFC PATCH 14/39] KVM: guest_memfd: hugetlb: initialization and cleanup

2024-09-10 Thread Ackerley Tng
First stage of hugetlb support: add initialization and cleanup routines. After guest_mem was massaged to use guest_mem inodes instead of anonymous inodes in an earlier patch, the .evict_inode handler can now be overridden to do hugetlb metadata cleanup. Signed-off-by: Ackerley Tng --- include/u