Re: [RFC PATCH v8 5/7] KVM: guest_memfd: Add slab-allocated inode cache

2025-06-29 Thread Shivank Garg
On 6/24/2025 9:46 AM, Huang, Ying wrote: > Shivank Garg writes: > >> +static void kvm_gmem_init_inodecache(void) >> +{ >> +kvm_gmem_inode_cachep = kmem_cache_create("kvm_gmem_inode_cache", >> + sizeof(struct >> kvm_gmem_inode_info), >> +

Re: [RFC PATCH v8 5/7] KVM: guest_memfd: Add slab-allocated inode cache

2025-06-25 Thread Huang, Ying
Shivank Garg writes: > 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 policy support chang

[RFC PATCH v8 5/7] KVM: guest_memfd: Add slab-allocated inode cache

2025-06-18 Thread Shivank Garg
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 policy support changes. Signed-off-by: Shivank Garg