From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0779271440 for ; Thu, 9 Oct 2025 21:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760045951; cv=none; b=KbY1ViWL5IBOBsdkPGs53XIcFEhdqkgW1qHLzJbzmLuZkJL2ZbA3IuqTODJuqwGtLup0nuplf4NHZrsHgSKvpVpjxZOb79sCnO64mOabKm4F1YrBJL1OmHbz4H7QdM2mQYtvanGLwKn0QHLZar+AU3GvJKKhqRUJiErBvoQpJMI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760045951; c=relaxed/simple; bh=BEzPWEG2tTMKJDi1Ui0rZYJQnidu+uUR6toMxPc1JGI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=hPLVOjsWVNiA45Vt/LCiFQWMItao0ag+9jaDIUpSQFEzRyoEnaOvucITGWB/mG9iYGbKEU9tjDCNHVcuXLx7pJReSFd38hjgllYhyvg2HxP5YkNbHB5mORfN2ZWEJvmuDdLEEUFGCam9ZpehIdwHwHaamXho84dg9sS8RaY6b2A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--ackerleytng.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=xRnfeGVe; arc=none smtp.client-ip=209.85.216.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--ackerleytng.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="xRnfeGVe" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-3307af9b595so2682204a91.0 for ; Thu, 09 Oct 2025 14:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1760045949; x=1760650749; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=GAMGpTBb5JIMylmtnuNcSJ5s50b2UQUcn7vzXw649qs=; b=xRnfeGVeGKs4rdXvTTPjusEhdEKSEc3wqFhzLQb/YZmbW4hizineVSg+yUEMt8JkDr ox9hsFlh02xpCJP2HUTUkhGfXZ9NgK24sIK8kTSHfExtz8QIP03PrYfybAhRBX6rHWGB T0tRRY9n43eHiT0932ZdBzO9DN2fmxuI+9CBMwMfgoliUm7Zr4CDaa9Mx8LxncGslOTR do11nZAbBMEnW2MvqeN5tyjNUjXZ0imiTK8ESm2AgNTMAfH2tn49ZQKpTuG96tY4GeyJ ZBjZyBIrByHA2FVFg0TZRJBZHkhMdIsFP6TEcEFUS2VuBmpdFMsK/Nof0UMvUJB4ErvP 7VoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760045949; x=1760650749; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GAMGpTBb5JIMylmtnuNcSJ5s50b2UQUcn7vzXw649qs=; b=OTx1Gu/Z0WupBHYaqBkDIykkCGtZpWwMk8MqOJjzovF4Rv3utRLrMQ6DefLxE83YdE 0w7EDupGqvQHVg8ciaIDZ8x1g81r/t0EKOSkoD1XF2HBN8ZjOwVsRPHAHr9bsBN8aqet +Waf42HZw2R8zvLwrDFa9vuG7X4AoRTqGi1XgRHzYr8miAxeXtttK74byLa/tAdlWXe/ oQutUVEUKmCg9sD56u2zFZAihPccgnChVArEHcjbD3k3LEalPBQkkSFPKP4TmkBNQMe3 +fZ8nF6t1rmMAcNb4Y+PFKhQqhxJbpOPOsXggniU3OipOw2vaAC+EyTIaxZI/63QAAlF ibOg== X-Forwarded-Encrypted: i=1; AJvYcCW5vDE+NItxnk8YGk1jsyjB4wF7xzXawnM0z81Pla1WleJIygQYThrPeB9NrcgcpH6MJaA=@vger.kernel.org X-Gm-Message-State: AOJu0YzwNLyXySnZN4rH7PHV4YFraxSclgssknh7G0E0dn+h7BWbz4ca pqhwbbAv6RdV1T31MZsV8cYr/DRTcs50tj3yYJw1Hxq6fmy1jsctY1tg15cIYduJZjmU7nhnC5q nBcNbcufv4YO4hsfoNRQq/lTdqA== X-Google-Smtp-Source: AGHT+IHiLO0Tc7T4efMeJ7arhzRn2QVrxkkt3xAe4o5ah0mgwx2R8IQxbSx0reBo3eWBl5LTjIgto1JJK2FqbDLCmg== X-Received: from pjbne5.prod.google.com ([2002:a17:90b:3745:b0:330:8b1f:c4e7]) (user=ackerleytng job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:1b50:b0:332:250e:eec8 with SMTP id 98e67ed59e1d1-33b51168e20mr13156235a91.15.1760045949059; Thu, 09 Oct 2025 14:39:09 -0700 (PDT) Date: Thu, 09 Oct 2025 14:39:07 -0700 In-Reply-To: <20251007221420.344669-5-seanjc@google.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251007221420.344669-1-seanjc@google.com> <20251007221420.344669-5-seanjc@google.com> Message-ID: Subject: Re: [PATCH v12 04/12] KVM: guest_memfd: Add slab-allocated inode cache From: Ackerley Tng To: Sean Christopherson , Marc Zyngier , Oliver Upton , Paolo Bonzini Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, David Hildenbrand , Fuad Tabba , Shivank Garg , Ashish Kalra , Vlastimil Babka Content-Type: text/plain; charset="UTF-8" Sean Christopherson writes: > From: Shivank Garg > > Add a dedicated gmem_inode structure and a slab-allocateda 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. Using a dedicated > structure will also allow for additional cleanups, e.g. to track flags in > gmem_inode instead of i_private. > > Signed-off-by: Shivank Garg > Tested-by: Ashish Kalra > [sean: s/kvm_gmem_inode_info/gmem_inode, name init_once()] > Signed-off-by: Sean Christopherson Reviewed-by: Ackerley Tng Tested-by: Ackerley Tng > --- > virt/kvm/guest_memfd.c | 77 +++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 76 insertions(+), 1 deletion(-) > > > [...snip...] >