From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4E2F322C88; Fri, 6 Mar 2026 11:19:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772795950; cv=none; b=fGHGSEuVtly4j5bbV0QZhXicAP90p+J6860ro3uOYtZ38Np8Wvdau9olbFqDkQEJS5H9se5LeyOSlQtUtFkFjlJ16oGj23ALFsaliGcGFd0bxd3pbepCr2VfOH+ZoHm9WM5giKyL6jc7fJS7HTPaYcB2Kqho7Tr1qtiRYFpUo0M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772795950; c=relaxed/simple; bh=Mao5sDzSUZ+f9uQRGE4C9WfuIvF/XWcry+r5NOvZOYk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TSyJRK8VRHRQkgV4FmyByurxe1PkX/E12TP7o3qUvOA19H2hR2giEL9ah9Mn7XLK9JWzTqyAFNqKBPNP2zLLQ8GZJ1FZ/E4gr2rUtvjfXblf2LM3BsJF9kYkRfxl6FqHUnsf0Je/IjHZp8bcZXmqMZcIhbnjibXuAhJPK2D8Kuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SIoEzS/D; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SIoEzS/D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AD33C4CEF7; Fri, 6 Mar 2026 11:19:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772795950; bh=Mao5sDzSUZ+f9uQRGE4C9WfuIvF/XWcry+r5NOvZOYk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SIoEzS/DxNjqL5S12WR+Z4yk2+4eKi12ei99kZadEHX7MESoV5Wv16WGPtc0njmef y90QEYTXb5wJZglbt0twBS0mvmRICjSm+Pf4pNVSyOyHKbWu/l+0AES9uhiEQcOvDj kh9D9puozrjzimBHTc3sbXUJPclGB4LyqpXKH2lNjcq9sZ/0S+5RJbLGfNQij8sk07 mEgagnudwYDACrGUEXJGJRHldgqqHPbw2M4hPETiptO3fvQnUBFuVUWhwsn15OIe8O Nd8cqwkuH0f6HODDVKq1OY5MrRDFUqGhe3otSE6QZyqmDQt7e1ZTflx4ufrWF8MyJf iV3kpykXdQjkw== Date: Fri, 6 Mar 2026 11:19:02 +0000 From: "Lorenzo Stoakes (Oracle)" To: Pedro Falcato Cc: "David Hildenbrand (Arm)" , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, Andrew Morton , Madhavan Srinivasan , Nicholas Piggin , Michael Ellerman , "Christophe Leroy (CS GROUP)" , Muchun Song , Oscar Salvador , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jann Horn , Paolo Bonzini , Dan Williams Subject: Re: [PATCH v1 0/4] mm: move vma_(kernel|mmu)_pagesize() out of hugetlb.c Message-ID: <371cf0f7-4b30-4d8c-99e7-ae0543f8be23@lucifer.local> References: <20260306101600.57355-1-david@kernel.org> <4rzf46kw6hq3b5ivv7cvgyza4yfrvk2shrncytobabxef644nm@wzu2bw63co37> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4rzf46kw6hq3b5ivv7cvgyza4yfrvk2shrncytobabxef644nm@wzu2bw63co37> On Fri, Mar 06, 2026 at 11:13:41AM +0000, Pedro Falcato wrote: > On Fri, Mar 06, 2026 at 11:15:56AM +0100, David Hildenbrand (Arm) wrote: > > Looking into vma_(kernel|mmu)_pagesize(), I realized that there is one > > scenario where DAX would not do the right thing when the kernel is > > not compiled with hugetlb support. > > > > Without hugetlb support, vma_(kernel|mmu)_pagesize() will always return > > PAGE_SIZE instead of using the ->pagesize() result provided by dax-device > > code. > > > > Fix that by moving vma_kernel_pagesize() to core MM code, where it belongs. > > I don't think this is stable material, but am not 100% sure. > > > > Also, move vma_mmu_pagesize() while at it. Remove the unnecessary hugetlb.h > > inclusion from KVM code. > > > > Cross-compiled heavily. > > > > Cc: Andrew Morton > > Cc: Madhavan Srinivasan > > Cc: Nicholas Piggin > > Cc: Michael Ellerman > > Cc: "Christophe Leroy (CS GROUP)" > > Cc: Muchun Song > > Cc: Oscar Salvador > > Cc: Lorenzo Stoakes > > Cc: "Liam R. Howlett" > > Cc: Vlastimil Babka > > Cc: Mike Rapoport > > Cc: Suren Baghdasaryan > > Cc: Michal Hocko > > Cc: Jann Horn > > Cc: Pedro Falcato > > Cc: Paolo Bonzini > > Cc: Dan Williams > > Although we all love less mail, FYI it seems like this didn't work properly > for the patches (no CC's on there). > > Did you try git-email --cc-cover? Yeah I noticed this also :>) Assumed it was a new way of doing things somehow? :P > > -- > Pedro Cheers, Lorenzo