From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (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 86BD6273FD for ; Thu, 9 Oct 2025 22:16:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760048219; cv=none; b=bPwtHbZ3ZNgm9FmY6+b6FG+zdOIIxYqFwyPbGS/MoTiTQSlwuEQLHfnaKxs68fMFSTbevfpBcooOlHWtE/S68EOffZaXCepuMxq/TjUnSugIfWr6RJ6Wb7KPvVYNJp/sS7iLNf7ZUwI8EqyRqBKargdvGJ31V5sYqTqjmK8aNkQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760048219; c=relaxed/simple; bh=krBRRfDdwyas1WntIR8CFkZ9BCSn/cu8ny6/qRRn7Ro=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=RGbUp3Uwj0qIZIAT+IpAgvEfpgsI0O5K88xDEMEzrqrXkcD+N55gV5u27bJ8eVjiBrWbiZQ0BtPtZA+75zh5VYLaX8vcqXkGM9uqznJCHw+jYzj3HS18Vekqza6a72rSlO1Zr3mMBebQroF5EEQ5drX7WYLbMsnwTFTKNUA25q0= 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=XbsO3nQM; arc=none smtp.client-ip=209.85.215.202 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="XbsO3nQM" Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-b62b7af4fddso1983536a12.2 for ; Thu, 09 Oct 2025 15:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1760048216; x=1760653016; 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=1ouGIZ18YYsl/9GqodU9OqB8J+uPEhuPrGCcLgx0Wyc=; b=XbsO3nQM1Mna5qRzBqZPyS7euFEdUWtNBUjmI7Jzm3hAKkEV72wr01CuidMVGG0wHL Coz0NhdysKd22yc5UwJOqTGd6qcyR4ECDuikArNHinC+7CPu6trrEiz84rxSEHmxkod0 Vi6Ym0ncdzRg8r4o5dPmviFVWxnMShlt2KCzOIlHkunhKOuGWS1q4Vu9jqwCdNkMnS5X TEReXEHilsll65a1V+0NmwITJKLBORZjy0kUtnI8HK7ncZMVpYY5cO70/g0biQIRcHpq lFouhkq/8ZWKj+DQDOqMdpfcUxc5ChG/0tqeu2+lYocW9xiylVd3S5/0foQumLQccjDA Hz0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760048216; x=1760653016; 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=1ouGIZ18YYsl/9GqodU9OqB8J+uPEhuPrGCcLgx0Wyc=; b=odZlHVeoUaYLK4HnzC9zTCQXgziaxTKS4wF1L/8//AAAaMFE2RuC0IKLu44+sWXE1H DfMjMXP8sP+oKkSHqdUXvRQBnMQHMb5C7UBDA6AwjzBuIY0NuU0+NWPysRHHkODu250L 22LGBmoeG4vvFGL50hjDWxo5sZ5CVDDMogeR2ROrqaX3BkdyU0LRvQbpdfSMtmC0ClQO kj19C6fymYPHeQDMiB2F8CTongEe//rOoNiLU/6KRJIOykvj9fucuR+i2oS0lVKl7bQM yo4lvq8LF1EJZbGuPLbTDlx+v87YICC3RnpDPlPzffY+kqtiapxYAzeK/FXs2J6RUpI4 TSrw== X-Forwarded-Encrypted: i=1; AJvYcCXQQLUtVfpfJoaiY0LsAr3adwVR99suD94kNEocnSHrtg/G/DQC9i+n1OfDxr0v8Cri7z8t9HXi5CESVj0=@vger.kernel.org X-Gm-Message-State: AOJu0Ywjyp92YOb+aLobk+uqXTwXJh0plWbxW5W2bP68HFZ7ONlbViQY nnJ9nwhQR9pamxSDkcUOnSJtM1iRChxz3LPoB+YUahjHCoMN70EEov7+z63nG/GVPFB/dSlwm3h uOb+OA7vWOFKcyKJTJ6IGTWl/ZQ== X-Google-Smtp-Source: AGHT+IEwKuAuCigrDNWiN+req1c5yFRzIFngZTOobnjj5hIhTotLZtUDLz/dT57kmfJHlodJGDgMWM9ut0fHatowOQ== X-Received: from pjwd3.prod.google.com ([2002:a17:90a:d3c3:b0:327:c20a:364]) (user=ackerleytng job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:1e0d:b0:32e:a4d:41cb with SMTP id 98e67ed59e1d1-33b511174afmr11693801a91.1.1760048215831; Thu, 09 Oct 2025 15:16:55 -0700 (PDT) Date: Thu, 09 Oct 2025 15:16:54 -0700 In-Reply-To: <20251007221420.344669-5-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@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 Stray 'a' in slab-allocateda here! > 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 > > [...snip...] >