From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (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 D18893B4E9C for ; Thu, 30 Apr 2026 21:38:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777585136; cv=none; b=UPuLTwsruhNFJr5Jp8Ni5lRTieYIEptzLhZMkBOtlGRp8Xk6BTjgHShnGqyJRxWSmiOEDpU7y768AlnhWLhp6DcKOQABXnWc4bS6JMsMapi3m219irN4WhQm6/vWiTBbQHKJucEJ5USitvOHnT9GrFoyaWi+fdjvANxIMF8vBWg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777585136; c=relaxed/simple; bh=tefwaCQ5q3pGWgDYvLmp+LlLU3rMcWHxA8B3DUhVorE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=SV6koe4MYxbBPL3JEjS36iUI2y+addV+AGDAr6VOWCNknBZRWST4XVPkNO5heAe6MHX9TGTzC2Ec0+1ideDmyME9x4mDoxr3Nmp/iWRkaKe1E7RSUOppe1IN3TlITg66BZHQ7WOyfR48JZaDB6t8wuMHye6GLqvvnlEAb/vsKVs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=vsg4f+3Z; arc=none smtp.client-ip=209.85.210.201 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--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="vsg4f+3Z" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-82f7bec24fdso894890b3a.2 for ; Thu, 30 Apr 2026 14:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1777585132; x=1778189932; 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=/er/TgwRJ3h+QCSGB/W4CiMuxbaK6Ut95yraJEZwYH4=; b=vsg4f+3ZCuu2OIUGbGYjybLNbcR8kT+cKJ3xaS6WOGK8JUGjME3a0mQHIvzxoa77lA rCEH955Y00fJayh/Bvf54V+I8RZ6KiKynmzrNQtcdXIvJKyvFzKZGiQFVtJ4V+uaoMsU TSQdG2nb6wR40BTMbblYiOgDdu8y6YR7Hy9fvQgNpvp5/+cqefkT8TFRfQ3yqdh1xUwa r7BFhs+9Np+cICGLc5x3NfpKxaQIm6Dq1ZA6z58BIJSWnDZctXN29d2ICMRjpDXL8l1r H3YqWpNv1zYNcrRSDTThpHKmjEBJM104yDlIVV7ZqSqkgjE2/mBIb9F8ffO+uONv0Gww 3ERg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777585132; x=1778189932; 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=/er/TgwRJ3h+QCSGB/W4CiMuxbaK6Ut95yraJEZwYH4=; b=Wlsn0Zu57+L+bGrsSLqPmDKlmu2ogXraL9kYw7inUJ3QoxW/nwkoRBaw2+k/vuMsWA zUeVSOtxoiVWa08WMM7Y/01AjzBVXXPj3vwQiyXlHHEkfeRJHRVDCRyX6+DhU6y2RnWz hXwZdkbZh+WCXPF4xOU2RKfUu5pBaSKKjQ68RmL14I69Q4KbF9WYu8BVeA52WNDO9PWB FcLpYwrdXsPzN3ukPBgtEeE2pghRW63g4VC8RzXArdZL8LHOvS6HSff0HxrI8/m4Fybp QhfLVcX4U/vRI8Ie22/PLp8N9qIXNtDb22Mmlb2+jw2bTs3pyianilpDdSbZX9FtPX+B IjHQ== X-Forwarded-Encrypted: i=1; AFNElJ/yEzhnDXBbAug1GN6Y543GNtYbGc87hwVdF6d+7fSB5DkSg4ZGLuIOxpBd2MjZbuy2KA/oI3fNvh57Ues=@vger.kernel.org X-Gm-Message-State: AOJu0YyGH5tzZMjlhmSdo9GCXjNz2RKwun5LvpcArcIu8TSes5tUDZyo BOQaL9bK6dKMknj7SHgyhwweVnQDY719FdLc1rDsAhx96ZlvdQI7tQyuOv8vsdUMMix87uDgv6L QI0i8TA== X-Received: from pfbfj21.prod.google.com ([2002:a05:6a00:3a15:b0:82f:10f6:86d2]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:2e9f:b0:82f:21ee:270e with SMTP id d2e1a72fcca58-834fdcf00b9mr5148834b3a.42.1777585132038; Thu, 30 Apr 2026 14:38:52 -0700 (PDT) Date: Thu, 30 Apr 2026 14:38:50 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260428171541.1342335-1-seanjc@google.com> <20260428171541.1342335-3-seanjc@google.com> Message-ID: Subject: Re: [RFC PATCH 2/5] KVM: guest_memfd: Move gmem function declarations to dedicated guest_memfd.h From: Sean Christopherson To: Ackerley Tng Cc: Paolo Bonzini , David Hildenbrand , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Yosry Ahmed , Marc Zyngier , Oliver Upton , Tianrui Zhao , Bibo Mao , Huacai Chen , Anup Patel , Christian Borntraeger , Janosch Frank , Claudio Imbrenda Content-Type: text/plain; charset="us-ascii" On Thu, Apr 30, 2026, Ackerley Tng wrote: > Sean Christopherson writes: > > > Extract the gmem function declarations out of kvm_mm.h and into a dedicated > > header, guest_memfd.h. This will allow creating a MAINTAINERS entry for > > guest_memfd without having to rely on content pattern matching. > > > > This also trims kvm_mm.h, which makes it easier to look stuff > up. Thanks! > > Shall we do something similar for include/linux/kvm_host.h? LOL, we can try. :-) Not for linux/kvm_host.h, but I've tried to carve up x86's asm/kvm_host.h on multiple occassions, and have failed miserably every time. But linux/kvm_host.h is probably less intertwined? Though I think we should split out headers if and only if there's substantial .c content as well. E.g. if we add kvm_memslots.h, then I would also want kvm_memslots.c, because having a dedicated headers while leaving the vast majority of memslots code in the common kvm_main.c would be kludgy.